git: d2548793c768 - main - sysutils/imgurbash2: New port: Upload or delete images and videos to imgur

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sun, 30 Apr 2023 18:43:02 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d2548793c768b08e6c18d037b319b12314f123e4

commit d2548793c768b08e6c18d037b319b12314f123e4
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-04-28 10:59:58 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-04-30 18:41:41 +0000

    sysutils/imgurbash2: New port: Upload or delete images and videos to imgur
    
    imgurbash2 is a simple bash script that allows you to upload images
    and videos to imgur. Once an image/video is uploaded, the link is
    displayed on the terminal and copied to your clipboard.
    
    Features:
    
    * Upload remote HTTP/HTTPS images and videos to imgur.
    * Upload multiple images and videos at one go.
    * Upload images/videos to your album and to your account.
    * Delete previously uploaded images/videos.
    * Automatically images/videos deletion.
    * Copy uploaded images/videos' URLs to clipboard.
    
    WWW: https://github.com/ram-on/imgurbash2/
    
    PR:             269718
---
 sysutils/Makefile             |  1 +
 sysutils/imgurbash2/Makefile  | 39 +++++++++++++++++++++++++++++++++++++++
 sysutils/imgurbash2/distinfo  |  3 +++
 sysutils/imgurbash2/pkg-descr | 12 ++++++++++++
 4 files changed, 55 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 4cb7fb6236fb..93b98208e520 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -562,6 +562,7 @@
     SUBDIR += i7z
     SUBDIR += iat
     SUBDIR += iichid
+    SUBDIR += imgurbash2
     SUBDIR += immortal
     SUBDIR += incron
     SUBDIR += inotify-tools
diff --git a/sysutils/imgurbash2/Makefile b/sysutils/imgurbash2/Makefile
new file mode 100644
index 000000000000..1d9f8e9ccc42
--- /dev/null
+++ b/sysutils/imgurbash2/Makefile
@@ -0,0 +1,39 @@
+PORTNAME=	imgurbash2
+DISTVERSION=	3.3
+CATEGORIES=	sysutils
+
+MAINTAINER=	DtxdF@disroot.org
+COMMENT=	Upload or delete images and videos to imgur
+WWW=		https://github.com/ram-on/imgurbash2/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	bash>0:shells/bash \
+		curl>0:ftp/curl
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	ram-on
+
+NO_BUILD=	yes
+
+PLIST_FILES=	bin/${PORTNAME} \
+		${DOCSDIR}/examples.md
+
+OPTIONS_RADIO=			CLIPBOARD
+OPTIONS_RADIO_CLIPBOARD=	WL_COPY XCLIP XSEL
+
+WL_COPY_DESC=	Use wl-copy
+XCLIP_DESC=	Use xclip
+XSEL_DESC=	Use xsel-conrad
+
+WL_COPY_RUN_DEPENDS=	wl-clipboard>0:x11/wl-clipboard
+XCLIP_RUN_DEPENDS=	xclip>0:x11/xclip
+XSEL_RUN_DEPENDS=	xsel-conrad>0:x11/xsel-conrad
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/examples.md ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/sysutils/imgurbash2/distinfo b/sysutils/imgurbash2/distinfo
new file mode 100644
index 000000000000..c0b6b1b98b25
--- /dev/null
+++ b/sysutils/imgurbash2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1676847596
+SHA256 (ram-on-imgurbash2-3.3_GH0.tar.gz) = 7cf9d09fadcf37d47092ed07c554fa55bd21401514cbd2c59d9a88dd78a83f9f
+SIZE (ram-on-imgurbash2-3.3_GH0.tar.gz) = 10116
diff --git a/sysutils/imgurbash2/pkg-descr b/sysutils/imgurbash2/pkg-descr
new file mode 100644
index 000000000000..d858539415b7
--- /dev/null
+++ b/sysutils/imgurbash2/pkg-descr
@@ -0,0 +1,12 @@
+imgurbash2 is a simple bash script that allows you to upload images
+and videos to imgur. Once an image/video is uploaded, the link is
+displayed on the terminal and copied to your clipboard.
+
+Features:
+
+* Upload remote HTTP/HTTPS images and videos to imgur.
+* Upload multiple images and videos at one go.
+* Upload images/videos to your album and to your account.
+* Delete previously uploaded images/videos.
+* Automatically images/videos deletion.
+* Copy uploaded images/videos' URLs to clipboard.