aboutsummaryrefslogtreecommitdiff
path: root/devel/ipython/Makefile
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2014-03-25 00:28:13 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2014-03-25 00:28:13 +0000
commit4492fef40877266d225925fd7d187515e4cfac44 (patch)
tree9edf91279842bb87edd51909fc77c0c94bfcb506 /devel/ipython/Makefile
parentbab427bdcd2dd7d4510a434be3e664fa8469dcff (diff)
downloadports-4492fef40877266d225925fd7d187515e4cfac44.tar.gz
ports-4492fef40877266d225925fd7d187515e4cfac44.zip
Add support for Python 3.
Submitted by: nwhitehorn
Notes
Notes: svn path=/head/; revision=349101
Diffstat (limited to 'devel/ipython/Makefile')
-rw-r--r--devel/ipython/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/devel/ipython/Makefile b/devel/ipython/Makefile
index 7d1dec83c2b2..8f38d540402b 100644
--- a/devel/ipython/Makefile
+++ b/devel/ipython/Makefile
@@ -3,7 +3,7 @@
PORTNAME= ipython
PORTVERSION= 1.2.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,6 +17,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pexpect>=2:${PORTSDIR}/misc/py-pexpect \
USE_PYTHON= yes
USE_PYDISTUTILS=yes
+PYTHON_PY3K_PLIST_HACK=yes
OPTIONS_DEFINE= X11 HTML_NOTEBOOK ZMQ
OPTIONS_DEFAULT=X11 ZMQ
@@ -46,4 +47,12 @@ post-install:
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_MAJOR_VER} == "3"
+PLIST_SUB+= IPYTHON_SUFFIX="3"
+.else
+PLIST_SUB+= IPYTHON_SUFFIX=""
+.endif
+
+.include <bsd.port.post.mk>