git: 66e8b20818df - main - x11/deforaos-locker: Add back latest version 0.4.2

From: Olivier Cochard <olivier_at_FreeBSD.org>
Date: Thu, 23 Nov 2023 12:34:31 UTC
The branch main has been updated by olivier:

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

commit 66e8b20818dfca4e9569090eaf722d9a972c9ba7
Author:     Pierre Pronchery <khorben@defora.org>
AuthorDate: 2023-10-28 14:17:34 +0000
Commit:     Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2023-11-23 12:30:50 +0000

    x11/deforaos-locker: Add back latest version 0.4.2
    
    DeforaOS desktop screensaver
    WWW:    https://www.defora.org/
---
 x11/Makefile                  |  1 +
 x11/deforaos-locker/Makefile  | 50 +++++++++++++++++++++++++++++++++++++++++++
 x11/deforaos-locker/distinfo  |  3 +++
 x11/deforaos-locker/pkg-descr |  1 +
 x11/deforaos-locker/pkg-plist | 42 ++++++++++++++++++++++++++++++++++++
 5 files changed, 97 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index b4235edf5ee5..38d05080736c 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -52,6 +52,7 @@
     SUBDIR += damask
     SUBDIR += deforaos-keyboard
     SUBDIR += deforaos-libdesktop
+    SUBDIR += deforaos-locker
     SUBDIR += deskmenu
     SUBDIR += disman
     SUBDIR += dmenu
diff --git a/x11/deforaos-locker/Makefile b/x11/deforaos-locker/Makefile
new file mode 100644
index 000000000000..75c06eb05342
--- /dev/null
+++ b/x11/deforaos-locker/Makefile
@@ -0,0 +1,50 @@
+PORTNAME=	locker
+PORTVERSION=	0.4.2
+CATEGORIES=	x11
+MASTER_SITES=	https://ftp.defora.org/pub/DeforaOS/Apps/Desktop/src/Locker/
+PKGNAMEPREFIX=	deforaos-
+DISTNAME=	Locker-${PORTVERSION}
+
+MAINTAINER=	olivier@FreeBSD.org
+COMMENT=	DeforaOS desktop screensaver
+WWW=		https://www.defora.org/
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/Panel.pc:x11-wm/deforaos-panel
+LIB_DEPENDS=	libDesktop.so:x11/deforaos-libdesktop \
+		libSystem.so:devel/deforaos-libsystem \
+		libharfbuzz.so:print/harfbuzz \
+		libXss.so:x11/libXScrnSaver
+
+USES=		gnome pkgconfig xorg desktop-file-utils
+USE_GNOME=	gtk30 cairo gdkpixbuf2
+USE_XORG=	x11 xext
+MAKE_ARGS+=	PREFIX=${PREFIX}
+MAKE_ARGS+=	LDFLAGS=${LDFLAGS:Q}
+MAKE_ENV+=	MANDIR=${STAGEDIR}${MANPREFIX}/man
+LDFLAGS+=	-lXext
+
+OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
+NLS_USES=		gettext
+DOCS_BUILD_DEPENDS=	xsltproc:textproc/libxslt \
+			${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
+			gtkdoc-mkhtml:textproc/gtk-doc
+
+post-patch-DOCS-off:
+	${REINPLACE_CMD} 's|data doc include|data include|' \
+		${WRKSRC}/Makefile
+
+post-patch-NLS-off:
+	${REINPLACE_CMD} 's|include po src|include src|' \
+		${WRKSRC}/Makefile
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* \
+		${STAGEDIR}${PREFIX}/lib/Locker/auth/* \
+		${STAGEDIR}${PREFIX}/lib/Locker/plugins/* \
+		${STAGEDIR}${PREFIX}/lib/Locker/demos/*
+
+.include <bsd.port.mk>
diff --git a/x11/deforaos-locker/distinfo b/x11/deforaos-locker/distinfo
new file mode 100644
index 000000000000..f3a51d30d806
--- /dev/null
+++ b/x11/deforaos-locker/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1698502032
+SHA256 (Locker-0.4.2.tar.gz) = e578a83a03de3e3fffedf550735e83b6953da31ab90871859591ab14a94eba87
+SIZE (Locker-0.4.2.tar.gz) = 54620
diff --git a/x11/deforaos-locker/pkg-descr b/x11/deforaos-locker/pkg-descr
new file mode 100644
index 000000000000..66453be290d1
--- /dev/null
+++ b/x11/deforaos-locker/pkg-descr
@@ -0,0 +1 @@
+DeforaOS desktop screensaver
diff --git a/x11/deforaos-locker/pkg-plist b/x11/deforaos-locker/pkg-plist
new file mode 100644
index 000000000000..de1c2602432e
--- /dev/null
+++ b/x11/deforaos-locker/pkg-plist
@@ -0,0 +1,42 @@
+bin/locker
+bin/lockerctl
+include/Desktop/Locker.h
+include/Desktop/Locker/auth.h
+include/Desktop/Locker/demo.h
+include/Desktop/Locker/locker.h
+include/Desktop/Locker/plugin.h
+lib/Locker/auth/password.so
+lib/Locker/auth/slider.so
+lib/Locker/demos/colors.so
+lib/Locker/demos/gtk-demo.so
+lib/Locker/demos/logo.so
+lib/Locker/demos/xscreensaver.so
+lib/Locker/demos/xterm.so
+lib/Locker/plugins/openmoko.so
+lib/Locker/plugins/suspend.so
+lib/Locker/plugins/systray.so
+%%PORTDOCS%%man/html1/locker.html.gz
+%%PORTDOCS%%man/html1/lockerctl.html.gz
+%%PORTDOCS%%man/man1/locker.1.gz
+%%PORTDOCS%%man/man1/lockerctl.1.gz
+share/applications/org.defora.locker-settings.desktop
+share/doc/Locker/COPYING
+share/doc/Locker/README.md
+%%PORTDOCS%%share/gtk-doc/html/Locker/Locker-auth.html
+%%PORTDOCS%%share/gtk-doc/html/Locker/Locker-demo.html
+%%PORTDOCS%%share/gtk-doc/html/Locker/Locker-plugin.html
+%%PORTDOCS%%share/gtk-doc/html/Locker/Locker.devhelp2
+%%PORTDOCS%%share/gtk-doc/html/Locker/api-index-full.html
+%%PORTDOCS%%share/gtk-doc/html/Locker/ch01.html
+%%PORTDOCS%%share/gtk-doc/html/Locker/deprecated-api-index.html
+%%PORTDOCS%%share/gtk-doc/html/Locker/home.png
+%%PORTDOCS%%share/gtk-doc/html/Locker/index.html
+%%PORTDOCS%%share/gtk-doc/html/Locker/left-insensitive.png
+%%PORTDOCS%%share/gtk-doc/html/Locker/left.png
+%%PORTDOCS%%share/gtk-doc/html/Locker/right-insensitive.png
+%%PORTDOCS%%share/gtk-doc/html/Locker/right.png
+%%PORTDOCS%%share/gtk-doc/html/Locker/style.css
+%%PORTDOCS%%share/gtk-doc/html/Locker/up-insensitive.png
+%%PORTDOCS%%share/gtk-doc/html/Locker/up.png
+%%NLS%%share/locale/es/LC_MESSAGES/Locker.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/Locker.mo