summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-09-15 19:51:05 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-09-15 19:51:05 +0000
commit4d302726d83400cdc94d9138ea98574691ba16c0 (patch)
tree1fa94c60af89d99ac7d3d216f38b2a1c913259ca /dev-python/pygraphviz
parentDelete older ebuild. (diff)
downloadgentoo-2-4d302726d83400cdc94d9138ea98574691ba16c0.tar.gz
gentoo-2-4d302726d83400cdc94d9138ea98574691ba16c0.tar.bz2
gentoo-2-4d302726d83400cdc94d9138ea98574691ba16c0.zip
Version bump.
(Portage version: 2.2_rc83_p1/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pygraphviz')
-rw-r--r--dev-python/pygraphviz/ChangeLog9
-rw-r--r--dev-python/pygraphviz/files/pygraphviz-1.0-setup.py.patch33
-rw-r--r--dev-python/pygraphviz/pygraphviz-1.0.ebuild48
3 files changed, 87 insertions, 3 deletions
diff --git a/dev-python/pygraphviz/ChangeLog b/dev-python/pygraphviz/ChangeLog
index b85baddf3894..dd4f1e413e7d 100644
--- a/dev-python/pygraphviz/ChangeLog
+++ b/dev-python/pygraphviz/ChangeLog
@@ -1,10 +1,13 @@
# ChangeLog for dev-python/pygraphviz
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygraphviz/ChangeLog,v 1.5 2010/09/15 19:49:30 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygraphviz/ChangeLog,v 1.6 2010/09/15 19:51:05 arfrever Exp $
+
+*pygraphviz-1.0 (15 Sep 2010)
15 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
- -pygraphviz-0.99.1.ebuild, -files/pygraphviz-0.99.1-setup.py.patch:
- Delete.
+ -pygraphviz-0.99.1.ebuild, -files/pygraphviz-0.99.1-setup.py.patch,
+ +pygraphviz-1.0.ebuild, +files/pygraphviz-1.0-setup.py.patch:
+ Version bump.
30 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
pygraphviz-0.99.1.ebuild:
diff --git a/dev-python/pygraphviz/files/pygraphviz-1.0-setup.py.patch b/dev-python/pygraphviz/files/pygraphviz-1.0-setup.py.patch
new file mode 100644
index 000000000000..13eb0f213ce1
--- /dev/null
+++ b/dev-python/pygraphviz/files/pygraphviz-1.0-setup.py.patch
@@ -0,0 +1,33 @@
+--- setup_egg.py
++++ setup_egg.py
+@@ -46,7 +46,6 @@
+ download_url = release.download_url,
+ classifiers = release.classifiers,
+ packages = packages,
+- data_files = data,
+ ext_modules = extension,
+ package_data = package_data,
+ install_requires=['setuptools'],
+--- setup.py
++++ setup.py
+@@ -98,12 +98,6 @@
+ sys.path.pop(0)
+
+ packages = ["pygraphviz","pygraphviz.tests"]
+-docdirbase = 'share/doc/pygraphviz-%s' % release.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,
+@@ -130,7 +124,6 @@
+ download_url = release.download_url,
+ classifiers = release.classifiers,
+ packages = packages,
+- data_files = data,
+ ext_modules = extension,
+ package_data = package_data
+ )
diff --git a/dev-python/pygraphviz/pygraphviz-1.0.ebuild b/dev-python/pygraphviz/pygraphviz-1.0.ebuild
new file mode 100644
index 000000000000..3a526dd66ef3
--- /dev/null
+++ b/dev-python/pygraphviz/pygraphviz-1.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygraphviz/pygraphviz-1.0.ebuild,v 1.1 2010/09/15 19:51:05 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils eutils
+
+DESCRIPTION="Python wrapper for the Graphviz Agraph data structure"
+HOMEPAGE="http://networkx.lanl.gov/pygraphviz/ http://pypi.python.org/pypi/pygraphviz"
+SRC_URI="http://networkx.lanl.gov/download/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="examples"
+
+RDEPEND=">=media-gfx/graphviz-2.12"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ distutils_src_prepare
+ epatch "${FILESDIR}/${P}-setup.py.patch"
+}
+
+src_test() {
+ testing() {
+ "$(PYTHON)" -c "import sys; sys.path.insert(0, '$(ls -d build-${PYTHON_ABI}/lib.*)'); import pygraphviz; pygraphviz.test()"
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples || die
+ fi
+
+ delete_tests() {
+ rm -fr "${ED}$(python_get_sitedir)/${PN}/tests"
+ }
+ python_execute_function -q delete_tests
+}