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

Collapse All | Expand All

(-)./sauerbraten-2008.06.17.ebuild.orig (-3 / +8 lines)
Lines 32-37 Link Here
32
src_unpack() {
32
src_unpack() {
33
	unpack ${A}
33
	unpack ${A}
34
	find -name CVS -print0 | xargs -0 rm -rf
34
	find -name CVS -print0 | xargs -0 rm -rf
35
	cd "${S}"
36
	epatch "${FILESDIR}"/${PN}-unix.patch
35
}
37
}
36
38
37
src_install() {
39
src_install() {
Lines 45-55 Link Here
45
47
46
	local x
48
	local x
47
	for x in client server ; do
49
	for x in client server ; do
48
		newgamesbin "${FILESDIR}"/wrapper ${PN}_${x}-bin || die
50
		newgamesbin "${S}"/sauerbraten_unix ${PN}_${x}-bin || die
49
		sed -i \
51
		sed -i \
52
			-e "s:SAUER_DIR=.:SAUER_DIR=$(games_get_libdir)/${PN}:g" \
53
			-e "s:bin_unix/::g" \
54
			-e "s:client:${x}:g" \
50
			-e "s:@GENTOO_GAMESDIR@:${GAMES_DATADIR}/${PN}:g" \
55
			-e "s:@GENTOO_GAMESDIR@:${GAMES_DATADIR}/${PN}:g" \
51
			-e "s:@GENTOO_EXEC@:$(games_get_libdir)/${PN}/linux_${x}:g" \
56
			"${D}/${GAMES_BINDIR}"/${PN}_${x}-bin \
52
			"${D}/${GAMES_BINDIR}"/${PN}_${x}-bin
57
			|| die "unable to sed ${D}/${GAMES_BINDIR}/${PN}_${x}-bin"
53
	done
58
	done
54
59
55
	dohtml -r README.html docs
60
	dohtml -r README.html docs

Return to bug 232028