summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-04-26 22:00:25 +0200
committerTomas Chvatal <scarabeus@gentoo.org>2011-04-26 22:00:25 +0200
commit85d19620f80c54eca27f6f11aa678c0d9455fb53 (patch)
tree9dd9b51c77de91c22923d201825aa72f10b952f0 /dev-util
parent[games-action/teeworlds] teeworlds 0.6.0 from #363395 (diff)
downloadgamerlay-85d19620f80c54eca27f6f11aa678c0d9455fb53.tar.gz
gamerlay-85d19620f80c54eca27f6f11aa678c0d9455fb53.tar.bz2
gamerlay-85d19620f80c54eca27f6f11aa678c0d9455fb53.zip
[dev-util/bam] Update python usage so we use the py eclass properly.
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/bam/Manifest2
-rw-r--r--dev-util/bam/bam-0.4.0.ebuild23
2 files changed, 16 insertions, 9 deletions
diff --git a/dev-util/bam/Manifest b/dev-util/bam/Manifest
index 976a4da..e83f90b 100644
--- a/dev-util/bam/Manifest
+++ b/dev-util/bam/Manifest
@@ -1,5 +1,5 @@
AUX 0.4.0/Makefile 503 RMD160 e57e7375359b7929a265889c3399eb94c6566f13 SHA1 3bf35cd432b39af6e9cf8c29b7f21ef3f7b84376 SHA256 d725c3d5fc8a62df8e3d7bf75b1542fdf8e0a596d9e00afbde9c22581021994f
AUX 0.4.0/bam-0.4.0-test.py.patch 266 RMD160 6255d35e6577513067156bc3af61e9fdf996a32e SHA1 b20f1f9a941c6676683770cfe53417690c54294d SHA256 2dfcdd5720681f62001e33aaeb240df4a66f294b99b2c3edc44acd0afc8b214c
DIST bam-0.4.0.tar.bz2 164033 RMD160 ae09aa5ff63a62211ab93c37a415e31231858617 SHA1 5dad113e38ba89384d842655eb477834285c216b SHA256 56030670aa21e227ce0a00f1ee0c9b5129469a6e69e7b67c3dd459d2fce6207d
-EBUILD bam-0.4.0.ebuild 996 RMD160 328b5f7b357c5c35399c071cc232edb11fd330d8 SHA1 9f780496bd64349afa6f160c0013383069d94614 SHA256 0717c73998b3327e9f76b3a36135c1366db36aba40236ae46cf46aa5131eef2f
+EBUILD bam-0.4.0.ebuild 1066 RMD160 6fdaf5d1f40b3d7f2bbdb712731d0d9b5cc01857 SHA1 e61b50ba2b224cb98dbddd0c9356ba3158e3b776 SHA256 8f07b103cdc822151ddc7693e9ec39310374cb1356dc7ce6f156eb1f57f4e933
MISC metadata.xml 257 RMD160 224ee82bfe66c5da4a2dc1dd697b1782e7f03cb9 SHA1 6b583c76750b206bd133403d1a4685a14f8e6b95 SHA256 45f231de4d8bc5ed6309ba83d2eb9a06b8e13f828d7b74e909a144439356cd62
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"