summaryrefslogtreecommitdiff
blob: b8a7b90fc1817d168ae7ae84330a4b5aea9541fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

PYTHON_COMPAT=( python2_7 )

inherit distutils-r1

DESCRIPTION="Library for working with graphs in Python"
HOMEPAGE="http://code.google.com/p/python-graph/"
SRC_URI="http://python-graph.googlecode.com/files/${P}.zip"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="" # TODO tests

S="${WORKDIR}"/${PN}

src_prepare() {
	local dir
	for dir in core dot; do
		pushd ${dir} > /dev/null
			distutils-r1_src_prepare
		popd > /dev/null
	done
}

src_configure() {
	local dir
	for dir in core dot; do
		pushd ${dir} > /dev/null
			distutils-r1_src_configure
		popd > /dev/null
	done
}

src_compile() {
	local dir
	for dir in core dot; do
		pushd ${dir} > /dev/null
			distutils-r1_src_compile
		popd > /dev/null
	done
}

src_install() {
	local dir
	for dir in core dot; do
		pushd ${dir} > /dev/null
			distutils-r1_src_install
		popd > /dev/null
	done
}