summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-04-26 09:50:14 +0000
committerJustin Lecher <jlec@gentoo.org>2013-04-26 09:50:14 +0000
commit9092ee61cebca30d06351ce13caafedf3737539b (patch)
treea638db7befa8e3fbb67a967b99457ac4c2c37e2a /dev-python/networkx
parentRespect AR - bug #461730 (diff)
downloadgentoo-2-9092ee61cebca30d06351ce13caafedf3737539b.tar.gz
gentoo-2-9092ee61cebca30d06351ce13caafedf3737539b.tar.bz2
gentoo-2-9092ee61cebca30d06351ce13caafedf3737539b.zip
dev-python/networkx: Move to distutils-r1.eclass
(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
Diffstat (limited to 'dev-python/networkx')
-rw-r--r--dev-python/networkx/ChangeLog10
-rw-r--r--dev-python/networkx/metadata.xml10
-rw-r--r--dev-python/networkx/networkx-1.7-r2.ebuild63
3 files changed, 76 insertions, 7 deletions
diff --git a/dev-python/networkx/ChangeLog b/dev-python/networkx/ChangeLog
index eabd5021294e..26ca3466d9cd 100644
--- a/dev-python/networkx/ChangeLog
+++ b/dev-python/networkx/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/networkx
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/networkx/ChangeLog,v 1.16 2012/12/31 13:02:58 mgorny Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/networkx/ChangeLog,v 1.17 2013/04/26 09:50:14 jlec Exp $
+
+*networkx-1.7-r2 (26 Apr 2013)
+
+ 26 Apr 2013; Justin Lecher <jlec@gentoo.org> +networkx-1.7-r2.ebuild,
+ metadata.xml:
+ Move to distutils-r1.eclass
31 Dec 2012; Michał Górny <mgorny@gentoo.org> networkx-1.6.ebuild,
networkx-1.7-r1.ebuild, networkx-1.7.ebuild:
diff --git a/dev-python/networkx/metadata.xml b/dev-python/networkx/metadata.xml
index f9a40378c47d..a799ec270063 100644
--- a/dev-python/networkx/metadata.xml
+++ b/dev-python/networkx/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>python</herd>
- <longdescription lang="en">NetworkX is a Python-based package for the creation, manipulation, and
+ <herd>python</herd>
+ <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
@@ -11,7 +11,7 @@
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>
- </upstream>
+ <upstream>
+ <remote-id type="pypi">networkx</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-python/networkx/networkx-1.7-r2.ebuild b/dev-python/networkx/networkx-1.7-r2.ebuild
new file mode 100644
index 000000000000..3194c6c38709
--- /dev/null
+++ b/dev-python/networkx/networkx-1.7-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/networkx/networkx-1.7-r2.ebuild,v 1.1 2013/04/26 09:50:14 jlec Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python tools to manipulate graphs and complex networks"
+HOMEPAGE="http://networkx.lanl.gov http://pypi.python.org/pypi/networkx"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~ppc-macos ~x86-linux ~x86-macos"
+IUSE="doc examples test"
+
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/pygraphviz[${PYTHON_USEDEP}]
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ )
+ test? (
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ sci-libs/scipy[${PYTHON_USEDEP}]
+ )"
+RDEPEND="
+ examples? (
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/pygraphviz[${PYTHON_USEDEP}]
+ virtual/pyparsing[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ sci-libs/scipy[${PYTHON_USEDEP}]
+ )"
+
+python_compile_all() {
+ if use doc; then
+ elog "Building docs"
+ # PYTHONPATH is necessary to use networkx to be installed.
+ cd "${S}"/doc || die
+ sed \
+ -e "s:^\t\./:\t${PYTHON} :g" \
+ -i Makefile || die
+ pwd
+ PYTHONPATH="${S}:${PYTHONPATH}" make html \
+ || die "doc compilation failed"
+ fi
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ rm -f "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE}.txt || die
+ if ! use examples; then
+ rm -r "${ED}"usr/share/doc/${P}/examples || die
+ fi
+ use doc && dohtml -r doc/build/html/*
+}