diff options
Diffstat (limited to 'dev-python/networkx')
-rw-r--r-- | dev-python/networkx/Manifest | 5 | ||||
-rw-r--r-- | dev-python/networkx/files/1.11-sphinx-pngmath.patch | 14 | ||||
-rw-r--r-- | dev-python/networkx/metadata.xml | 26 | ||||
-rw-r--r-- | dev-python/networkx/networkx-1.11-r1.ebuild | 75 | ||||
-rw-r--r-- | dev-python/networkx/networkx-1.11.ebuild | 75 |
5 files changed, 195 insertions, 0 deletions
diff --git a/dev-python/networkx/Manifest b/dev-python/networkx/Manifest new file mode 100644 index 000000000000..944d1e9f3926 --- /dev/null +++ b/dev-python/networkx/Manifest @@ -0,0 +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 1929 BLAKE2B 7852413061c7b9aa3960b9263a9d372e4ea343d0cf90a9e2113150eca7fd5b2ad3c5930e3cd66e90503da639c275ca198c48cfbcabafe99d795e60db687306ae SHA512 bbe4384d6ed6dbe201840f5bbd4d44cdbc1b89e4100f8c0045cdaf45c1ace297573221fcba6b6527ca261c25e4f466acbd81bf9f3a6613ce21e27e03d0547d9c +EBUILD networkx-1.11.ebuild 1905 BLAKE2B 2ff9b91b619fc0846a90bf0388148398e295de9095e8fe973fbcb53a45650b84b845b67633951d2e45963d6d9e45e05a7bca82ad9c91cddec91ed61a24edc7b6 SHA512 4cb7100d2083b3dcf4c4d829ae30da9d9e4632bb7117f3255f3a3af4f74e8fc1515680cde0cf27d12c2e975e540a8ac32e95549de0c2c4a3bf6e280dd8423a6b +MISC metadata.xml 1131 BLAKE2B 59e8dfa70e76d2084bc9bf4cdaeaeee7844ed7cd58b096d840ca266b10ca5213899717f60e416f336a288ae5fcdfc764c28e3a0376388c290c42f2ca924c9f34 SHA512 d91220a26181e850a8ddb2a4cc31105bc01cac62e88ab9d76757cf0732cd680aa1568a671902790893f08508072fac160093457f3d09b670ea704d38afe49e1c diff --git a/dev-python/networkx/files/1.11-sphinx-pngmath.patch b/dev-python/networkx/files/1.11-sphinx-pngmath.patch new file mode 100644 index 000000000000..d43e4275a40b --- /dev/null +++ b/dev-python/networkx/files/1.11-sphinx-pngmath.patch @@ -0,0 +1,14 @@ +Drop pngmath extenstion from sphinx config + +Bug: https://bugs.gentoo.org/594626 + +--- a/doc/source/conf.py ++++ b/doc/source/conf.py +@@ -74,7 +74,6 @@ def cd(newpath): + 'sphinx.ext.intersphinx', + 'sphinx.ext.mathjax', + 'sphinx.ext.napoleon', +- 'sphinx.ext.pngmath', + 'sphinx.ext.todo', + 'sphinx.ext.viewcode', + #'sphinxcontrib.bibtex', diff --git a/dev-python/networkx/metadata.xml b/dev-python/networkx/metadata.xml new file mode 100644 index 000000000000..dff6872815b0 --- /dev/null +++ b/dev-python/networkx/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + NetworkX is a Python-based package for the creation, manipulation, and + study of the structure, dynamics, and functions of complex networks. + The structure of a graph or network is encoded in the edges (connections, + links, ties, arcs, bonds) between nodes (vertices, sites, actors). If + unqualified, by graph we mean a simple undirected graph, i.e. no + self-loops and no multiple edges are allowed. By a network we usually + mean a graph with weights (fields, properties) on nodes and/or edges. + The potential audience for NetworkX includes: mathematicians, physicists, + biologists, computer scientists, social scientists. +</longdescription> + <upstream> + <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..471e3405c6d4 --- /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 +} diff --git a/dev-python/networkx/networkx-1.11.ebuild b/dev-python/networkx/networkx-1.11.ebuild new file mode 100644 index 000000000000..e526bbac9162 --- /dev/null +++ b/dev-python/networkx/networkx-1.11.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2017 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 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc examples test" + +REQUIRED_USE="doc? ( || ( $(python_gen_useflags -2) ) )" + +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 '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 +} |