pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-cachecontrol py-cachecontrol: Install "versio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/31bc5bd4b291
branches:  trunk
changeset: 440380:31bc5bd4b291
user:      leot <leot%pkgsrc.org@localhost>
date:      Wed Oct 07 20:08:58 2020 +0000

description:
py-cachecontrol: Install "versioned" doesitcache

Possible multiple version of py-cachecontrol can now peacefully coexist.

Discussed with <schmonz>.

PKGREVISION++

diffstat:

 devel/py-cachecontrol/ALTERNATIVES |  1 +
 devel/py-cachecontrol/Makefile     |  6 +++++-
 devel/py-cachecontrol/PLIST        |  4 ++--
 3 files changed, 8 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 45fd9a8561b7 -r 31bc5bd4b291 devel/py-cachecontrol/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-cachecontrol/ALTERNATIVES        Wed Oct 07 20:08:58 2020 +0000
@@ -0,0 +1,1 @@
+bin/doesitcache @PREFIX@/bin/doesitcache@PYVERSSUFFIX@
diff -r 45fd9a8561b7 -r 31bc5bd4b291 devel/py-cachecontrol/Makefile
--- a/devel/py-cachecontrol/Makefile    Wed Oct 07 20:04:08 2020 +0000
+++ b/devel/py-cachecontrol/Makefile    Wed Oct 07 20:08:58 2020 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2020/10/07 20:04:08 leot Exp $
+# $NetBSD: Makefile,v 1.3 2020/10/07 20:08:58 leot Exp $
 
 DISTNAME=      CacheControl-0.12.6
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
+PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=C/CacheControl/}
 
@@ -15,5 +16,8 @@
 
 USE_LANGUAGES= # none
 
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/doesitcache ${DESTDIR}${PREFIX}/bin/doesitcache${PYVERSSUFFIX} || ${TRUE}
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 45fd9a8561b7 -r 31bc5bd4b291 devel/py-cachecontrol/PLIST
--- a/devel/py-cachecontrol/PLIST       Wed Oct 07 20:04:08 2020 +0000
+++ b/devel/py-cachecontrol/PLIST       Wed Oct 07 20:08:58 2020 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2020/10/07 19:44:52 schmonz Exp $
-bin/doesitcache
+@comment $NetBSD: PLIST,v 1.2 2020/10/07 20:08:58 leot Exp $
+bin/doesitcache${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt



Home | Main Index | Thread Index | Old Index