Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 324371 | Differences between
and this patch

Collapse All | Expand All

(-)bam.orig/bam-0.3.2.ebuild (-6 / +13 lines)
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 35-43 Link Here
35
}
42
}
36
43
37
src_compile() {
44
src_compile() {
38
	emake txt2c || die "emake failed"
45
	emake CC=$(tc-getCC) txt2c || die "emake failed"
39
	emake internal_base || die "emake failed"
46
	emake CC=$(tc-getCC) internal_base || die "emake failed"
40
	emake ${PN} || die "emake failed"
47
	emake CC=$(tc-getCC) ${PN} || die "emake failed"
41
48
42
	if use doc; then
49
	if use doc; then
43
		python scripts/gendocs.py || die "doc generation failed"
50
		python scripts/gendocs.py || die "doc generation failed"

Return to bug 324371