public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gamerlay:master commit in: dev-util/bam/
@ 2011-04-26 20:00 Tomas Chvatal
  0 siblings, 0 replies; only message in thread
From: Tomas Chvatal @ 2011-04-26 20:00 UTC (permalink / raw
  To: gentoo-commits

commit:     85d19620f80c54eca27f6f11aa678c0d9455fb53
Author:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 26 20:00:25 2011 +0000
Commit:     Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
CommitDate: Tue Apr 26 20:00:25 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=85d19620

[dev-util/bam] Update python usage so we use the py eclass properly.

---
 dev-util/bam/bam-0.4.0.ebuild |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/dev-util/bam/bam-0.4.0.ebuild b/dev-util/bam/bam-0.4.0.ebuild
index 1143497..7a8780f 100644
--- a/dev-util/bam/bam-0.4.0.ebuild
+++ b/dev-util/bam/bam-0.4.0.ebuild
@@ -2,9 +2,11 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-util/bam/bam-0.3.2.ebuild,v 1.1 2010/03/24 23:25:56 volkmar Exp $
 
-EAPI="2"
+EAPI=3
 
-inherit eutils
+PYTHON_DEPEND="2"
+
+inherit eutils python
 
 DESCRIPTION="Fast and flexible Lua-based build system"
 HOMEPAGE="http://matricks.github.com/bam/"
@@ -20,24 +22,29 @@ DEPEND="${RDEPEND}
 	doc? ( dev-lang/python )
 	test? ( dev-lang/python )"
 
+pkg_setup() {
+	python_set_active_version 2
+	python_pkg_setup
+}
+
 src_prepare() {
 	cp "${FILESDIR}"/${PV}/Makefile "${S}"/Makefile || die "cp failed"
 
-	if use test; then
-		epatch "${FILESDIR}"/${PV}/${P}-test.py.patch
-	fi
+	epatch "${FILESDIR}"/${PV}/${P}-test.py.patch
+
+	python_convert_shebangs -r 2 .
 }
 
 src_compile() {
-	emake ${PN} || die "emake failed"
+	emake ${PN} || die
 
 	if use doc; then
-		python scripts/gendocs.py || die "doc generation failed"
+		$(PYTHON) scripts/gendocs.py || die "doc generation failed"
 	fi
 }
 
 src_install() {
-	dobin ${PN} || die "dobin failed"
+	dobin ${PN} || die
 
 	if use doc; then
 		dohtml docs/${PN}{.html,_logo.png} || die "dohtml failed"



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-26 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26 20:00 [gentoo-commits] proj/gamerlay:master commit in: dev-util/bam/ Tomas Chvatal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox