Index: head/devel/Makefile =================================================================== --- head/devel/Makefile +++ head/devel/Makefile @@ -1237,6 +1237,7 @@ SUBDIR += injeqt SUBDIR += ioncube SUBDIR += ipython + SUBDIR += ipython5 SUBDIR += ireport SUBDIR += isa-l SUBDIR += isfreedesktop Index: head/devel/ipython5/Makefile =================================================================== --- head/devel/ipython5/Makefile +++ head/devel/ipython5/Makefile @@ -0,0 +1,57 @@ +# Created by: Dryice Liu +# $FreeBSD$ + +PORTNAME= ipython +PORTVERSION= 5.8.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 5 + +MAINTAINER= python@FreeBSD.org +COMMENT= Enhanced Interactive Python shell + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING.rst + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pexpect>=0:misc/py-pexpect@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sqlite3>=2:databases/py-sqlite3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pickleshare>=0:databases/py-pickleshare@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}prompt_toolkit>=1.0.4:devel/py-prompt_toolkit@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}simplegeneric>0.8:devel/py-simplegeneric@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}traitlets>=4.2:devel/py-traitlets@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils +USE_GCC= yes # To be removed - Needed as a work-around for numpy, see PR ports/188114 +NO_ARCH= yes + +OPTIONS_DEFINE= EXAMPLES +PORTEXAMPLES= * + +.include + +.if ${PYTHON_REL} < 3000 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.shutil_get_terminal_size>=0:devel/py-backports.shutil_get_terminal_size@${PY_FLAVOR} +.endif +.if ${PYTHON_REL} < 3400 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pathlib2>=0:devel/py-pathlib2@${PY_FLAVOR} +.endif + +post-install: + @${ECHO_CMD} "/EASY-INSTALL" > ${WRKDIR}/ex.script + @${ECHO_CMD} "a" >> ${WRKDIR}/ex.script + @${ECHO_CMD} "import os" >> ${WRKDIR}/ex.script + @${ECHO_CMD} "os.environ[\"LD_LIBRARY_PATH\"]=\"${_GCC_RUNTIME}\"" >> ${WRKDIR}/ex.script + @${ECHO_CMD} "." >> ${WRKDIR}/ex.script + @${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script + @for file in ${STAGEDIR}${PREFIX}/bin/*; do \ + ex $${file} < ${WRKDIR}/ex.script > /dev/null; \ + done + +post-install-EXAMPLES-on: + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} + +.include Index: head/devel/ipython5/distinfo =================================================================== --- head/devel/ipython5/distinfo +++ head/devel/ipython5/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1533032413 +SHA256 (ipython-5.8.0.tar.gz) = 4bac649857611baaaf76bc82c173aa542f7486446c335fe1a6c05d0d491c8906 +SIZE (ipython-5.8.0.tar.gz) = 4977824 Index: head/devel/ipython5/files/patch-setupbase.py =================================================================== --- head/devel/ipython5/files/patch-setupbase.py +++ head/devel/ipython5/files/patch-setupbase.py @@ -0,0 +1,11 @@ +--- setupbase.py.orig 2016-08-13 12:56:43 UTC ++++ setupbase.py +@@ -203,7 +203,7 @@ def find_data_files(): + Just man pages at this point. + """ + +- manpagebase = pjoin('share', 'man', 'man1') ++ manpagebase = pjoin('man', 'man1') + + # Simple file lists can be made by hand + manpages = [f for f in glob(pjoin('docs','man','*.1.gz')) if isfile(f)] Index: head/devel/ipython5/pkg-descr =================================================================== --- head/devel/ipython5/pkg-descr +++ head/devel/ipython5/pkg-descr @@ -0,0 +1,24 @@ +IPython is a free software project which tries to: + + 1. Provide an interactive shell superior to Python's + default. IPython has many features for object introspection, + system shell access, and its own special command system for + adding functionality when working interactively. It tries to be + a very efficient environment both for Python code development + and for exploration of problems using Python objects (in + situations like data analysis). + + 2. Serve as an embeddable, ready to use interpreter for your own + programs. IPython can be started with a single call from inside + another program, providing access to the current namespace. This + can be very useful both for debugging purposes and for + situations where a blend of batch-processing and interactive + exploration are needed. + + 3. Offer a flexible framework which can be used as the base + environment for other systems with Python as the underlying + language. Specifically scientific environments like Mathematica, + IDL and Mathcad inspired its design, but similar ideas can be + useful in many fields. + +WWW: http://ipython.org/