aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-09-27 05:27:28 +0800
committerwg <wg@FreeBSD.org>2013-09-27 05:27:28 +0800
commit3b54160620400f579042ab5169cbe6faee462ffe (patch)
tree76693b88b775737252938fdb6ec88ad218d38ec5 /devel
parent96a73aa2eeffc09cd1b1d68b30f463eaa596412a (diff)
downloadfreebsd-ports-gnome-3b54160620400f579042ab5169cbe6faee462ffe.tar.gz
freebsd-ports-gnome-3b54160620400f579042ab5169cbe6faee462ffe.tar.zst
freebsd-ports-gnome-3b54160620400f579042ab5169cbe6faee462ffe.zip
devel/py-mccabe: use distutils
- Use distutils instead of setuptools - Allow staging - Use new PYTHON_PY3K_PLIST_HACK
Diffstat (limited to 'devel')
-rw-r--r--devel/py-mccabe/Makefile13
-rw-r--r--devel/py-mccabe/pkg-plist14
2 files changed, 8 insertions, 19 deletions
diff --git a/devel/py-mccabe/Makefile b/devel/py-mccabe/Makefile
index 2a205117d86c..1f2e4eaafb08 100644
--- a/devel/py-mccabe/Makefile
+++ b/devel/py-mccabe/Makefile
@@ -11,13 +11,10 @@ MAINTAINER= wg@FreeBSD.org
COMMENT= Ned\'s script to check McCabe complexity
USE_PYTHON= yes
-USE_PYDISTUTILS= easy_install
+USE_PYDISTUTILS=yes
+PYTHON_PY3K_PLIST_HACK= yes
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+post-patch:
+ @${REINPLACE_CMD} -e 's|setuptools|distutils.core|' ${WRKSRC}/${PYSETUP}
-.if ${PYTHON_REL} >= 320
-.include "${PORTSDIR}/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/py-mccabe/pkg-plist b/devel/py-mccabe/pkg-plist
index d8246fc85ff7..b580ed7c6330 100644
--- a/devel/py-mccabe/pkg-plist
+++ b/devel/py-mccabe/pkg-plist
@@ -1,11 +1,3 @@
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mccabe.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mccabe.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mccabe.pyo
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
+%%PYTHON_SITELIBDIR%%/mccabe.py
+%%PYTHON_SITELIBDIR%%/mccabe.pyc
+%%PYTHON_SITELIBDIR%%/mccabe.pyo