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 5D8A41384C3 for ; Mon, 7 Sep 2015 13:34:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 064CD141B8; Mon, 7 Sep 2015 13:34:35 +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 87C3C141B8 for ; Mon, 7 Sep 2015 13:34:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 85E4F34069F for ; Mon, 7 Sep 2015 13:34:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 10F8B18D for ; Mon, 7 Sep 2015 13:34:31 +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: <1441632863.2e761afc8e027ab3621a5ba698f20406885a6c35.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/networkx/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/networkx/networkx-1.10-r1.ebuild X-VCS-Directories: dev-python/networkx/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 2e761afc8e027ab3621a5ba698f20406885a6c35 X-VCS-Branch: master Date: Mon, 7 Sep 2015 13:34:31 +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: f93c7849-3216-45ff-8611-6b0293654e70 X-Archives-Hash: 435da1d4834a333400859d1b1d459965 commit: 2e761afc8e027ab3621a5ba698f20406885a6c35 Author: Justin Lecher gentoo org> AuthorDate: Mon Sep 7 13:30:31 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Mon Sep 7 13:34:23 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e761afc dev-python/networkx: Drop ppc due to missing KEYWORD in revdep Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=559838 Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher gentoo.org> dev-python/networkx/networkx-1.10-r1.ebuild | 73 +++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/dev-python/networkx/networkx-1.10-r1.ebuild b/dev-python/networkx/networkx-1.10-r1.ebuild new file mode 100644 index 0000000..6726385 --- /dev/null +++ b/dev-python/networkx/networkx-1.10-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 + +DESCRIPTION="Python tools to manipulate graphs and complex networks" +HOMEPAGE="http://networkx.github.io/ https://github.com/networkx/networkx" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc examples test" + +COMMON_DEPEND=" + dev-python/matplotlib[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/numpydoc[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]' python2_7 python{3_3,3_4}) + ) + test? ( + ${COMMON_DEPEND} + dev-python/nose[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'media-gfx/pydot[${PYTHON_USEDEP}]' python2_7) + )" +RDEPEND=" + >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] + examples? ( + ${COMMON_DEPEND} + dev-python/pygraphviz[${PYTHON_USEDEP}] + dev-python/pyparsing[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + # Avoid d'loading of file objects.inv from 2 sites of python docs + sed -e "s/'sphinx.ext.intersphinx', //" -i doc/source/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + # https://github.com/networkx/networkx/issues/1263 + if use doc; then + sed \ + -e "s:^\t\./:\t${PYTHON} :g" \ + -i doc/Makefile || die + emake -C doc html + fi +} + +python_test() { + nosetests -vv || die +} + +python_install_all() { + # Oh my. + rm -r "${ED}"usr/share/doc/${P} || die + + use doc && local HTML_DOCS=( doc/build/html/. ) + use examples && local EXAMPLES=( examples/. ) + + distutils-r1_python_install_all +}