Tue May 2 16:23:30 2023 UTC ()
xss-lock: only allow build with Python 3


(wiz)
diff -r1.3 -r1.4 pkgsrc/x11/xss-lock/Makefile

cvs diff -r1.3 -r1.4 pkgsrc/x11/xss-lock/Makefile (expand / switch to unified diff)

--- pkgsrc/x11/xss-lock/Makefile 2022/12/06 14:41:40 1.3
+++ pkgsrc/x11/xss-lock/Makefile 2023/05/02 16:23:30 1.4
@@ -1,33 +1,35 @@ @@ -1,33 +1,35 @@
1# $NetBSD: Makefile,v 1.3 2022/12/06 14:41:40 vins Exp $ 1# $NetBSD: Makefile,v 1.4 2023/05/02 16:23:30 wiz Exp $
2 2
3DISTNAME= 1e158fb20108 3DISTNAME= 1e158fb20108
4PKGNAME= xss-lock-0.3.0 4PKGNAME= xss-lock-0.3.0
5CATEGORIES= x11 5CATEGORIES= x11
6MASTER_SITES= https://bitbucket.org/raymonad/xss-lock/get/ 6MASTER_SITES= https://bitbucket.org/raymonad/xss-lock/get/
7DIST_SUBDIR= ${PKGNAME_NOREV} 7DIST_SUBDIR= ${PKGNAME_NOREV}
8EXTRACT_SUFX= .zip 8EXTRACT_SUFX= .zip
9 9
10MAINTAINER= vins@NetBSD.org 10MAINTAINER= vins@NetBSD.org
11HOMEPAGE= https://bitbucket.org/raymonad/xss-lock 11HOMEPAGE= https://bitbucket.org/raymonad/xss-lock
12COMMENT= Use external locker as X screen saver 12COMMENT= Use external locker as X screen saver
13LICENSE= mit 13LICENSE= mit
14 14
15USE_TOOLS+= pkg-config 
16 
17PYTHON_FOR_BUILD_ONLY= tool 
18# Requires rst2man to generate man page 15# Requires rst2man to generate man page
19TOOL_DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils 16TOOL_DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
20 17
 18USE_TOOLS+= pkg-config
 19
 20PYTHON_FOR_BUILD_ONLY= tool
 21PYTHON_VERSIONS_INCOMPATIBLE= 27
 22
21SUBST_CLASSES+= doc 23SUBST_CLASSES+= doc
22SUBST_MESSAGE.doc= Fixing rst2man name due to python versioning. 24SUBST_MESSAGE.doc= Fixing rst2man name due to python versioning.
23SUBST_STAGE.doc= pre-configure 25SUBST_STAGE.doc= pre-configure
24SUBST_FILES.doc= doc/CMakeLists.txt 26SUBST_FILES.doc= doc/CMakeLists.txt
25SUBST_SED.doc= -e 's,rst2man.py,rst2man-${PYVERSSUFFIX},g' 27SUBST_SED.doc= -e 's,rst2man.py,rst2man-${PYVERSSUFFIX},g'
26 28
27USE_CMAKE= yes 29USE_CMAKE= yes
28CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX=${PREFIX} 30CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX=${PREFIX}
29CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release 31CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
30 32
31WRKSRC= ${WRKDIR}/raymonad-xss-lock-${DISTNAME} 33WRKSRC= ${WRKDIR}/raymonad-xss-lock-${DISTNAME}
32 34
33.include "../../lang/python/pyversion.mk" 35.include "../../lang/python/pyversion.mk"