pkgsrc-WIP-changes archive

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

py-glad2: Add Python versioned suffix



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sun Dec 31 15:10:14 2023 +0100
Changeset:	dcb833c38e553970946cffd35d35d96962c884b0

Modified Files:
	py-glad2/Makefile
	py-glad2/PLIST
Added Files:
	py-glad2/ALTERNATIVES

Log Message:
py-glad2: Add Python versioned suffix

Install glad so that possible several Python version can coexist at the
same time.

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

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

diffstat:
 py-glad2/ALTERNATIVES | 1 +
 py-glad2/Makefile     | 3 +++
 py-glad2/PLIST        | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)

diffs:
diff --git a/py-glad2/ALTERNATIVES b/py-glad2/ALTERNATIVES
new file mode 100644
index 0000000000..809e37531b
--- /dev/null
+++ b/py-glad2/ALTERNATIVES
@@ -0,0 +1 @@
+bin/glad @PREFIX@/bin/glad@PYVERSSUFFIX@
diff --git a/py-glad2/Makefile b/py-glad2/Makefile
index d2d6508316..b2dc4fab16 100644
--- a/py-glad2/Makefile
+++ b/py-glad2/Makefile
@@ -16,5 +16,8 @@ DEPENDS+=	${PYPKGPREFIX}-jinja2>=0:../../textproc/py-jinja2
 
 PYTHON_VERSIONS_INCOMPATIBLE=	27
 
+post-install:
+	${MV} ${DESTDIR}${PREFIX}/bin/glad ${DESTDIR}${PREFIX}/bin/glad${PYVERSSUFFIX} || ${TRUE}
+
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-glad2/PLIST b/py-glad2/PLIST
index bc8efc657d..f05fea4084 100644
--- a/py-glad2/PLIST
+++ b/py-glad2/PLIST
@@ -1,5 +1,5 @@
 @comment $NetBSD$
-bin/glad
+bin/glad${PYVERSSUFFIX}
 ${PYSITELIB}/glad/__init__.py
 ${PYSITELIB}/glad/__init__.pyc
 ${PYSITELIB}/glad/__init__.pyo


Home | Main Index | Thread Index | Old Index