Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="2" |
6 |
|
6 |
|
7 |
inherit eutils |
7 |
inherit eutils python toolchain-funcs |
8 |
|
8 |
|
9 |
DESCRIPTION="Fast and flexible Lua-based build system" |
9 |
DESCRIPTION="Fast and flexible Lua-based build system" |
10 |
HOMEPAGE="http://matricks.github.com/bam/" |
10 |
HOMEPAGE="http://matricks.github.com/bam/" |
Lines 18-25
Link Here
|
18 |
|
18 |
|
19 |
RDEPEND="dev-lang/lua" |
19 |
RDEPEND="dev-lang/lua" |
20 |
DEPEND="${RDEPEND} |
20 |
DEPEND="${RDEPEND} |
21 |
doc? ( dev-lang/python ) |
21 |
doc? ( =dev-lang/python-2* ) |
22 |
test? ( dev-lang/python )" |
22 |
test? ( =dev-lang/python-2* )" |
|
|
23 |
|
24 |
pkg_setup() { |
25 |
if use doc || use test; then |
26 |
python_set_active_version 2 |
27 |
python_pkg_setup |
28 |
fi |
29 |
} |
23 |
|
30 |
|
24 |
src_prepare() { |
31 |
src_prepare() { |
25 |
cp "${WORKDIR}"/Makefile "${S}"/Makefile || die "cp failed" |
32 |
cp "${WORKDIR}"/Makefile "${S}"/Makefile || die "cp failed" |
Lines 30-38
Link Here
|
30 |
} |
37 |
} |
31 |
|
38 |
|
32 |
src_compile() { |
39 |
src_compile() { |
33 |
emake txt2c || die "emake failed" |
40 |
emake CC=$(tc-getCC) txt2c || die "emake failed" |
34 |
emake internal_base || die "emake failed" |
41 |
emake CC=$(tc-getCC) internal_base || die "emake failed" |
35 |
emake ${PN} || die "emake failed" |
42 |
emake CC=$(tc-getCC) ${PN} || die "emake failed" |
36 |
|
43 |
|
37 |
if use doc; then |
44 |
if use doc; then |
38 |
python scripts/gendocs.py || die "doc generation failed" |
45 |
python scripts/gendocs.py || die "doc generation failed" |