git: dc2c2592b855 - main - x11/py-waypaper: Add new port

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Wed, 25 Sep 2024 07:42:31 UTC
The branch main has been updated by nivit:

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

commit dc2c2592b85500fdf5e382f3eca901f28d41f2db
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-09-25 07:41:07 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-09-25 07:41:07 +0000

    x11/py-waypaper: Add new port
    
    GUI wallpaper setter for Wayland and Xorg window managers. It works as a
    frontend for popular wallpaper backends like swaybg, swww, wallutils,
    hyprpaper and feh.
    
    Features
    
        - Vim keys
        - Support for GIF animations (with swww)
        - Support for multiple monitors (with swww)
        - Works on Wayland (with swww or swaybg or wallutils or hyprpaper)
        - Works on Xorg (with feh or wallutils)
        - Restores wallpaper at launch of your WM
        - Caching for fast loading
    
    https://anufrievroman.gitbook.io/waypaper
---
 x11/Makefile              |  1 +
 x11/py-waypaper/Makefile  | 26 ++++++++++++++++++++++++++
 x11/py-waypaper/distinfo  |  3 +++
 x11/py-waypaper/pkg-descr | 13 +++++++++++++
 4 files changed, 43 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index 917d63f8d8c1..1b0d003a4d66 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -356,6 +356,7 @@
     SUBDIR += py-python-xapp
     SUBDIR += py-pyvirtualdisplay
     SUBDIR += py-screeninfo
+    SUBDIR += py-waypaper
     SUBDIR += py-xcffib
     SUBDIR += py-xdot
     SUBDIR += qimageblitz
diff --git a/x11/py-waypaper/Makefile b/x11/py-waypaper/Makefile
new file mode 100644
index 000000000000..8845c3d25839
--- /dev/null
+++ b/x11/py-waypaper/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	waypaper
+DISTVERSION=	2.3
+CATEGORIES=	x11 python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	nivit@FreeBSD.org
+COMMENT=	GUI wallpaper manager for Wayland and Xorg
+WWW=		https://anufrievroman.gitbook.io/waypaper
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0.44.0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>=3.42:devel/py-gobject3@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}importlib-metadata>=8.5.0:devel/py-importlib-metadata@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pillow>=10.4.0:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}platformdirs>=4.2.2:devel/py-platformdirs@${PY_FLAVOR} \
+		feh:graphics/feh \
+		swaybg:x11/swaybg
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+.include <bsd.port.mk>
diff --git a/x11/py-waypaper/distinfo b/x11/py-waypaper/distinfo
new file mode 100644
index 000000000000..adfa42717e87
--- /dev/null
+++ b/x11/py-waypaper/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1726659426
+SHA256 (waypaper-2.3.tar.gz) = abbb17bba6ff4f6da05312abdfae374d7df6b751274375e0692432357fbf2f40
+SIZE (waypaper-2.3.tar.gz) = 38371
diff --git a/x11/py-waypaper/pkg-descr b/x11/py-waypaper/pkg-descr
new file mode 100644
index 000000000000..703fd0852caf
--- /dev/null
+++ b/x11/py-waypaper/pkg-descr
@@ -0,0 +1,13 @@
+GUI wallpaper setter for Wayland and Xorg window managers. It works as a
+frontend for popular wallpaper backends like swaybg, swww, wallutils,
+hyprpaper and feh.
+
+Features
+
+    - Vim keys
+    - Support for GIF animations (with swww)
+    - Support for multiple monitors (with swww)
+    - Works on Wayland (with swww or swaybg or wallutils or hyprpaper)
+    - Works on Xorg (with feh or wallutils)
+    - Restores wallpaper at launch of your WM
+    - Caching for fast loading