1 |
commit: 85d19620f80c54eca27f6f11aa678c0d9455fb53 |
2 |
Author: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 26 20:00:25 2011 +0000 |
4 |
Commit: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 20:00:25 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=85d19620 |
7 |
|
8 |
[dev-util/bam] Update python usage so we use the py eclass properly. |
9 |
|
10 |
--- |
11 |
dev-util/bam/bam-0.4.0.ebuild | 23 +++++++++++++++-------- |
12 |
1 files changed, 15 insertions(+), 8 deletions(-) |
13 |
|
14 |
diff --git a/dev-util/bam/bam-0.4.0.ebuild b/dev-util/bam/bam-0.4.0.ebuild |
15 |
index 1143497..7a8780f 100644 |
16 |
--- a/dev-util/bam/bam-0.4.0.ebuild |
17 |
+++ b/dev-util/bam/bam-0.4.0.ebuild |
18 |
@@ -2,9 +2,11 @@ |
19 |
# Distributed under the terms of the GNU General Public License v2 |
20 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/bam/bam-0.3.2.ebuild,v 1.1 2010/03/24 23:25:56 volkmar Exp $ |
21 |
|
22 |
-EAPI="2" |
23 |
+EAPI=3 |
24 |
|
25 |
-inherit eutils |
26 |
+PYTHON_DEPEND="2" |
27 |
+ |
28 |
+inherit eutils python |
29 |
|
30 |
DESCRIPTION="Fast and flexible Lua-based build system" |
31 |
HOMEPAGE="http://matricks.github.com/bam/" |
32 |
@@ -20,24 +22,29 @@ DEPEND="${RDEPEND} |
33 |
doc? ( dev-lang/python ) |
34 |
test? ( dev-lang/python )" |
35 |
|
36 |
+pkg_setup() { |
37 |
+ python_set_active_version 2 |
38 |
+ python_pkg_setup |
39 |
+} |
40 |
+ |
41 |
src_prepare() { |
42 |
cp "${FILESDIR}"/${PV}/Makefile "${S}"/Makefile || die "cp failed" |
43 |
|
44 |
- if use test; then |
45 |
- epatch "${FILESDIR}"/${PV}/${P}-test.py.patch |
46 |
- fi |
47 |
+ epatch "${FILESDIR}"/${PV}/${P}-test.py.patch |
48 |
+ |
49 |
+ python_convert_shebangs -r 2 . |
50 |
} |
51 |
|
52 |
src_compile() { |
53 |
- emake ${PN} || die "emake failed" |
54 |
+ emake ${PN} || die |
55 |
|
56 |
if use doc; then |
57 |
- python scripts/gendocs.py || die "doc generation failed" |
58 |
+ $(PYTHON) scripts/gendocs.py || die "doc generation failed" |
59 |
fi |
60 |
} |
61 |
|
62 |
src_install() { |
63 |
- dobin ${PN} || die "dobin failed" |
64 |
+ dobin ${PN} || die |
65 |
|
66 |
if use doc; then |
67 |
dohtml docs/${PN}{.html,_logo.png} || die "dohtml failed" |