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 4485113881B for ; Wed, 23 Sep 2015 10:20:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84F28E0857; Wed, 23 Sep 2015 10:20:00 +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 4267921C002 for ; Wed, 23 Sep 2015 10:19:59 +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 63F7D3409F9 for ; Wed, 23 Sep 2015 10:19:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A409023D for ; Wed, 23 Sep 2015 10:19:55 +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: <1442990389.42fb7b0a717807906436b886ce5e5ae506467867.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/nbformat/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/nbformat/nbformat-4.0.0.ebuild dev-python/nbformat/nbformat-9999.ebuild X-VCS-Directories: dev-python/nbformat/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 42fb7b0a717807906436b886ce5e5ae506467867 X-VCS-Branch: master Date: Wed, 23 Sep 2015 10:19:55 +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: 51a7b4c2-de11-409d-856a-508fa6595d7c X-Archives-Hash: afbffadbaf20bf999ef1088c7343eac1 commit: 42fb7b0a717807906436b886ce5e5ae506467867 Author: Marius Brehler linux sungazer de> AuthorDate: Wed Sep 23 06:39:49 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Wed Sep 23 06:39:49 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=42fb7b0a dev-python/nbformat: Replace symlink dev-python/nbformat/nbformat-4.0.0.ebuild | 60 ++++++++++++++++++++++++++++++- dev-python/nbformat/nbformat-9999.ebuild | 11 ++---- 2 files changed, 61 insertions(+), 10 deletions(-) diff --git a/dev-python/nbformat/nbformat-4.0.0.ebuild b/dev-python/nbformat/nbformat-4.0.0.ebuild deleted file mode 120000 index c2590aa..0000000 --- a/dev-python/nbformat/nbformat-4.0.0.ebuild +++ /dev/null @@ -1 +0,0 @@ -nbformat-9999.ebuild \ No newline at end of file diff --git a/dev-python/nbformat/nbformat-4.0.0.ebuild b/dev-python/nbformat/nbformat-4.0.0.ebuild new file mode 100644 index 0000000..cc116c0 --- /dev/null +++ b/dev-python/nbformat/nbformat-4.0.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) +PYTHON_REQ_USE='sqlite' + +inherit distutils-r1 + +DESCRIPTION="Reference implementation of the Jupyter Notebook format" +HOMEPAGE="http://jupyter.org" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +LICENSE="BSD" +SLOT="0" +IUSE="doc test" + +RDEPEND=" + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/ipython_genutils[${PYTHON_USEDEP}] + dev-python/traitlets[${PYTHON_USEDEP}] + dev-python/jupyter_core[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/numpydoc[${PYTHON_USEDEP}] + ) + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/coverage[${PYTHON_USEDEP}] + ) + " + +python_prepare_all() { + # Prevent un-needed download during build + if use doc; then + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die + fi + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}"/lib || die + nosetests --with-coverage --cover-package=nbformat nbformat || die +} + +python_install_all() { + use doc && HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/nbformat/nbformat-9999.ebuild b/dev-python/nbformat/nbformat-9999.ebuild index 3461090..777cf59 100644 --- a/dev-python/nbformat/nbformat-9999.ebuild +++ b/dev-python/nbformat/nbformat-9999.ebuild @@ -6,18 +6,11 @@ EAPI=5 PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) PYTHON_REQ_USE='sqlite' -inherit distutils-r1 +inherit distutils-r1 git-r3 DESCRIPTION="Reference implementation of the Jupyter Notebook format" HOMEPAGE="http://jupyter.org" - -if [ ${PV} == "9999" ] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/jupyter/${PN}.git git://github.com/jupyter/${PN}.git" -else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi +EGIT_REPO_URI="https://github.com/jupyter/${PN}.git git://github.com/jupyter/${PN}.git" LICENSE="BSD" SLOT="0"