You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.1 KiB
57 lines
1.1 KiB
13 years ago
|
# Copyright 1999-2011 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.1 2011/02/18 18:37:01 arfrever 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 ~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)" testlex.py; 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
|
||
|
}
|