diff options
author | markd <markd@pkgsrc.org> | 2017-02-06 01:06:05 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2017-02-06 01:06:05 +0000 |
commit | a8f7617ea84431db410e9de1060faf3c5c3d0fff (patch) | |
tree | dbf1cb4ca309c45467ea3f07d28e2aa0a6fdc4d4 | |
parent | 5a833cdba6388de920a1c43f2156aa855c501c30 (diff) | |
download | pkgsrc-a8f7617ea84431db410e9de1060faf3c5c3d0fff.tar.gz |
Add version suffix to binaries to allow multiple alternatives at once.
-rw-r--r-- | devel/py-future/ALTERNATIVES | 2 | ||||
-rw-r--r-- | devel/py-future/Makefile | 10 | ||||
-rw-r--r-- | devel/py-future/PLIST | 6 |
3 files changed, 13 insertions, 5 deletions
diff --git a/devel/py-future/ALTERNATIVES b/devel/py-future/ALTERNATIVES new file mode 100644 index 00000000000..aa2c2f93570 --- /dev/null +++ b/devel/py-future/ALTERNATIVES @@ -0,0 +1,2 @@ +bin/futurize @PREFIX@/bin/futurize-@PYVERSSUFFIX@ +bin/pasteurize @PREFIX@/bin/pasteurize-@PYVERSSUFFIX@ diff --git a/devel/py-future/Makefile b/devel/py-future/Makefile index 7b4424a18b0..f3cdeb37ede 100644 --- a/devel/py-future/Makefile +++ b/devel/py-future/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.2 2017/01/17 17:14:14 fhajny Exp $ +# $NetBSD: Makefile,v 1.3 2017/02/06 01:06:05 markd Exp $ DISTNAME= future-0.16.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_PYPI:=f/future/} @@ -12,6 +13,11 @@ LICENSE= mit USE_LANGUAGES= # none -.include "../../lang/python/pyversion.mk" +post-install: + ${MV} ${DESTDIR}${PREFIX}/bin/futurize \ + ${DESTDIR}${PREFIX}/bin/futurize-${PYVERSSUFFIX} || ${TRUE} + ${MV} ${DESTDIR}${PREFIX}/bin/pasteurize \ + ${DESTDIR}${PREFIX}/bin/pasteurize-${PYVERSSUFFIX} || ${TRUE} + .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/py-future/PLIST b/devel/py-future/PLIST index a903c02fc12..2f073ddf814 100644 --- a/devel/py-future/PLIST +++ b/devel/py-future/PLIST @@ -1,6 +1,6 @@ -@comment $NetBSD: PLIST,v 1.2 2017/01/17 17:14:14 fhajny Exp $ -bin/futurize -bin/pasteurize +@comment $NetBSD: PLIST,v 1.3 2017/02/06 01:06:05 markd Exp $ +bin/futurize-${PYVERSSUFFIX} +bin/pasteurize-${PYVERSSUFFIX} ${PYSITELIB}/future/__init__.py ${PYSITELIB}/future/__init__.pyc ${PYSITELIB}/future/__init__.pyo |