pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

x11/xss-lock: add xss-lock-0.3.0 as wip/xss-lock



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Fri Oct 28 22:52:49 2022 +0200
Changeset:	e7c2ee64418829b901fa68ef22788bc11a248831

Added Files:
	xss-lock/DESCR
	xss-lock/Makefile
	xss-lock/PLIST
	xss-lock/distinfo
	xss-lock/patches/patch-doc_CMakeLists.txt
	xss-lock/patches/patch-src_xss-lock.c

Log Message:
x11/xss-lock: add xss-lock-0.3.0 as wip/xss-lock

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e7c2ee64418829b901fa68ef22788bc11a248831

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 xss-lock/DESCR                            |  1 +
 xss-lock/Makefile                         | 35 +++++++++++++++++++++++++++++++
 xss-lock/PLIST                            | 10 +++++++++
 xss-lock/distinfo                         |  7 +++++++
 xss-lock/patches/patch-doc_CMakeLists.txt | 15 +++++++++++++
 xss-lock/patches/patch-src_xss-lock.c     | 31 +++++++++++++++++++++++++++
 6 files changed, 99 insertions(+)

diffs:
diff --git a/xss-lock/DESCR b/xss-lock/DESCR
new file mode 100644
index 0000000000..862a683c07
--- /dev/null
+++ b/xss-lock/DESCR
@@ -0,0 +1 @@
+xss-lock allows to set an external locker as the X screensaver.
diff --git a/xss-lock/Makefile b/xss-lock/Makefile
new file mode 100644
index 0000000000..540198abac
--- /dev/null
+++ b/xss-lock/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD$
+
+DISTNAME=	1e158fb20108
+PKGNAME=	xss-lock-0.3.0
+CATEGORIES=	x11
+MASTER_SITES=	https://bitbucket.org/raymonad/xss-lock/get/
+DIST_SUBDIR=	${PKGNAME_NOREV}
+EXTRACT_SUFX=	.zip
+
+MAINTAINER=	vms%retrobsd.ddns.net@localhost
+HOMEPAGE=	https://bitbucket.org/raymonad/xss-lock
+COMMENT=	Use external locker as X screen saver
+LICENSE=	mit
+
+USE_TOOLS+=	pkg-config
+
+PYTHON_FOR_BUILD_ONLY=	tool
+# Requires rst2man to generate man page
+# TOOL_DEPENDS+=		${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
+
+SUBST_CLASSES+=		doc
+SUBST_MESSAGE.doc=	Fixing rst2man name due to python versioning.
+SUBST_STAGE.doc=	pre-configure
+SUBST_FILES.doc=	doc/CMakeLists.txt
+SUBST_SED.doc=		-e 's,rst2man.py,rst2man-${PYVERSSUFFIX},g'
+
+USE_CMAKE=	yes
+CMAKE_ARGS+=	-DCMAKE_INSTALL_PREFIX=${PREFIX}
+CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
+
+WRKSRC=		${WRKDIR}/raymonad-xss-lock-${DISTNAME}
+
+.include "../../x11/xcb-util/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/xss-lock/PLIST b/xss-lock/PLIST
new file mode 100644
index 0000000000..15b79e46c9
--- /dev/null
+++ b/xss-lock/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+bin/xss-lock
+man/man1/xss-lock.1
+share/bash-completion/completions/xss-lock
+share/doc/xss-lock/NEWS
+share/doc/xss-lock/dim-screen.sh
+share/doc/xss-lock/transfer-sleep-lock-generic-delay.sh
+share/doc/xss-lock/transfer-sleep-lock-i3lock.sh
+share/doc/xss-lock/xdg-screensaver.patch
+share/zsh/site-functions/_xss-lock
diff --git a/xss-lock/distinfo b/xss-lock/distinfo
new file mode 100644
index 0000000000..b9c2cc7fac
--- /dev/null
+++ b/xss-lock/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (xss-lock-0.3.0/1e158fb20108.zip) = 3d13015d33597dc399b5c3292d9177454b8ea77dd4a11d4d3b40eca05c4209cc
+SHA512 (xss-lock-0.3.0/1e158fb20108.zip) = 6db44edcce4fd21f8788504919cfbb0baccda4f97fc27be844ee7ef24ea9cba7ec9d6f080951021e3ac65592724ba079c38b55841b3caaa2b7c7e8c41efffeb5
+Size (xss-lock-0.3.0/1e158fb20108.zip) = 18436 bytes
+SHA1 (patch-doc_CMakeLists.txt) = 31e2bf67d746cfec5b89cfe0071290f60c9e4e3f
+SHA1 (patch-src_xss-lock.c) = 19afb8f344883f88a1b9a68ca0152321fbf5e51d
diff --git a/xss-lock/patches/patch-doc_CMakeLists.txt b/xss-lock/patches/patch-doc_CMakeLists.txt
new file mode 100644
index 0000000000..f38e024755
--- /dev/null
+++ b/xss-lock/patches/patch-doc_CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix man page destination.
+
+--- doc/CMakeLists.txt.orig	2014-03-02 10:46:32.000000000 +0000
++++ doc/CMakeLists.txt
+@@ -8,7 +8,7 @@ if(rst2man)
+                        COMMAND ${rst2man} ${man_input} ${man_output}
+                        DEPENDS ${man_input})
+     add_custom_target(man ALL DEPENDS ${man_output})
+-    install(FILES ${man_output} DESTINATION share/man/man1)
++    install(FILES ${man_output} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
+ else()
+     message(WARNING "rst2man (docutils) not found, disabling man page generation")
+ endif()
diff --git a/xss-lock/patches/patch-src_xss-lock.c b/xss-lock/patches/patch-src_xss-lock.c
new file mode 100644
index 0000000000..c79a090040
--- /dev/null
+++ b/xss-lock/patches/patch-src_xss-lock.c
@@ -0,0 +1,31 @@
+$NetBSD$
+
+Avoid core dump when exiting due to loss of X connection.
+Fix warning for deprecated declaration.
+
+--- src/xss-lock.c.orig	2014-03-02 10:46:32.000000000 +0000
++++ src/xss-lock.c
+@@ -158,9 +158,11 @@ screensaver_event_cb(xcb_connection_t *c
+ {
+     uint8_t event_type;
+     
+-    if (!event)
+-        g_critical("X connection lost; exiting.");
+-    
++    if (!event) {
++        g_info("X connection lost; exiting.");
++        exit(EXIT_FAILURE);
++    }
++
+     event_type = XCB_EVENT_RESPONSE_TYPE(event);
+     if (event_type == 0) {
+         xcb_generic_error_t *error = (xcb_generic_error_t *)event;
+@@ -256,7 +258,7 @@ child_watch_cb(GPid pid, gint status, Ch
+ #if GLIB_CHECK_VERSION(2, 34, 0)
+     GError *error = NULL;
+ 
+-    if (!g_spawn_check_exit_status(status, &error)) {
++    if (!g_spawn_check_wait_status(status, &error)) {
+         g_message("%s exited abnormally: %s", child->name, error->message);
+         g_error_free(error);
+     }


Home | Main Index | Thread Index | Old Index