Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 497508
Collapse All | Expand All

(-)tpg-3.2.2.ebuild (-26 / +12 lines)
Lines 1-14 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/tpg/tpg-3.2.2.ebuild,v 1.1 2014/01/08 05:33:41 patrick Exp $
3
# $Header: $
4
4
5
EAPI="3"
5
EAPI=5
6
PYTHON_DEPEND="2"
6
# py2.6 doesn't pass tests
7
SUPPORT_PYTHON_ABIS="1"
7
PYTHON_COMPAT=( python{2_7,3_2,3_3} )
8
RESTRICT_PYTHON_ABIS="3.* *-jython"
9
PYTHON_TESTS_RESTRICTED_ABIS="2.5 2.6"
10
8
11
inherit distutils
9
inherit distutils-r1
12
10
13
MY_P="TPG-${PV}"
11
MY_P="TPG-${PV}"
14
12
Lines 20-47 Link Here
20
SLOT="0"
18
SLOT="0"
21
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
19
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
22
IUSE="doc examples"
20
IUSE="doc examples"
21
DOCS=( ChangeLog README THANKS doc/tpg.pdf )
23
22
24
S="${WORKDIR}/${MY_P}"
23
S="${WORKDIR}/${MY_P}"
25
24
26
DOCS="THANKS"
25
python_test() {
27
PYTHON_MODNAME="tpg.py"
26
#	"${PYTHON}" tpg_tests_py2.py || die
28
27
	"${PYTHON}" tpg_tests.py -v || die
29
src_test() {
30
	testing() {
31
		"$(PYTHON)" tpg_tests.py -v
32
	}
33
	python_execute_function testing
34
}
28
}
35
29
36
src_install() {
30
python_install_all() {
37
	distutils_src_install
31
	use examples && local EXAMPLES=( examples/. )
38
32
	distutils-r1_python_install_all
39
	if use doc; then
40
		dodoc doc/tpg.pdf || die "dodoc failed"
41
	fi
42
43
	if use examples; then
44
		insinto /usr/share/doc/${PF}
45
		doins -r examples || die "doins failed"
46
	fi
47
}
33
}

Return to bug 497508