summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-12-26 17:31:38 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-12-26 17:31:38 +0000
commit183ce453d4955d98a1eb9ac29426c82f97b984bf (patch)
treedcceb137cc61e5869459084685b9de9c4eb16f51 /dev-python/tpg
parentAdded ~mips, bug 263337 (diff)
downloadgentoo-2-183ce453d4955d98a1eb9ac29426c82f97b984bf.tar.gz
gentoo-2-183ce453d4955d98a1eb9ac29426c82f97b984bf.tar.bz2
gentoo-2-183ce453d4955d98a1eb9ac29426c82f97b984bf.zip
Fix dependencies. Set SUPPORT_PYTHON_ABIS.
(Portage version: 2.2.0_alpha10_p8/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/tpg')
-rw-r--r--dev-python/tpg/ChangeLog8
-rw-r--r--dev-python/tpg/tpg-3.1.2.ebuild33
2 files changed, 28 insertions, 13 deletions
diff --git a/dev-python/tpg/ChangeLog b/dev-python/tpg/ChangeLog
index 013b7354fb02..abc20683c507 100644
--- a/dev-python/tpg/ChangeLog
+++ b/dev-python/tpg/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/tpg
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/tpg/ChangeLog,v 1.14 2009/09/04 15:35:45 patrick Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/tpg/ChangeLog,v 1.15 2010/12/26 17:31:38 arfrever Exp $
+
+ 26 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ tpg-3.1.2.ebuild:
+ Fix dependencies. Set SUPPORT_PYTHON_ABIS.
04 Sep 2009; Patrick Lauer <patrick@gentoo.org> -tpg-3.1.1.ebuild:
Remove old
diff --git a/dev-python/tpg/tpg-3.1.2.ebuild b/dev-python/tpg/tpg-3.1.2.ebuild
index 10924080c12a..e18ceb79af2d 100644
--- a/dev-python/tpg/tpg-3.1.2.ebuild
+++ b/dev-python/tpg/tpg-3.1.2.ebuild
@@ -1,6 +1,11 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/tpg/tpg-3.1.2.ebuild,v 1.1 2009/02/15 14:39:23 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/tpg/tpg-3.1.2.ebuild,v 1.2 2010/12/26 17:31:38 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit distutils
@@ -10,26 +15,32 @@ 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"
-SLOT="0"
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
- dodoc THANKS
-
- use doc && dodoc doc/tpg.pdf
+ if use doc; then
+ dodoc doc/tpg.pdf || die "dodoc failed"
+ fi
if use examples; then
insinto /usr/share/doc/${PF}
- doins -r examples
+ doins -r examples || die "doins failed"
fi
}
-
-src_test() {
- "${python}" tpg_tests.py -v || die "tests failed"
-}