blob: a0a26e85891cb1e54a8917558e890f738045ddb9 (
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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/ply/ply-3.4.ebuild,v 1.6 2012/06/27 17:39:46 maekke Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
inherit distutils
DESCRIPTION="Python Lex-Yacc library"
HOMEPAGE="http://www.dabeaz.com/ply/ http://pypi.python.org/pypi/ply"
SRC_URI="http://www.dabeaz.com/ply/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ~ia64 ppc x86"
IUSE="examples"
DEPEND=""
RDEPEND=""
DOCS="ANNOUNCE CHANGES README TODO"
src_test() {
python_enable_pyc
cd test
testing() {
local exit_status="0" test
for test in testlex.py testyacc.py; do
einfo "Running ${test}..."
if ! "$(PYTHON)" ${test}; then
ewarn "${test} failed with $(python_get_implementation) $(python_get_version)"
exit_status="1"
fi
done
return "${exit_status}"
}
python_execute_function testing
python_disable_pyc
}
src_install() {
distutils_src_install
dohtml doc/* || die "dohtml failed"
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins -r example/* || die "doins failed"
fi
}
|