diff options
Diffstat (limited to 'dev-python/networkx')
-rw-r--r-- | dev-python/networkx/Manifest | 3 | ||||
-rw-r--r-- | dev-python/networkx/metadata.xml | 3 | ||||
-rw-r--r-- | dev-python/networkx/networkx-1.11-r1.ebuild | 75 |
3 files changed, 80 insertions, 1 deletions
diff --git a/dev-python/networkx/Manifest b/dev-python/networkx/Manifest index bd0ae6cbaa4b..ccef16926128 100644 --- a/dev-python/networkx/Manifest +++ b/dev-python/networkx/Manifest @@ -1,4 +1,5 @@ AUX 1.11-sphinx-pngmath.patch 361 BLAKE2B 1cc9c5d7ac8cf426656565df9afba6e4c75459550daafbaf98f4dbaa0814deb711963a3c7fee33537143e3f45bf7367b6a7c5213f72873f9ec5a47e7ebfa2807 SHA512 2db58b8f6067ccbe66bcdb3f39a80d126bd549c6838a34907b01360b5441f8b122632f1863b51142cba8688f4705697b9cd15d8fb6534ded8a9613e374edea4e DIST networkx-1.11.tar.gz 1315737 BLAKE2B 9f6556af1a4e23bf7fcf51fcbc753a08f2616dfe63c7b05fbe20ad7532580bf566c44ddc5db0c0d89626a17fd2029485583b513f44688e8033ca83cb36f28315 SHA512 622c93330bb5ba93a2be087f7f19963a1bb9a50dc72b6500ea8321c36aa9da19af379c5cd4bbee8bba3cb6e68a28f11ee24bbe333047f5c7d0ce0b755fd57253 +EBUILD networkx-1.11-r1.ebuild 1931 BLAKE2B 20597ec1e3661beefaff41d089f2ad720403651543b2cfc8c90f5e1a174f590f07a7147f5e7068e0fdb71c7719767ac6e5f40a5e2f471549e4a5d8c88acdbb38 SHA512 15d2d1450b10ef2429f658d5d94464f1c71ea33e0134e75dd3e9650094571abaca44ad3eeb141aa8aea1f2db3fd06f063f6d9f2e5e96a7b917476eb4aa21d8ca EBUILD networkx-1.11.ebuild 1912 BLAKE2B ec8ab770f6d9a19e0196a59e5fc0081333766e3db81d004a0bf9f9378e962a986d33e44170b9b1a51e52e7723c9411e1355ce68e7a6322f7cd058f61e62e4f88 SHA512 c88bdf91975f6e192eb557d1b492ba92f768e191aadfd36f1dda73ef5f420fbe9dfe91c07c0c187134a6019cfe364031670068aaac182de6f9b60e2245715a63 -MISC metadata.xml 1062 BLAKE2B 03559c285540641325a657e55b75d147085ed64c92a9f65709ac0158e662a28468892d6af1b17b286f1f2e51251f2a3462e8eacf3fd05a6b0dc3479d41ac2a06 SHA512 1db48def6b8009291d6d5235323b88f42b865e009a6cb8d9b09c6519f9a55ce71ee61904c95558ad719e35161daa15fc253f0fdad2942a6ba1ac44000ab80a30 +MISC metadata.xml 1131 BLAKE2B 59e8dfa70e76d2084bc9bf4cdaeaeee7844ed7cd58b096d840ca266b10ca5213899717f60e416f336a288ae5fcdfc764c28e3a0376388c290c42f2ca924c9f34 SHA512 d91220a26181e850a8ddb2a4cc31105bc01cac62e88ab9d76757cf0732cd680aa1568a671902790893f08508072fac160093457f3d09b670ea704d38afe49e1c diff --git a/dev-python/networkx/metadata.xml b/dev-python/networkx/metadata.xml index 10664d364e8f..dff6872815b0 100644 --- a/dev-python/networkx/metadata.xml +++ b/dev-python/networkx/metadata.xml @@ -20,4 +20,7 @@ <remote-id type="pypi">networkx</remote-id> <remote-id type="github">networkx/networkx</remote-id> </upstream> + <use> + <flag name="scipy">Enables scipy backend</flag> + </use> </pkgmetadata> diff --git a/dev-python/networkx/networkx-1.11-r1.ebuild b/dev-python/networkx/networkx-1.11-r1.ebuild new file mode 100644 index 000000000000..e94f2e4f4840 --- /dev/null +++ b/dev-python/networkx/networkx-1.11-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit distutils-r1 virtualx + +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 ~arm64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc examples scipy test" + +REQUIRED_USE="doc? ( || ( $(python_gen_useflags -2) ) )" + +COMMON_DEPEND=" + dev-python/matplotlib[${PYTHON_USEDEP}] + scipy? ( 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 'dev-python/pydot[${PYTHON_USEDEP}]' -2) + )" +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}] + )" + +PATCHES=( + "${FILESDIR}"/1.11-sphinx-pngmath.patch +) + +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() { + if use doc; then + python_setup -2 + emake -C doc html + fi +} + +python_test() { + virtx 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 && dodoc -r examples + + distutils-r1_python_install_all +} |