Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-pip py-pip: Add pip[23] as alternatives



details:   https://anonhg.NetBSD.org/pkgsrc/rev/965a7f7a8b45
branches:  trunk
changeset: 433926:965a7f7a8b45
user:      leot <leot%pkgsrc.org@localhost>
date:      Mon Jun 08 20:17:56 2020 +0000

description:
py-pip: Add pip[23] as alternatives

pip2 and pip3 are widely used aliases which make sure the specific
major version is used.

Patch from Bartosz Kosiorek via <https://github.com/NetBSD/pkgsrc/pull/64>.

Closes NetBSD/pkgsrc#64

PKGREVISION++

diffstat:

 devel/py-pip/ALTERNATIVES |  1 +
 devel/py-pip/Makefile     |  6 +++++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 8cfdc85f1130 -r 965a7f7a8b45 devel/py-pip/ALTERNATIVES
--- a/devel/py-pip/ALTERNATIVES Mon Jun 08 19:48:28 2020 +0000
+++ b/devel/py-pip/ALTERNATIVES Mon Jun 08 20:17:56 2020 +0000
@@ -1,1 +1,2 @@
 bin/pip @PREFIX@/bin/pip@PYVERSSUFFIX@
+bin/pip@PYMAJORVERSION@ @PREFIX@/bin/pip@PYVERSSUFFIX@
diff -r 8cfdc85f1130 -r 965a7f7a8b45 devel/py-pip/Makefile
--- a/devel/py-pip/Makefile     Mon Jun 08 19:48:28 2020 +0000
+++ b/devel/py-pip/Makefile     Mon Jun 08 20:17:56 2020 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.37 2020/06/01 16:27:17 adam Exp $
+# $NetBSD: Makefile,v 1.38 2020/06/08 20:17:56 leot Exp $
 
 DISTNAME=      pip-20.1.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pip/}
 
@@ -16,6 +17,9 @@
 REPLACE_PYTHON+=       src/pip/_vendor/chardet/cli/chardetect.py
 REPLACE_PYTHON+=       src/pip/_vendor/requests/certs.py
 
+.include "../../lang/python/pyversion.mk"
+FILES_SUBST+=  PYMAJORVERSION=${_PYTHON_VERSION:C/^([0-9]).*/\1/}
+
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && ${RM} -f pip pip[2-3]
 



Home | Main Index | Thread Index | Old Index