pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-future Add version suffix to binaries to allo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/973ae5480bee
branches:  trunk
changeset: 358152:973ae5480bee
user:      markd <markd%pkgsrc.org@localhost>
date:      Mon Feb 06 01:06:05 2017 +0000

description:
Add version suffix to binaries to allow multiple alternatives at once.

diffstat:

 devel/py-future/ALTERNATIVES |   2 ++
 devel/py-future/Makefile     |  10 ++++++++--
 devel/py-future/PLIST        |   6 +++---
 3 files changed, 13 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 9b9cfcdbc3b4 -r 973ae5480bee devel/py-future/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-future/ALTERNATIVES      Mon Feb 06 01:06:05 2017 +0000
@@ -0,0 +1,2 @@
+bin/futurize @PREFIX@/bin/futurize-@PYVERSSUFFIX@
+bin/pasteurize @PREFIX@/bin/pasteurize-@PYVERSSUFFIX@
diff -r 9b9cfcdbc3b4 -r 973ae5480bee devel/py-future/Makefile
--- a/devel/py-future/Makefile  Sun Feb 05 20:40:44 2017 +0000
+++ b/devel/py-future/Makefile  Mon Feb 06 01:06:05 2017 +0000
@@ -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 @@
 
 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 -r 9b9cfcdbc3b4 -r 973ae5480bee devel/py-future/PLIST
--- a/devel/py-future/PLIST     Sun Feb 05 20:40:44 2017 +0000
+++ b/devel/py-future/PLIST     Mon Feb 06 01:06:05 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index