summaryrefslogtreecommitdiff
path: root/security/py-keyring
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2015-01-11 20:59:56 +0000
committerwiz <wiz@pkgsrc.org>2015-01-11 20:59:56 +0000
commite538f18ed2263a5ee5cc6984b0cfc012278b45f2 (patch)
tree019f729a29de39f2fe09ed8e8698359626ffc421 /security/py-keyring
parent48f167cd34cdff5f59fb671a32720bfd0765ff5f (diff)
downloadpkgsrc-e538f18ed2263a5ee5cc6984b0cfc012278b45f2.tar.gz
Convert to egg.mk. Rename additionally installed file so that multiple
python versions' packages don't conflict. Add ALTERNATIVES file. Bump PKGREVISION.
Diffstat (limited to 'security/py-keyring')
-rw-r--r--security/py-keyring/ALTERNATIVES1
-rw-r--r--security/py-keyring/Makefile9
-rw-r--r--security/py-keyring/PLIST10
3 files changed, 16 insertions, 4 deletions
diff --git a/security/py-keyring/ALTERNATIVES b/security/py-keyring/ALTERNATIVES
new file mode 100644
index 00000000000..a6737224083
--- /dev/null
+++ b/security/py-keyring/ALTERNATIVES
@@ -0,0 +1 @@
+bin/keyring @PREFIX@/bin/keyring-@PYVERSSUFFIX@
diff --git a/security/py-keyring/Makefile b/security/py-keyring/Makefile
index 6768bb03db7..066c114e655 100644
--- a/security/py-keyring/Makefile
+++ b/security/py-keyring/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2014/08/05 19:22:42 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2015/01/11 20:59:56 wiz Exp $
DISTNAME= keyring-4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= http://pypi.python.org/packages/source/k/keyring/
EXTRACT_SUFX= .zip
@@ -12,7 +13,11 @@ COMMENT= Store and access your passwords safely
LICENSE= python-software-foundation
REPLACE_PYTHON+= keyring/cli.py
+PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
+
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/bin/keyring ${DESTDIR}${PREFIX}/bin/keyring-${PYVERSSUFFIX}
.include "../../lang/python/application.mk"
-.include "../../lang/python/distutils.mk"
+.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/security/py-keyring/PLIST b/security/py-keyring/PLIST
index e872a26005e..c6499fb320c 100644
--- a/security/py-keyring/PLIST
+++ b/security/py-keyring/PLIST
@@ -1,5 +1,11 @@
-@comment $NetBSD: PLIST,v 1.2 2014/03/31 08:29:11 wiz Exp $
-${PYSITELIB}/${EGG_FILE}
+@comment $NetBSD: PLIST,v 1.3 2015/01/11 20:59:56 wiz Exp $
+bin/keyring-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/keyring/__init__.py
${PYSITELIB}/keyring/__init__.pyc
${PYSITELIB}/keyring/__init__.pyo