summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-03-09 09:59:31 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-03-09 09:59:31 +0000
commit82e37c8008d6e211570c32662e70fa0389e83b91 (patch)
tree1f724b845b0e75c42a555b565a48d5f8e12d23a6 /dev-python/tpg/tpg-3.1.4.ebuild
parentx86 stable wrt bug #400265 (diff)
downloadgentoo-2-82e37c8008d6e211570c32662e70fa0389e83b91.tar.gz
gentoo-2-82e37c8008d6e211570c32662e70fa0389e83b91.tar.bz2
gentoo-2-82e37c8008d6e211570c32662e70fa0389e83b91.zip
Bump
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/tpg/tpg-3.1.4.ebuild')
-rw-r--r--dev-python/tpg/tpg-3.1.4.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/tpg/tpg-3.1.4.ebuild b/dev-python/tpg/tpg-3.1.4.ebuild
new file mode 100644
index 000000000000..907428e9935f
--- /dev/null
+++ b/dev-python/tpg/tpg-3.1.4.ebuild
@@ -0,0 +1,46 @@
+# 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.1.4.ebuild,v 1.1 2012/03/09 09:59:31 patrick Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+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
+}