pkgsrc-WIP-changes archive

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

py-jc: install versioned binary



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Thu Dec 5 09:13:45 2024 +0100
Changeset:	b0faa1f77f1d179cdc49f7ac93238901331c50ee

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

Log Message:
py-jc: install versioned binary

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

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

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

diffs:
diff --git a/py-jc/ALTERNATIVES b/py-jc/ALTERNATIVES
new file mode 100644
index 0000000000..9f221e6b1f
--- /dev/null
+++ b/py-jc/ALTERNATIVES
@@ -0,0 +1 @@
+bin/jc @PREFIX@/bin/jc-@PYVERSSUFFIX@
diff --git a/py-jc/Makefile b/py-jc/Makefile
index ea44b89309..1d1103af87 100644
--- a/py-jc/Makefile
+++ b/py-jc/Makefile
@@ -20,5 +20,8 @@ USE_LANGUAGES=	# none
 # test data not included
 # https://github.com/kellyjonbrazil/jc/issues/620
 
+post-install:
+	cd ${DESTDIR}${PREFIX}/bin && ${MV} jc jc-${PYVERSSUFFIX} || ${TRUE}
+
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-jc/PLIST b/py-jc/PLIST
index 3bf3b7f60d..1c900c15b6 100644
--- a/py-jc/PLIST
+++ b/py-jc/PLIST
@@ -1,5 +1,5 @@
 @comment $NetBSD$
-bin/jc
+bin/jc-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.md
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD


Home | Main Index | Thread Index | Old Index