summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-02-27 20:49:23 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-02-27 20:49:23 +0000
commit48b5e152e2c0b7a2ca83099b64aeeb8f564a6c0a (patch)
tree9091d9660bbca548bb401b104b7984ad251d9d3c /dev-python
parentstable ppc64, bug 256681 (diff)
downloadgentoo-2-48b5e152e2c0b7a2ca83099b64aeeb8f564a6c0a.tar.gz
gentoo-2-48b5e152e2c0b7a2ca83099b64aeeb8f564a6c0a.tar.bz2
gentoo-2-48b5e152e2c0b7a2ca83099b64aeeb8f564a6c0a.zip
Initial import, closing bug #253415, thanks Robert Morris
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pygraphviz/ChangeLog11
-rw-r--r--dev-python/pygraphviz/files/pygraphviz-0.99.1-setup.py.patch33
-rw-r--r--dev-python/pygraphviz/metadata.xml11
-rw-r--r--dev-python/pygraphviz/pygraphviz-0.99.1.ebuild37
4 files changed, 92 insertions, 0 deletions
diff --git a/dev-python/pygraphviz/ChangeLog b/dev-python/pygraphviz/ChangeLog
new file mode 100644
index 000000000000..0d02335c8537
--- /dev/null
+++ b/dev-python/pygraphviz/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-python/pygraphviz
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygraphviz/ChangeLog,v 1.1 2009/02/27 20:49:23 bicatali Exp $
+
+*pygraphviz-0.99.1 (27 Feb 2009)
+
+ 27 Feb 2009; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/pygraphviz-0.99.1-setup.py.patch, +metadata.xml,
+ +pygraphviz-0.99.1.ebuild:
+ Initial import, closing bug #253415, thanks Robert Morris
+
diff --git a/dev-python/pygraphviz/files/pygraphviz-0.99.1-setup.py.patch b/dev-python/pygraphviz/files/pygraphviz-0.99.1-setup.py.patch
new file mode 100644
index 000000000000..35a66814b5ff
--- /dev/null
+++ b/dev-python/pygraphviz/files/pygraphviz-0.99.1-setup.py.patch
@@ -0,0 +1,33 @@
+--- setup.py.orig 2009-02-27 20:17:52.004477424 +0000
++++ setup.py 2009-02-27 20:18:42.009572270 +0000
+@@ -135,12 +135,6 @@
+ execfile(os.path.join('pygraphviz','release.py'))
+
+ packages = ["pygraphviz","pygraphviz.tests"]
+-docdirbase = 'share/doc/pygraphviz-%s' % version
+-data = [(docdirbase, glob("*.txt")),
+- (os.path.join(docdirbase, 'examples'),glob("examples/*.py")),
+- (os.path.join(docdirbase, 'examples'),glob("examples/*.dat")),
+- (os.path.join(docdirbase, 'examples'),glob("examples/*.dat.gz")),
+- ]
+ extension = [Extension("pygraphviz._graphviz",
+ ["pygraphviz/graphviz_wrap.c"],
+ include_dirs=include_dirs,
+@@ -165,7 +159,6 @@
+ url = url,
+ download_url = download_url,
+ packages = packages,
+- data_files = data,
+ classifiers = classifiers,
+ ext_modules = extension,
+ package_data = package_data,
+--- setup_egg.py.orig 2009-02-27 20:19:32.994136036 +0000
++++ setup_egg.py 2009-02-27 20:20:14.253100416 +0000
+@@ -34,7 +34,6 @@
+ url = url,
+ download_url = download_url,
+ packages = packages,
+- data_files = data,
+ classifiers = classifiers,
+ ext_modules = extension,
+ package_data = package_data,
diff --git a/dev-python/pygraphviz/metadata.xml b/dev-python/pygraphviz/metadata.xml
new file mode 100644
index 000000000000..21cc6edc2b4e
--- /dev/null
+++ b/dev-python/pygraphviz/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>python</herd>
+<longdescription lang="en">
+ Pygraphviz is a Python interface to the Graphviz graph layout and
+ visualization package.
+ With Pygraphviz you can create, edit, read, write, and draw graphs using
+ Python to access the Graphviz graph data structure and layout algorithms.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-python/pygraphviz/pygraphviz-0.99.1.ebuild b/dev-python/pygraphviz/pygraphviz-0.99.1.ebuild
new file mode 100644
index 000000000000..f007f269ca9d
--- /dev/null
+++ b/dev-python/pygraphviz/pygraphviz-0.99.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygraphviz/pygraphviz-0.99.1.ebuild,v 1.1 2009/02/27 20:49:23 bicatali Exp $
+
+EAPI=2
+NEED_PYTHON="2.4"
+inherit distutils
+
+DESCRIPTION="Python bindings for the agraph library in the graphviz package."
+HOMEPAGE="http://networkx.lanl.gov/pygraphviz/"
+SRC_URI="http://networkx.lanl.gov/download/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+RDEPEND=">=media-gfx/graphviz-2.12"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-setup.py.patch
+}
+
+src_test() {
+ cd build/lib*
+ PYTHONPATH=. ${python} -c "import pygraphviz; pygraphviz.test()" \
+ || die "tests failed"
+}
+
+src_install() {
+ distutils_src_install
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples || die
+ fi
+}