/[gentoo-x86]/dev-python/pygraphviz/pygraphviz-1.1-r1.ebuild
Gentoo

Contents of /dev-python/pygraphviz/pygraphviz-1.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Aug 5 18:05:31 2011 UTC (3 years, 3 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -1 lines
Re-add PYTHON_DEPEND=2

(Portage version: 2.1.10.10/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/pygraphviz/pygraphviz-1.1-r1.ebuild,v 1.1 2011/08/05 17:05:11 bicatali Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND=2
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython"
9
10 inherit distutils eutils
11
12 DESCRIPTION="Python wrapper for the Graphviz Agraph data structure"
13 HOMEPAGE="http://networkx.lanl.gov/pygraphviz/ http://pypi.python.org/pypi/pygraphviz"
14 SRC_URI="http://networkx.lanl.gov/download/${PN}/${P}.tar.gz"
15
16 LICENSE="BSD"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
19 IUSE="examples"
20
21 RDEPEND=">=media-gfx/graphviz-2.12"
22 DEPEND="${RDEPEND}"
23
24 src_prepare() {
25 distutils_src_prepare
26 epatch "${FILESDIR}"/${PN}-1.0-setup.py.patch
27 epatch "${FILESDIR}"/${P}-avoid_tests.patch
28 }
29
30 src_test() {
31 testing() {
32 "$(PYTHON)" -c "import sys; sys.path.insert(0, '$(ls -d build-${PYTHON_ABI}/lib.*)'); import pygraphviz.tests; pygraphviz.tests.run()"
33 }
34 python_execute_function testing
35 }
36
37 src_install() {
38 distutils_src_install
39
40 if use examples; then
41 insinto /usr/share/doc/${PF}
42 doins -r examples || die "Installation of examples failed"
43 fi
44
45 delete_tests() {
46 rm -fr "${ED}$(python_get_sitedir)/${PN}/tests"
47 }
48 python_execute_function -q delete_tests
49 }

  ViewVC Help
Powered by ViewVC 1.1.20