pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-bandit: Add ALTERNATIVES and install versioned bin-s
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Tue Dec 17 12:49:02 2019 +0100
Changeset: 60bc23c81d0abc9a18e92583a0825e414d5686aa
Modified Files:
py-bandit/Makefile
py-bandit/PLIST
Added Files:
py-bandit/ALTERNATIVES
Log Message:
py-bandit: Add ALTERNATIVES and install versioned bin-s
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=60bc23c81d0abc9a18e92583a0825e414d5686aa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-bandit/ALTERNATIVES | 3 +++
py-bandit/Makefile | 6 ++++++
py-bandit/PLIST | 6 +++---
3 files changed, 12 insertions(+), 3 deletions(-)
diffs:
diff --git a/py-bandit/ALTERNATIVES b/py-bandit/ALTERNATIVES
new file mode 100644
index 0000000000..83d8ecd0bb
--- /dev/null
+++ b/py-bandit/ALTERNATIVES
@@ -0,0 +1,3 @@
+bin/bandit @PREFIX@/bin/bandit@PYVERSSUFFIX@
+bin/bandit-baseline @PREFIX@/bin/bandit-baseline@PYVERSSUFFIX@
+bin/bandit-config-generator @PREFIX@/bin/bandit-config-generator@PYVERSSUFFIX@
diff --git a/py-bandit/Makefile b/py-bandit/Makefile
index 80f3bef28b..a35b31f7cc 100644
--- a/py-bandit/Makefile
+++ b/py-bandit/Makefile
@@ -17,5 +17,11 @@ DEPENDS+= ${PYPKGPREFIX}-yaml>=3.13:../../textproc/py-yaml
USE_LANGUAGES= # none
+post-install:
+.for b in bandit bandit-baseline bandit-config-generator
+ ${MV} ${DESTDIR}${PREFIX}/bin/${b} \
+ ${DESTDIR}${PREFIX}/bin/${b}${PYVERSSUFFIX} || ${TRUE}
+.endfor
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/py-bandit/PLIST b/py-bandit/PLIST
index a336c70717..8082d1d581 100644
--- a/py-bandit/PLIST
+++ b/py-bandit/PLIST
@@ -1,7 +1,7 @@
@comment $NetBSD$
-bin/bandit
-bin/bandit-baseline
-bin/bandit-config-generator
+bin/bandit${PYVERSSUFFIX}
+bin/bandit-baseline${PYVERSSUFFIX}
+bin/bandit-config-generator${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
Home |
Main Index |
Thread Index |
Old Index