diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2012-04-24 17:07:42 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2012-04-24 17:07:42 +0000 |
commit | 1e50b9a18740f5204b67e42a05d7d06785091961 (patch) | |
tree | d5c8c581253643e83c617152cfc431937cfc6415 /dev-python/ipython | |
parent | Version bump, thanks to Marienz and Arfrever for suggestions regarding src_te... (diff) | |
download | gentoo-2-1e50b9a18740f5204b67e42a05d7d06785091961.tar.gz gentoo-2-1e50b9a18740f5204b67e42a05d7d06785091961.tar.bz2 gentoo-2-1e50b9a18740f5204b67e42a05d7d06785091961.zip |
Version bump
(Portage version: 2.1.10.56/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/ipython')
-rw-r--r-- | dev-python/ipython/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/ipython/ipython-0.12.1.ebuild | 146 |
2 files changed, 152 insertions, 1 deletions
diff --git a/dev-python/ipython/ChangeLog b/dev-python/ipython/ChangeLog index 1b77f0878a1f..e7ba48006cb2 100644 --- a/dev-python/ipython/ChangeLog +++ b/dev-python/ipython/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/ipython # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v 1.90 2012/03/10 19:57:27 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ChangeLog,v 1.91 2012/04/24 17:07:42 bicatali Exp $ + +*ipython-0.12.1 (24 Apr 2012) + + 24 Apr 2012; Sébastien Fabbro <bicatali@gentoo.org> +ipython-0.12.1.ebuild: + Version bump 10 Mar 2012; Ulrich Müller <ulm@gentoo.org> metadata.xml: Fix UTF-8 encoding of metadata.xml. diff --git a/dev-python/ipython/ipython-0.12.1.ebuild b/dev-python/ipython/ipython-0.12.1.ebuild new file mode 100644 index 000000000000..ca637d3f81e7 --- /dev/null +++ b/dev-python/ipython/ipython-0.12.1.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ipython-0.12.1.ebuild,v 1.1 2012/04/24 17:07:42 bicatali Exp $ + +EAPI=4 + +# python eclass cruft +PYTHON_USE_DEPEND="readline? sqlite?" +PYTHON_MODNAME="IPython" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.[45] *-jython" + +inherit distutils elisp-common eutils virtualx + +DESCRIPTION="Advanced interactive shell for Python" +HOMEPAGE="http://ipython.org/" +SRC_URI="http://archive.ipython.org/release/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc emacs examples matplotlib mongodb notebook qt4 readline +smp + sqlite test wxwidgets" + +CDEPEND="dev-python/decorator + || ( dev-python/argparse =dev-lang/python-2.7* >=dev-lang/python-3.2 ) + dev-python/pexpect + dev-python/pyparsing + dev-python/simplegeneric + emacs? ( app-emacs/python-mode virtual/emacs ) + matplotlib? ( dev-python/matplotlib ) + mongodb? ( dev-python/pymongo ) + smp? ( dev-python/pyzmq ) + wxwidgets? ( dev-python/wxpython )" +RDEPEND="${CDEPEND} + notebook? ( >=www-servers/tornado-2.1 + dev-python/pygments + dev-python/pyzmq ) + qt4? ( || ( dev-python/PyQt4 dev-python/pyside ) + dev-python/pygments + dev-python/pyzmq )" +DEPEND="${CDEPEND} + test? ( dev-python/nose )" + +src_prepare() { + distutils_src_prepare + epatch "${FILESDIR}"/${PN}-0.12-globalpath.patch + + # fix for gentoo python scripts + sed -i \ + -e "/ipython_cmd/s/ipython3/ipython/g" \ + IPython/frontend/terminal/console/tests/test_console.py \ + IPython/lib/irunner.py \ + IPython/testing/tools.py || die + + sed -i \ + -e "s/find_scripts(True, suffix='3')/find_scripts(True)/" \ + setup3.py || die + + # failing tests + sed -i \ + -e 's/test_smoketest_aimport/_&/' \ + -e 's/test_smoketest_autoreload/_&/' \ + IPython/extensions/tests/test_autoreload.py || die + sed -i \ + -e 's/test_pylab_import_all_disabled/_&/' \ + -e 's/test_pylab_import_all_enabled/_&/' \ + IPython/lib/tests/test_irunner_pylab_magic.py || die + sed -i \ + -e '/test_startup_py/i\\@dec.known_failure_py3' \ + -e '/test_startup_ipy/i\\@dec.known_failure_py3' \ + IPython/core/tests/test_profile.py || die + sed -i \ + -e '/test_tclass/i\\ @dec.known_failure_py3' \ + IPython/core/tests/test_run.py || die + + # installation directory for documentation + sed -i \ + -e "/docdirbase = pjoin/s/ipython/${PF}/" \ + -e "/pjoin(docdirbase,'manual')/s/manual/html/" \ + setupbase.py || die "sed failed" + + rm -rf docs/html/{.buildinfo,_sources,objects.inv} || die + + if ! use doc; then + sed -i \ + -e "/(pjoin(docdirbase, 'extensions'), igridhelpfiles),/d" \ + -e 's/ + manual_files//' \ + setupbase.py || die + fi + + if ! use examples; then + sed -i \ + -e 's/+ example_files//' \ + setupbase.py || die + fi +} + +src_compile() { + distutils_src_compile + use emacs && elisp-compile docs/emacs/ipython.el +} + +src_test() { + if use mongodb; then + mkdir -p "${T}/mongo.db" + mongod --dbpath "${T}/mongo.db" --fork --logpath "${T}/mongo.log" + fi + + testing() { + "$(PYTHON)" setup.py \ + build -b "build-${PYTHON_ABI}" \ + install --root="${T}/tests-${PYTHON_ABI}" > /dev/null || die + # Initialize ~/.ipython directory. + PATH="${T}/tests-${PYTHON_ABI}${EPREFIX}/usr/bin:${PATH}" \ + PYTHONPATH="${T}/tests-${PYTHON_ABI}${EPREFIX}$(python_get_sitedir)" \ + ipython <<< "" > /dev/null || return 1 + # Run tests (-v for more verbosity). + PATH="${T}/tests-${PYTHON_ABI}${EPREFIX}/usr/bin:${PATH}" \ + PYTHONPATH="${T}/tests-${PYTHON_ABI}${EPREFIX}$(python_get_sitedir)" \ + iptest -v || return 1 + } + VIRTUALX_COMMAND="python_execute_function" virtualmake testing + + use mongodb && killall -u "$(id -nu)" mongod +} + +src_install() { + distutils_src_install + if use emacs; then + pushd docs/emacs > /dev/null + elisp-install ${PN} ${PN}.el* + elisp-site-file-install "${FILESDIR}"/62ipython-gentoo.el + popd > /dev/null + fi +} + +pkg_postinst() { + distutils_pkg_postinst + use emacs && elisp-site-regen +} + +pkg_postrm() { + distutils_pkg_postrm + use emacs && elisp-site-regen +} |