summaryrefslogtreecommitdiff
path: root/www/py-uwsgitop
diff options
context:
space:
mode:
authorrodent <rodent@pkgsrc.org>2014-05-03 19:07:55 +0000
committerrodent <rodent@pkgsrc.org>2014-05-03 19:07:55 +0000
commite7623b8cf9f5a38bcf2f324dc231151b1f6724e4 (patch)
treeaf8956392979acba66880e58ddff0b0b2ad8d1b6 /www/py-uwsgitop
parent307ea24aabad42cc2e2c8768dea389399363abc1 (diff)
downloadpkgsrc-e7623b8cf9f5a38bcf2f324dc231151b1f6724e4.tar.gz
Rename binary in post-install to support concurrent python versions. Add
ALTERNATIVES. Bump PKGREVISION.
Diffstat (limited to 'www/py-uwsgitop')
-rw-r--r--www/py-uwsgitop/ALTERNATIVES1
-rw-r--r--www/py-uwsgitop/Makefile10
-rw-r--r--www/py-uwsgitop/PLIST4
3 files changed, 12 insertions, 3 deletions
diff --git a/www/py-uwsgitop/ALTERNATIVES b/www/py-uwsgitop/ALTERNATIVES
new file mode 100644
index 00000000000..d7fab32afe3
--- /dev/null
+++ b/www/py-uwsgitop/ALTERNATIVES
@@ -0,0 +1 @@
+bin/uwsgitop @PREFIX@/bin/uwsgitop@PYVERSSUFFIX@
diff --git a/www/py-uwsgitop/Makefile b/www/py-uwsgitop/Makefile
index a64d8cda61a..9a82dcf442a 100644
--- a/www/py-uwsgitop/Makefile
+++ b/www/py-uwsgitop/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2014/03/01 19:15:20 rodent Exp $
+# $NetBSD: Makefile,v 1.5 2014/05/03 19:07:55 rodent Exp $
DISTNAME= uwsgitop-0.8
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= python www
MASTER_SITES= https://pypi.python.org/packages/source/u/uwsgitop/
@@ -16,5 +17,12 @@ DEPENDS+= ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses
USE_LANGUAGES= # none
+PY_PATCHPLIST= yes
+PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
+
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/bin/uwsgitop \
+ ${DESTDIR}${PREFIX}/bin/uwsgitop${PYVERSSUFFIX}
+
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-uwsgitop/PLIST b/www/py-uwsgitop/PLIST
index 46ce6b77095..d96b8cee8b1 100644
--- a/www/py-uwsgitop/PLIST
+++ b/www/py-uwsgitop/PLIST
@@ -1,3 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2014/01/05 15:09:52 rodent Exp $
-bin/uwsgitop
+@comment $NetBSD: PLIST,v 1.2 2014/05/03 19:07:55 rodent Exp $
+bin/uwsgitop${PYVERSSUFFIX}
${PYSITELIB}/${EGG_FILE}