git: 1668f2218441 - main - x11/xfce4-screenshooter-plugin: Update to 1.10.5

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Wed, 07 Feb 2024 11:49:57 UTC
The branch main has been updated by madpilot:

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

commit 1668f221844161c78389e834a1cd9dc6ce33c457
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2024-02-07 11:49:00 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2024-02-07 11:49:00 +0000

    x11/xfce4-screenshooter-plugin: Update to 1.10.5
    
    - Add IMGUR option (on by default) to disable the IMGUR custom
    action script installation and support. This saves a few dependencies.
    
    Upstream is deprecating native imgur support, which will be replaced
    by the custom action. At present with a default installation there
    will be two imgur options in the UI, this is expected.
---
 x11/xfce4-screenshooter-plugin/Makefile  | 17 ++++++++++++++---
 x11/xfce4-screenshooter-plugin/distinfo  |  6 +++---
 x11/xfce4-screenshooter-plugin/pkg-plist |  1 +
 3 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/x11/xfce4-screenshooter-plugin/Makefile b/x11/xfce4-screenshooter-plugin/Makefile
index 6b9a0acf6942..10530a5a0b8c 100644
--- a/x11/xfce4-screenshooter-plugin/Makefile
+++ b/x11/xfce4-screenshooter-plugin/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	xfce4-screenshooter-plugin
-PORTVERSION=	1.10.4
-PORTREVISION=	2
+PORTVERSION=	1.10.5
 CATEGORIES=	x11 xfce
 MASTER_SITES=	XFCE/apps
 DISTNAME=	xfce4-screenshooter-${DISTVERSIONFULL}
@@ -26,10 +25,22 @@ USE_XORG=	ice sm x11 xfixes xext
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
 
-OPTIONS_DEFINE=		NLS
+OPTIONS_DEFINE=		NLS IMGUR
+OPTIONS_DEFAULT=	IMGUR
 OPTIONS_SUB=		yes
 
+IMGUR_DESC=		Install imgur image upload custom action
+
+IMGUR_RUN_DEPENDS=	curl:ftp/curl \
+			jq:textproc/jq \
+			xclip:x11/xclip \
+			zenity:x11/zenity
+
 NLS_CONFIGURE_ENABLE=	nls
 NLS_USES=		gettext-runtime
 
+post-patch-IMGUR-off:
+	@${REINPLACE_CMD} '/imgur_custom_action_added = xfconf_channel_get_bool/s/FALSE/TRUE/' \
+		${WRKSRC}/lib/screenshooter-custom-actions.c
+
 .include <bsd.port.mk>
diff --git a/x11/xfce4-screenshooter-plugin/distinfo b/x11/xfce4-screenshooter-plugin/distinfo
index 243d513f52a0..e2df0875cdd7 100644
--- a/x11/xfce4-screenshooter-plugin/distinfo
+++ b/x11/xfce4-screenshooter-plugin/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1684085341
-SHA256 (xfce4/xfce4-screenshooter-1.10.4.tar.bz2) = a2f199687e54e16a936d5636d660d42b6b9a5d548cdd0f04bd69213554806494
-SIZE (xfce4/xfce4-screenshooter-1.10.4.tar.bz2) = 615583
+TIMESTAMP = 1707157614
+SHA256 (xfce4/xfce4-screenshooter-1.10.5.tar.bz2) = fa711f2a6a5517f575f2e129fe48c2678e836bd4ede5433075f3076d7670621c
+SIZE (xfce4/xfce4-screenshooter-1.10.5.tar.bz2) = 621929
diff --git a/x11/xfce4-screenshooter-plugin/pkg-plist b/x11/xfce4-screenshooter-plugin/pkg-plist
index 495f28499a73..bf959c95423f 100644
--- a/x11/xfce4-screenshooter-plugin/pkg-plist
+++ b/x11/xfce4-screenshooter-plugin/pkg-plist
@@ -1,5 +1,6 @@
 bin/xfce4-screenshooter
 lib/xfce4/panel/plugins/libscreenshooterplugin.so
+%%IMGUR%%libexec/xfce4/screenshooter/scripts/imgur-upload.sh
 man/man1/xfce4-screenshooter.1.gz
 share/applications/xfce4-screenshooter.desktop
 %%NLS%%share/icons/hicolor/128x128/apps/org.xfce.screenshooter.png