aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-columnize/Makefile
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2015-11-10 23:28:15 +0800
committerwg <wg@FreeBSD.org>2015-11-10 23:28:15 +0800
commit9b66e3d236943f2187a3f8789f051934e2160479 (patch)
tree6695f9378b82cdc1ad980b2ba56826fc1e0c960d /devel/py-columnize/Makefile
parent68f1e3e0be6845dedf6d1ebcb2201bcdec18d274 (diff)
downloadfreebsd-ports-gnome-9b66e3d236943f2187a3f8789f051934e2160479.tar.gz
freebsd-ports-gnome-9b66e3d236943f2187a3f8789f051934e2160479.tar.zst
freebsd-ports-gnome-9b66e3d236943f2187a3f8789f051934e2160479.zip
devel/py-columnize? add python 3 support
Approved by: maintainer (via email)
Diffstat (limited to 'devel/py-columnize/Makefile')
-rw-r--r--devel/py-columnize/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/devel/py-columnize/Makefile b/devel/py-columnize/Makefile
index e9fa4f946f9c..1bd1bbba36f7 100644
--- a/devel/py-columnize/Makefile
+++ b/devel/py-columnize/Makefile
@@ -12,7 +12,6 @@ COMMENT= Format a simple (i.e. not nested) list into aligned columns
LICENSE= MIT
MY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=1.0:${PORTSDIR}/devel/py-nose
-MY_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.shutil_get_terminal_size=1.0:${PORTSDIR}/devel/py-backports.shutil_get_terminal_size
BUILD_DEPENDS= ${MY_DEPENDS}
RUN_DEPENDS= ${MY_DEPENDS}
@@ -20,4 +19,12 @@ RUN_DEPENDS= ${MY_DEPENDS}
USES= python
USE_PYTHON= autoplist distutils
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_MAJOR_VER} == "3"
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-____pkginfo____.py
+.else
+MY_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.shutil_get_terminal_size=1.0:${PORTSDIR}/devel/py-backports.shutil_get_terminal_size
+.endif
+
+.include <bsd.port.post.mk>