diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/networkx |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/networkx')
-rw-r--r-- | dev-python/networkx/Manifest | 8 | ||||
-rw-r--r-- | dev-python/networkx/files/1.11-sphinx-pngmath.patch | 14 | ||||
-rw-r--r-- | dev-python/networkx/metadata.xml | 23 | ||||
-rw-r--r-- | dev-python/networkx/networkx-1.10-r1.ebuild | 78 | ||||
-rw-r--r-- | dev-python/networkx/networkx-1.11.ebuild | 75 |
5 files changed, 198 insertions, 0 deletions
diff --git a/dev-python/networkx/Manifest b/dev-python/networkx/Manifest new file mode 100644 index 000000000000..06c77307db16 --- /dev/null +++ b/dev-python/networkx/Manifest @@ -0,0 +1,8 @@ +AUX 1.11-sphinx-pngmath.patch 361 SHA256 ccc81baea36453386b1f1e2bec2635990f9240c6860756d2f9d8e09e2aa2fbee SHA512 2db58b8f6067ccbe66bcdb3f39a80d126bd549c6838a34907b01360b5441f8b122632f1863b51142cba8688f4705697b9cd15d8fb6534ded8a9613e374edea4e WHIRLPOOL 6d38056740c71a6b9b6d5043fb2ab08354b8f497170dcf6085cbf6336210b8ba9c37992fabd765aac70c1212f2264c705c012d78192c8e3c5fb29792dabdb45d +DIST networkx-1.10.tar.gz 1189291 SHA256 ced4095ab83b7451cec1172183eff419ed32e21397ea4e1971d92a5808ed6fb8 SHA512 fc0a0b929991baef63c30382c2045d551b217140393a4264b18a5f1be198d325eee9f57e02dda38a7ad9f99771c5b78f82c673a88b04df122b9d91852db09efd WHIRLPOOL 8a9666142a1978e72b9eeb791de5c2033d0d29cd2db846f2583c41876d6a5c864c295316bb3d1c2858ccda0f4ca5081108ed9c07176eb8146c8c772fa77c8a60 +DIST networkx-1.11.tar.gz 1315737 SHA256 0d0e70e10dfb47601cbb3425a00e03e2a2e97477be6f80638fef91d54dd1e4b8 SHA512 622c93330bb5ba93a2be087f7f19963a1bb9a50dc72b6500ea8321c36aa9da19af379c5cd4bbee8bba3cb6e68a28f11ee24bbe333047f5c7d0ce0b755fd57253 WHIRLPOOL 64f68a750efef2f356525f4f2e1d8046327b223a4a55b3388fef1f7b68dac3796fbd05e7d997052ab644213ccea25a0584a2f4bbd660bc32b4c9aff9a92926c6 +EBUILD networkx-1.10-r1.ebuild 2031 SHA256 31fe8bcb2c84998263a39e5d50b535df871ea3d3332e3fd64cadd21fc4070cf0 SHA512 7322a968d07950d8455c3cae9d3011ef38e92c6aa280609aeaa4814679d297d5b8acbcb68b1d58b682fa1693bbccb49c4cfc68b2cb11cf2dd50383949f37738d WHIRLPOOL 259cf7f86918b8ddc015e85c225e62bfb338263927ccaae888cf5002113606c22e12f5be6a4fae3447d08e13be3737dde3df07f0134dbc412146b46ae0cb68f6 +EBUILD networkx-1.11.ebuild 1912 SHA256 71b09c9a7d355c99664a80bafebad81385cd3bb030779b42ba478f78d7bd6c67 SHA512 c88bdf91975f6e192eb557d1b492ba92f768e191aadfd36f1dda73ef5f420fbe9dfe91c07c0c187134a6019cfe364031670068aaac182de6f9b60e2245715a63 WHIRLPOOL ff4533d2c9e4536bcb35efdae67fff38a02c3ca52be7e8c17de446256c92be9811c29f60761573a3e0580bf41fefe1aae810b887f91768d45fe78f84c42d1ff1 +MISC ChangeLog 5088 SHA256 ef2f051279d7bbb0352ceafd2690a951e9bc88c6f9b28ba17ad92bafd46e04af SHA512 95e2853e65b585f27ef8f9178b0fdd5ed8c9dbc611fa8c1bccab3f6ba85cd99e69d90a5f1067d2bbda8ab64e9a1a056797871cfe7b1b85c595bbaa515cdda1ec WHIRLPOOL 804d2fa292450928292361ffe99c0989319c9eab1ec6f92cb7d603a4a9bf4e0b1ea569325ad6efbf38e9836f63a2dee29fdf8f582092e203983144d64315f252 +MISC ChangeLog-2015 5338 SHA256 b80e2ff466d14d85568688e20c3c193aeb6eabd448ea7592e7c6c9a959172dfd SHA512 16e779db4ce77776b23dbd552ed73dd7fb5f69f652a7566839a269809b28a09a4a1e0599815a5eea5378c024183a18f6ebb488728d476c1fe0f6a87593495a74 WHIRLPOOL bc3c341ecf0ced48ee2d98f594d824dcbd9c2d6eaf41c2261edb988356dfd4fc94fe8b6592c7807916bc9432b9261a12f31026f24b4f132351384e4dbd0153fc +MISC metadata.xml 1062 SHA256 e48b0502e64da00662ed18bc7805bc54fdde0adb03260a129f22b817bda81358 SHA512 1db48def6b8009291d6d5235323b88f42b865e009a6cb8d9b09c6519f9a55ce71ee61904c95558ad719e35161daa15fc253f0fdad2942a6ba1ac44000ab80a30 WHIRLPOOL 9291fe668b660c6ce0eafa196c6f16a2cd8eb2ddb71112eac5d1631badfabc821cf17925a54af6effb96978c3ff0b6239f06418c398b2a7afd24c36d662b6cd9 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..10664d364e8f --- /dev/null +++ b/dev-python/networkx/metadata.xml @@ -0,0 +1,23 @@ +<?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> +</pkgmetadata> 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 000000000000..4e2807d4e82f --- /dev/null +++ b/dev-python/networkx/networkx-1.10-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,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" + +REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )" + +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}]' 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}] + )" + +pkg_setup() { + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' ) +} + +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 +} diff --git a/dev-python/networkx/networkx-1.11.ebuild b/dev-python/networkx/networkx-1.11.ebuild new file mode 100644 index 000000000000..fa141b8ee7b3 --- /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 ~arm64 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 +} |