git: ddaf406ebd7d - main - graphics/variety: Update to 0.8.12

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Wed, 24 Jan 2024 16:16:25 UTC
The branch main has been updated by nivit:

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

commit ddaf406ebd7dcac73561b6dc26833180cc148ba3
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-01-24 16:15:02 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-01-24 16:15:02 +0000

    graphics/variety: Update to 0.8.12
    
    - Manually install the file quotes.txt (ignored by pydistutils)
    
    Release changes: https://github.com/varietywalls/variety/releases/tag/0.8.12
---
 graphics/variety/Makefile | 13 ++++++++++---
 graphics/variety/distinfo |  6 +++---
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/graphics/variety/Makefile b/graphics/variety/Makefile
index 0225e5d299be..e89df518d6a6 100644
--- a/graphics/variety/Makefile
+++ b/graphics/variety/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	variety
-PORTVERSION=	0.8.5
-PORTREVISION=	3
+PORTVERSION=	0.8.12
+PORTREVISION=	0
 CATEGORIES=	graphics
 
 MAINTAINER=	nivit@FreeBSD.org
@@ -27,7 +27,8 @@ RUN_DEPENDS=	${PY_PILLOW} \
 		coreutils>=8.23:sysutils/coreutils \
 		yelp>=3.14.1:x11/yelp
 
-USES=		desktop-file-utils gettext-tools gnome magick:6,run python shebangfix
+USES=		desktop-file-utils gettext-tools gnome magick:run python \
+		shebangfix
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	varietywalls
@@ -36,6 +37,8 @@ USE_PYTHON=	autoplist distutils noflavors
 
 SHEBANG_FILES=	bin/variety data/scripts/*
 
+PLIST_FILES=	share/variety/config/quotes.txt
+
 post-patch:
 	@(cd ${WRKSRC} && ${REINPLACE_CMD} \
 		-i '' \
@@ -47,6 +50,10 @@ post-patch:
 		variety/Options.py variety/ThumbsWindow.py \
 		variety/__init__.py variety/VarietyWindow.py)
 
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/variety/plugins/builtin/quotes/quotes.txt \
+		${STAGEDIR}/${DATADIR}/config/quotes.txt
+
 .include <bsd.port.pre.mk>
 
 # PYDISTUTILS_INSTALLNOSINGLE is deprecated so...
diff --git a/graphics/variety/distinfo b/graphics/variety/distinfo
index 1a1b7dc9056e..3ba46f8c919c 100644
--- a/graphics/variety/distinfo
+++ b/graphics/variety/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1615387540
-SHA256 (varietywalls-variety-0.8.5_GH0.tar.gz) = 2298af592cdd5cc0c183582f74f39af74b07499074ea164a3a327d55c9338248
-SIZE (varietywalls-variety-0.8.5_GH0.tar.gz) = 889750
+TIMESTAMP = 1706101599
+SHA256 (varietywalls-variety-0.8.12_GH0.tar.gz) = 8bf5a6748cf87976cfec3772e27ab53fb2a3dfb5704d66933481ca3e0004e09f
+SIZE (varietywalls-variety-0.8.12_GH0.tar.gz) = 848707