aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2013-03-05 14:20:28 +0800
committerrm <rm@FreeBSD.org>2013-03-05 14:20:28 +0800
commit9bd68f33fc3209238d55c16f48b46a2bb6e308aa (patch)
tree62cc20b7920470df305773801981fae4681516e8 /devel
parent9916d6fd8e4f1ff3b50796deda69b30490068a18 (diff)
downloadfreebsd-ports-gnome-9bd68f33fc3209238d55c16f48b46a2bb6e308aa.tar.gz
freebsd-ports-gnome-9bd68f33fc3209238d55c16f48b46a2bb6e308aa.tar.zst
freebsd-ports-gnome-9bd68f33fc3209238d55c16f48b46a2bb6e308aa.zip
- update to 0.6.35
- add regression tests - add distribute.pth symlink to make setuptools namespace available on live systems (that had not distribute entry in easy_install.pth previously)
Diffstat (limited to 'devel')
-rw-r--r--devel/py-distribute/Makefile6
-rw-r--r--devel/py-distribute/distinfo4
-rw-r--r--devel/py-distribute/pkg-plist1
3 files changed, 8 insertions, 3 deletions
diff --git a/devel/py-distribute/Makefile b/devel/py-distribute/Makefile
index be9cc9969890..be709206f260 100644
--- a/devel/py-distribute/Makefile
+++ b/devel/py-distribute/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= distribute
-PORTVERSION= 0.6.34
+PORTVERSION= 0.6.35
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -54,6 +54,9 @@ post-patch:
@${REINPLACE_CMD} -e '/easy_install = / s|".*"||' ${WRKSRC}/setup.py
.endif
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+
pre-install:
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@@ -62,6 +65,7 @@ post-install:
${PYTHON_CMD} -m py_compile ${SITE_PY}
${PYTHON_CMD} -OO -m py_compile ${SITE_PY}
${CP} ${EASYINSTALL_PTH} ${EASYINSTALL_PTH}.dist
+ ${LN} ${EASYINSTALL_PTH}.dist ${PYTHON_SITELIBDIR}/distribute.pth
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
if [ -f ${PKGMESSAGE} ]; then ${CAT} ${PKGMESSAGE}; fi
diff --git a/devel/py-distribute/distinfo b/devel/py-distribute/distinfo
index 7e16012e03eb..d02fc278a0dc 100644
--- a/devel/py-distribute/distinfo
+++ b/devel/py-distribute/distinfo
@@ -1,2 +1,2 @@
-SHA256 (python/distribute-0.6.34.tar.gz) = 1a82a50f448fd963c1efade437b9ace3c47bfdd9b168fcdba7fca140df4b364e
-SIZE (python/distribute-0.6.34.tar.gz) = 644358
+SHA256 (python/distribute-0.6.35.tar.gz) = 7ee7ce926e15b0066c6d241e1ff271c30ff99b9ec7648699263d36967409e804
+SIZE (python/distribute-0.6.35.tar.gz) = 644308
diff --git a/devel/py-distribute/pkg-plist b/devel/py-distribute/pkg-plist
index 3f240acacdf1..a21f9bc17109 100644
--- a/devel/py-distribute/pkg-plist
+++ b/devel/py-distribute/pkg-plist
@@ -2,6 +2,7 @@
%%IF_DEFAULT%%bin/easy_install
bin/easy_install-%%PYVER%%
%%PYTHON_SITELIBDIR%%/distribute-%%VERSION%%-py%%PYVER%%.egg
+%%PYTHON_SITELIBDIR%%/distribute.pth
@unexec if cmp -s %B/easy-install.pth %B/easy-install.pth.dist; then rm %B/easy-install.pth; fi
%%PYTHON_SITELIBDIR%%/easy-install.pth.dist
@exec if [ ! -f %B/easy-install.pth ]; then cp %B/%f %B/easy-install.pth; fi