summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodent <rodent>2014-06-23 10:43:45 +0000
committerrodent <rodent>2014-06-23 10:43:45 +0000
commitac0629d3280818d13f21650d703de0fd46660279 (patch)
tree2c5d2681a630295b92d942f13925fd0926ea5fb9
parentd2b4b00c08da4eb4a59008ac15d089a82f74207a (diff)
downloadpkgsrc-ac0629d3280818d13f21650d703de0fd46660279.tar.gz
Use ALTERNATIVES. Remove bin/unit2, since it's not different fundamentally
than unit2-${PYVERSSUFFIX}. Move bin/unit2.py so it doesn't conflict with the py3k version of this package. Bump PKGREVISION. OK'd by wiz@.
-rw-r--r--devel/py-unittest2/ALTERNATIVES2
-rw-r--r--devel/py-unittest2/Makefile6
-rw-r--r--devel/py-unittest2/PLIST5
3 files changed, 9 insertions, 4 deletions
diff --git a/devel/py-unittest2/ALTERNATIVES b/devel/py-unittest2/ALTERNATIVES
new file mode 100644
index 00000000000..ed92cfa6150
--- /dev/null
+++ b/devel/py-unittest2/ALTERNATIVES
@@ -0,0 +1,2 @@
+bin/unit2 bin/unit2-@PYVERSSUFFIX@
+bin/unit2.py @PREFIX@/bin/unit2-@PYVERSSUFFIX@.py
diff --git a/devel/py-unittest2/Makefile b/devel/py-unittest2/Makefile
index 10a0f8c5e25..b49345d83c4 100644
--- a/devel/py-unittest2/Makefile
+++ b/devel/py-unittest2/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2014/05/09 07:37:03 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2014/06/23 10:43:45 rodent Exp $
DISTNAME= unittest2-0.5.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= http://pypi.python.org/packages/source/u/unittest2/
@@ -18,6 +19,9 @@ PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # see versioned_dependencies.mk
post-install:
${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${RM} ${DESTDIR}${PREFIX}/bin/unit2
+ ${MV} ${DESTDIR}${PREFIX}/bin/unit2.py \
+ ${DESTDIR}${PREFIX}/bin/unit2-${PYVERSSUFFIX}.py
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-unittest2/PLIST b/devel/py-unittest2/PLIST
index dfc8c1378c9..8a83432a7e7 100644
--- a/devel/py-unittest2/PLIST
+++ b/devel/py-unittest2/PLIST
@@ -1,7 +1,6 @@
-@comment $NetBSD: PLIST,v 1.2 2013/07/08 16:17:20 wiz Exp $
-bin/unit2
+@comment $NetBSD: PLIST,v 1.3 2014/06/23 10:43:45 rodent Exp $
bin/unit2-${PYVERSSUFFIX}
-bin/unit2.py
+bin/unit2-${PYVERSSUFFIX}.py
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt