git: 87a631817cab - main - graphics/pywal: add optional dependencies, handover

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 18 May 2023 08:20:32 UTC
The branch main has been updated by fuz:

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

commit 87a631817cab9935fd0f5b69287355a6e945f780
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-05-15 13:23:10 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-05-18 08:19:42 +0000

    graphics/pywal: add optional dependencies, handover
    
    Add optional dependencies for setting wallpapers and generating
    colour schemes.  Submitter becomes maintainer.
    
    Approved by:    fuz (maintainer)
    PR:             271153
---
 graphics/pywal/Makefile | 33 ++++++++++++++++++++++++++++++---
 1 file changed, 30 insertions(+), 3 deletions(-)

diff --git a/graphics/pywal/Makefile b/graphics/pywal/Makefile
index 45718107aefe..aecea6bc7d3f 100644
--- a/graphics/pywal/Makefile
+++ b/graphics/pywal/Makefile
@@ -1,20 +1,47 @@
 PORTNAME=	pywal
 DISTVERSION=	3.3.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	fuz@FreeBSD.org
+MAINTAINER=	DtxdF@disroot.org
 COMMENT=	Generate and change color-schemes on the fly
 WWW=		https://github.com/dylanaraps/pywal
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
-USES=		magick:run python
+USES=		python
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=			IMAGEMAGICK
+OPTIONS_DEFAULT=		IMAGEMAGICK
+OPTIONS_GROUP=			BACKEND WALLPAPER
+OPTIONS_GROUP_BACKEND=		COLORTHIEF COLORZ HAISHOKU
+OPTIONS_GROUP_WALLPAPER=	BGS FEH HABAK HSETROOT NITROGEN
+
+BACKEND_DESC=		Color backend to use
+BGS_DESC=		Install with x11/bgs
+COLORTHIEF_DESC=	Install with graphics/py-colorthief
+COLORZ_DESC=		Install with graphics/py-colorz
+FEH_DESC=		Install with graphics/feh
+HABAK_DESC=		Install with x11/habak
+HAISHOKU_DESC=		Install with graphics/py-haishoku
+HSETROOT_DESC=		Install with x11/hsetroot
+NITROGEN_DESC=		Install with sysutils/nitrogen
+WALLPAPER_DESC=		Universal wallpaper setting
+
+BGS_RUN_DEPENDS=	bgs>0:x11/bgs
+COLORTHIEF_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}colorthief>0:graphics/py-colorthief@${PY_FLAVOR}
+COLORZ_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}colorz>0:graphics/py-colorz@${PY_FLAVOR}
+FEH_RUN_DEPENDS=	feh>0:graphics/feh
+HABAK_RUN_DEPENDS=	habak>0:x11/habak
+HAISHOKU_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}haishoku>0:graphics/py-haishoku@${PY_FLAVOR}
+HSETROOT_RUN_DEPENDS=	hsetroot>0:x11/hsetroot
+IMAGEMAGICK_USES=	magick:run
+NITROGEN_RUN_DEPENDS=	nitrogen>0:sysutils/nitrogen
+
 .include <bsd.port.mk>