summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-12-30 20:56:13 -0500
committerMichael Sterrett <mr_bones_@gentoo.org>2015-12-30 20:56:34 -0500
commitc2967fbcee0a72cd2dadf07225d66a4a0d343123 (patch)
tree38118d3e253f6fe41aff0820753e3861bd8bd45e /games-fps/soldieroffortune-demo
parentgnome-python-common-r1.eclass: replace deprecated python_parallel_foreach_imp... (diff)
downloadgentoo-c2967fbcee0a72cd2dadf07225d66a4a0d343123.tar.gz
gentoo-c2967fbcee0a72cd2dadf07225d66a4a0d343123.tar.bz2
gentoo-c2967fbcee0a72cd2dadf07225d66a4a0d343123.zip
games-fps/soldieroffortune-demo: tidy; honor GAMES_BINDIR
Package-Manager: portage-2.2.24
Diffstat (limited to 'games-fps/soldieroffortune-demo')
-rw-r--r--games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild b/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild
index 162f12720b33..24db71027d12 100644
--- a/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild
+++ b/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild
@@ -35,7 +35,7 @@ src_install() {
local demo="data/demos/sof_demo"
local exe="sof-bin.x86"
- loki_patch patch.dat data/ || die "loki patch failed"
+ loki_patch patch.dat data/ || die
insinto "${dir}"
exeinto "${dir}"
@@ -48,9 +48,10 @@ src_install() {
games_make_wrapper ${PN} "./${exe}" "${dir}" "${dir}"
# fix buffer overflow
- sed -i -e '/^exec/i \
+ sed -i \
+ -e '/^exec/i \
export MESA_EXTENSION_MAX_YEAR=2003 \
-export __GL_ExtensionStringVersion=17700' "${ED}"/usr/games/bin/${PN}
+export __GL_ExtensionStringVersion=17700' "${ED}"${GAMES_BINDIR}/${PN} || die
newicon "${demo}"/launch/box.png ${PN}.png
make_desktop_entry ${PN} "Soldier of Fortune (Demo)"