git: 02b6c90afb90 - main - x11/damask: add port: Automatically set wallpaper images from Internet sources

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Mon, 31 Jul 2023 07:21:48 UTC
The branch main has been updated by tagattie:

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

commit 02b6c90afb90e7faebc665ba65233a65d57c7fae
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2023-07-31 07:19:34 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2023-07-31 07:21:30 +0000

    x11/damask: add port: Automatically set wallpaper images from Internet sources
    
    Damask is an application that will automatically set wallpaper images
    by selecting images from a variety of sources, including local files
    and folders. It currently supports setting the wallpaper image from
    the following sources:
    
    - wallhaven.cc
    - Microsoft Bing Wallpaper of the day
    - NASA Astronomy Picture of the Day
    - Unsplash
    
    WWW: https://gitlab.gnome.org/subpop/damask
---
 x11/Makefile         |  1 +
 x11/damask/Makefile  | 36 ++++++++++++++++++++++++++++++++++++
 x11/damask/distinfo  |  3 +++
 x11/damask/pkg-descr |  9 +++++++++
 x11/damask/pkg-plist |  8 ++++++++
 5 files changed, 57 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index e65ca29216e7..82e9e91d72c0 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -50,6 +50,7 @@
     SUBDIR += controllermap
     SUBDIR += cool-retro-term
     SUBDIR += coreterminal
+    SUBDIR += damask
     SUBDIR += deforaos-keyboard
     SUBDIR += deforaos-libdesktop
     SUBDIR += deskmenu
diff --git a/x11/damask/Makefile b/x11/damask/Makefile
new file mode 100644
index 000000000000..b082aef8dd60
--- /dev/null
+++ b/x11/damask/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	damask
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.2.0
+CATEGORIES=	x11 gnome
+
+MAINTAINER=	tagattie@FreeBSD.org
+COMMENT=	Automatically set wallpaper images from Internet sources
+WWW=		https://gitlab.gnome.org/subpop/damask
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	appstream-util:devel/appstream-glib \
+		blueprint-compiler:devel/blueprint-compiler
+LIB_DEPENDS=	libportal.so:deskutils/libportal \
+		libportal-gtk4.so:deskutils/libportal-gtk4 \
+		libjson-glib-1.0.so:devel/json-glib \
+		libgee-0.8.so:devel/libgee \
+		libsoup-3.0.so:devel/libsoup3
+RUN_DEPENDS=	xdg-desktop-portal-gnome>0:x11/xdg-desktop-portal-gnome
+
+USES=		desktop-file-utils gettext-tools gnome meson pkgconfig \
+		vala:build
+
+USE_GITLAB=	yes
+GL_SITE=	https://gitlab.gnome.org
+GL_ACCOUNT=	subpop
+
+USE_GNOME=	glib20 gtk40 libadwaita
+GLIB_SCHEMAS=	app.drey.Damask.gschema.xml
+
+# Don't create __pycache__ directory when executing blueprint-compiler
+# This is a workaround to avoid filesystem violations during poudriere build
+MAKE_ENV=	PYTHONDONTWRITEBYTECODE=1
+
+.include <bsd.port.mk>
diff --git a/x11/damask/distinfo b/x11/damask/distinfo
new file mode 100644
index 000000000000..f6e8f40862c6
--- /dev/null
+++ b/x11/damask/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1690706882
+SHA256 (damask-v0.2.0.tar.bz2) = cdff79e2be8ad8ef75f6509f627363742e8cc1041be244d303f219921d202255
+SIZE (damask-v0.2.0.tar.bz2) = 291015
diff --git a/x11/damask/pkg-descr b/x11/damask/pkg-descr
new file mode 100644
index 000000000000..1be103c2073c
--- /dev/null
+++ b/x11/damask/pkg-descr
@@ -0,0 +1,9 @@
+Damask is an application that will automatically set wallpaper images
+by selecting images from a variety of sources, including local files
+and folders. It currently supports setting the wallpaper image from
+the following sources:
+
+- wallhaven.cc
+- Microsoft Bing Wallpaper of the day
+- NASA Astronomy Picture of the Day
+- Unsplash
diff --git a/x11/damask/pkg-plist b/x11/damask/pkg-plist
new file mode 100644
index 000000000000..6be528aa5670
--- /dev/null
+++ b/x11/damask/pkg-plist
@@ -0,0 +1,8 @@
+bin/damask
+share/applications/app.drey.Damask.desktop
+share/icons/hicolor/scalable/apps/app.drey.Damask.svg
+share/icons/hicolor/symbolic/apps/app.drey.Damask-symbolic.svg
+share/locale/fr/LC_MESSAGES/damask.mo
+share/locale/nl/LC_MESSAGES/damask.mo
+share/locale/ru/LC_MESSAGES/damask.mo
+share/metainfo/app.drey.Damask.metainfo.xml