From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C967E1384B4 for ; Sat, 28 Nov 2015 17:33:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0D5E21C040; Sat, 28 Nov 2015 17:33:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51E6821C02B for ; Sat, 28 Nov 2015 17:33:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B86B3408C7 for ; Sat, 28 Nov 2015 17:33:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 28D63F57 for ; Sat, 28 Nov 2015 17:33:19 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1448638643.550ef967bc0fe397a901cc7c4b01dbac98f6189d.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ipython/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/ipython/Manifest dev-python/ipython/ipython-4.0.0-r2.ebuild X-VCS-Directories: dev-python/ipython/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 550ef967bc0fe397a901cc7c4b01dbac98f6189d X-VCS-Branch: master Date: Sat, 28 Nov 2015 17:33:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 50d3234a-4a43-41f9-9fe8-ccd06705818f X-Archives-Hash: 3396f4b5be5e731e0e3cf1721bd9645e commit: 550ef967bc0fe397a901cc7c4b01dbac98f6189d Author: Marius Brehler linux sungazer de> AuthorDate: Fri Nov 27 15:37:23 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Fri Nov 27 15:37:23 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=550ef967 dev-python/ipython: Version bump; Import from science overlay Package-Manager: portage-2.2.20.1 dev-python/ipython/Manifest | 1 + dev-python/ipython/ipython-4.0.0-r2.ebuild | 136 +++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest index 49d8b3f..c4da7b1 100644 --- a/dev-python/ipython/Manifest +++ b/dev-python/ipython/Manifest @@ -1 +1,2 @@ DIST ipython-3.2.1.tar.gz 10884249 SHA256 c913adee7ae5b338055274c51a7d2b3cea468b5b316046fa520cd8a434b09177 SHA512 de7723e3b859d21a58a24456c76c8d8ec98c019f290f61269f46270e7647d2b49a98671138fecd75cb6f46384fde7e09618eb5c85c175e0e442c7fae7328d8fe WHIRLPOOL 9f020c167559259931dcb177d0c3a5211939632e5775c2627795ba390cf57bd62c378c15b7ee9b9ed2079180f8df8e062eb9673ed9cfc025a56f1da82c9428d1 +DIST ipython-4.0.0.tar.gz 6205133 SHA256 2fd276c407fb0b29e5d4884a7029a2c27fef0a06fd7a34924cce69b7cc43f4da SHA512 406e8e7779d9d8998f0621e58466ba185d89ef1639de6241f292f43410242d8eeab1d722496f82bf5d48e31584751efdc1a4177ea9e4ceb1ecb8d5acdf390ee7 WHIRLPOOL aff3f46964afd8841c00bb370b13da8acded0a1c44bfeb5543d3643fc7eb5554b4c7a4465148ef66bf33690dafa978ad9d350582971d3cd0c97cdef380df2631 diff --git a/dev-python/ipython/ipython-4.0.0-r2.ebuild b/dev-python/ipython/ipython-4.0.0-r2.ebuild new file mode 100644 index 0000000..076965c --- /dev/null +++ b/dev-python/ipython/ipython-4.0.0-r2.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) +PYTHON_REQ_USE='readline,sqlite,threads(+)' + +inherit distutils-r1 eutils virtualx + +DESCRIPTION="Advanced interactive shell for Python" +HOMEPAGE="http://ipython.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples matplotlib mongodb notebook nbconvert qt4 +smp test wxwidgets" + +REQUIRED_USE=" + test? ( doc matplotlib mongodb notebook nbconvert qt4 wxwidgets ) + doc? ( mongodb )" + +CDEPEND=" + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pickleshare[${PYTHON_USEDEP}] + dev-python/pyparsing[${PYTHON_USEDEP}] + dev-python/simplegeneric[${PYTHON_USEDEP}] + dev-python/traitlets[${PYTHON_USEDEP}] + matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] ) + mongodb? ( /dev/null + "${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1 + popd > /dev/null + } + VIRTUALX_COMMAND=run_tests virtualmake + [[ ${fail} ]] && die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + + # Create ipythonX.Y symlinks. + # TODO: + # 1. do we want them for pypy? No. pypy has no numpy + # 2. handle it in the eclass instead (use _python_ln_rel). + # With pypy not an option the dosym becomes unconditional + dosym ../lib/python-exec/${EPYTHON}/ipython \ + /usr/bin/ipython${EPYTHON#python} +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "sympyprinting" dev-python/sympy + optfeature "cythonmagic" dev-python/cython + optfeature "%lprun magic command" dev-python/line_profiler + optfeature "%mprun magic command" dev-python/memory_profiler + if use nbconvert; then + if ! has_version app-text/pandoc ; then + einfo "Node.js will be used to convert notebooks to other formats" + einfo "like HTML. Support for that is still experimental. If you" + einfo "encounter any problems, please use app-text/pandoc instead." + fi + fi +}