blob: 8d4beba06a3801af5bf428e6fa83acef6fe6bdc0 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/tpg/tpg-3.2.1.ebuild,v 1.1 2012/06/06 08:06:46 patrick Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
PYTHON_TESTS_RESTRICTED_ABIS="2.5 2.6"
inherit distutils
MY_P="TPG-${PV}"
DESCRIPTION="Toy Parser Generator for Python"
HOMEPAGE="http://christophe.delord.free.fr/tpg/index.html"
SRC_URI="http://christophe.delord.free.fr/tpg/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
IUSE="doc examples"
S="${WORKDIR}/${MY_P}"
DOCS="THANKS"
PYTHON_MODNAME="tpg.py"
src_test() {
testing() {
"$(PYTHON)" tpg_tests.py -v
}
python_execute_function testing
}
src_install() {
distutils_src_install
if use doc; then
dodoc doc/tpg.pdf || die "dodoc failed"
fi
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples || die "doins failed"
fi
}
|