git: 161c8368dc23 - 2023Q3 - graphics/ristretto: Add optional tumbler dependency

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Sat, 02 Sep 2023 09:57:35 UTC
The branch 2023Q3 has been updated by madpilot:

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

commit 161c8368dc2326187d48d0f026f0212e961ab857
Author:     Anton Saietskii <vsasjason@gmail.com>
AuthorDate: 2023-09-02 09:38:11 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2023-09-02 09:56:51 +0000

    graphics/ristretto: Add optional tumbler dependency
    
    Ristretto uses xfce tumbler service via dbus to generate thumbnails.
    
    This adds a new TUMBLER option (on by defualt) to set an explicit
    runtime dependency for tumbler.
    
    PR:             273496
    (cherry picked from commit b7ca0e85105a9ac68a9d9ea1bdac98dfcf766333)
---
 graphics/ristretto/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/graphics/ristretto/Makefile b/graphics/ristretto/Makefile
index 4b67e9d7bbe0..a9c380b2a915 100644
--- a/graphics/ristretto/Makefile
+++ b/graphics/ristretto/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	ristretto
 PORTVERSION=	0.13.1
+PORTREVISION=	1
 CATEGORIES=	graphics xfce
 MASTER_SITES=	XFCE/apps
 DIST_SUBDIR=	xfce4
@@ -22,10 +23,15 @@ USE_XORG=	ice sm x11
 
 GNU_CONFIGURE=	yes
 
-OPTIONS_DEFINE=		NLS
+OPTIONS_DEFINE=		NLS TUMBLER
+OPTIONS_DEFAULT=	TUMBLER
 OPTIONS_SUB=		yes
 
+TUMBLER_DESC=		Install Tumbler dependency for creating thumbnails
+
 NLS_USES=		gettext-runtime
 NLS_CONFIGURE_ENABLE=	nls
 
+TUMBLER_RUN_DEPENDS=	xfce4-tumbler>0:deskutils/xfce4-tumbler
+
 .include <bsd.port.mk>