diff options
author | olgeni <olgeni@FreeBSD.org> | 2014-03-25 08:28:13 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2014-03-25 08:28:13 +0800 |
commit | bf888decaf1544bd1fe494216a69f998113118bf (patch) | |
tree | 9edf91279842bb87edd51909fc77c0c94bfcb506 | |
parent | f2cbcdbec22d25904445efc2d2e7b1893c3fdabd (diff) | |
download | freebsd-ports-gnome-bf888decaf1544bd1fe494216a69f998113118bf.tar.gz freebsd-ports-gnome-bf888decaf1544bd1fe494216a69f998113118bf.tar.zst freebsd-ports-gnome-bf888decaf1544bd1fe494216a69f998113118bf.zip |
Add support for Python 3.
Submitted by: nwhitehorn
-rw-r--r-- | devel/ipython/Makefile | 13 | ||||
-rw-r--r-- | devel/ipython/pkg-plist | 16 |
2 files changed, 19 insertions, 10 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> diff --git a/devel/ipython/pkg-plist b/devel/ipython/pkg-plist index ff05246c77d7..a7ac601cd3e6 100644 --- a/devel/ipython/pkg-plist +++ b/devel/ipython/pkg-plist @@ -1,11 +1,11 @@ -bin/ipcluster -bin/ipcontroller -bin/ipengine -bin/iplogger -bin/iptest -bin/ipython -bin/irunner -bin/pycolor +bin/ipcluster%%IPYTHON_SUFFIX%% +bin/ipcontroller%%IPYTHON_SUFFIX%% +bin/ipengine%%IPYTHON_SUFFIX%% +bin/iplogger%%IPYTHON_SUFFIX%% +bin/iptest%%IPYTHON_SUFFIX%% +bin/ipython%%IPYTHON_SUFFIX%% +bin/irunner%%IPYTHON_SUFFIX%% +bin/pycolor%%IPYTHON_SUFFIX%% man/man1/ipcluster.1.gz man/man1/ipcontroller.1.gz man/man1/ipengine.1.gz |