diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2015-07-04 14:12:03 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2015-07-04 14:12:03 +0000 |
commit | a97e5d4900a1f456f9f994e6af1cd65d5bded225 (patch) | |
tree | 169c6505a7086fd9d6d5431b1f1464ecd642b03e /devel | |
parent | 09a081f73e69872d1c92eb90e8691bbfd24e5896 (diff) | |
download | pkgsrc-a97e5d4900a1f456f9f994e6af1cd65d5bded225.tar.gz |
Use ALTERNATIVES for bin/pip so that this package can be installed
for multiple Python versions in parallel. Fixes PR pkg/49694.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-pip/ALTERNATIVES | 1 | ||||
-rw-r--r-- | devel/py-pip/Makefile | 7 | ||||
-rw-r--r-- | devel/py-pip/PLIST | 3 |
3 files changed, 8 insertions, 3 deletions
diff --git a/devel/py-pip/ALTERNATIVES b/devel/py-pip/ALTERNATIVES new file mode 100644 index 00000000000..79c25ebd112 --- /dev/null +++ b/devel/py-pip/ALTERNATIVES @@ -0,0 +1 @@ +bin/pip @PREFIX@/bin/pip@PYVERSSUFFIX@ diff --git a/devel/py-pip/Makefile b/devel/py-pip/Makefile index 64de748e599..e1226133e0a 100644 --- a/devel/py-pip/Makefile +++ b/devel/py-pip/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.11 2014/06/01 14:39:39 rodent Exp $ +# $NetBSD: Makefile,v 1.12 2015/07/04 14:12:03 bsiegert Exp $ DISTNAME= pip-1.5.6 +PKGREVISION= 1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= devel MASTER_SITES= http://pypi.python.org/packages/source/p/pip/ @@ -11,10 +12,14 @@ COMMENT= Installs Python packages as an easy_install replacement LICENSE= mit PLIST_SUBST+= PYVERSSUFFIX="${PYVERSSUFFIX}" +FILES_SUBST+= PYVERSSUFFIX="${PYVERSSUFFIX}" REPLACE_PYTHON+= pip/__init__.py pip/_vendor/requests/certs.py REPLACE_PYTHON+= pip/_vendor/requests/packages/chardet/chardetect.py +post-install: + ${RM} -f ${DESTDIR}${PREFIX}/bin/pip + .include "../../lang/python/application.mk" .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/py-pip/PLIST b/devel/py-pip/PLIST index 0d328308bef..aca5af46cf5 100644 --- a/devel/py-pip/PLIST +++ b/devel/py-pip/PLIST @@ -1,5 +1,4 @@ -@comment $NetBSD: PLIST,v 1.10 2014/06/05 18:28:07 joerg Exp $ -bin/pip +@comment $NetBSD: PLIST,v 1.11 2015/07/04 14:12:03 bsiegert Exp $ ${PLIST.py2x}bin/pip2 ${PLIST.py3x}bin/pip3 bin/pip${PYVERSSUFFIX} |