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

Contents of /dev-python/pygraphviz/pygraphviz-1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Dec 29 08:44:31 2013 UTC (9 months, 3 weeks ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Use pypi instead of upstream server for src_uri, fixes failed fetch

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x5D21B852895192F9)

1 # Copyright 1999-2013 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.2.ebuild,v 1.1 2013/12/29 00:55:28 jlec Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_6,2_7} )
8
9 inherit distutils-r1
10
11 DESCRIPTION="Python wrapper for the Graphviz Agraph data structure"
12 HOMEPAGE="http://networkx.lanl.gov/pygraphviz/ http://pypi.python.org/pypi/pygraphviz"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
18 IUSE="examples"
19
20 # Note: only C API of graphviz is used, PYTHON_USEDEP unnecessary.
21 RDEPEND="media-gfx/graphviz"
22 DEPEND="${RDEPEND}"
23
24 PATCHES=(
25 "${FILESDIR}"/${PN}-1.0-setup.py.patch
26 "${FILESDIR}"/${P}-avoid_tests.patch
27 )
28
29 python_test() {
30 PYTHONPATH=${PYTHONPATH}:${BUILD_DIR}/lib/pygraphviz \
31 "${PYTHON}" \
32 -c "import pygraphviz.tests; pygraphviz.tests.run()" \
33 || die "Tests fail with ${EPYTHON}"
34 }
35
36 python_install_all() {
37 use examples && local EXAMPLES=( examples/. )
38
39 distutils-r1_python_install_all
40 }

  ViewVC Help
Powered by ViewVC 1.1.20