Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 335148
Collapse All | Expand All

(-)teeworlds-0.6.1.ebuild (-2 / +20 lines)
Lines 6-12 Link Here
6
6
7
PYTHON_DEPEND="2"
7
PYTHON_DEPEND="2"
8
8
9
inherit eutils python games
9
inherit eutils python toolchain-funcs games
10
10
11
REVISION="b177-r50edfd37"
11
REVISION="b177-r50edfd37"
12
12
Lines 43-48 Link Here
43
	# 01 & 02 from pull request: https://github.com/oy/teeworlds/pull/493
43
	# 01 & 02 from pull request: https://github.com/oy/teeworlds/pull/493
44
	EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
44
	EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
45
		epatch
45
		epatch
46
47
	cat <<- __EOF__ > "${S}/gentoo.lua"
48
		function addSettings(settings)
49
			print("Adding Gentoo settings")
50
			settings.optimize = 0
51
			settings.cc.exe_c = "$(tc-getCC)"
52
			settings.cc.exe_cxx = "$(tc-getCXX)"
53
			settings.cc.flags_c:Add("${CFLAGS}")
54
			settings.cc.flags_cxx:Add("${CXXFLAGS}")
55
			settings.link.exe = "$(tc-getCXX)"
56
			settings.link.flags:Add("${LDFLAGS}")
57
		end
58
	__EOF__
59
60
	sed -i -e '/^function build(settings)/a dofile("gentoo.lua") addSettings(settings)' bam.lua
46
}
61
}
47
62
48
src_configure() {
63
src_configure() {
Lines 65-71 Link Here
65
		fi
80
		fi
66
	fi
81
	fi
67
82
68
	bam ${myopt} || die "bam failed"
83
	# Taken from the libreoffice-3.5.2.2 ebuild
84
	local jobs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
85
86
	bam -a -j ${jobs} ${myopt} || die "bam failed"
69
}
87
}
70
88
71
src_install() {
89
src_install() {

Return to bug 335148