summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-03-09 18:33:04 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2009-03-09 18:33:04 +0000
commitd673479575557277babcaaac08e25697765b28b2 (patch)
treeba7e575c2dd4a45c6edafc3fe5dfe852f8ba4013 /games-fps/sauerbraten/files
parentmask net-irc/lostirc for removal (diff)
downloadgentoo-2-d673479575557277babcaaac08e25697765b28b2.tar.gz
gentoo-2-d673479575557277babcaaac08e25697765b28b2.tar.bz2
gentoo-2-d673479575557277babcaaac08e25697765b28b2.zip
Allow user editable configuration (map editation wont work as it is CANTFIX). Per bug #232028. Remove old.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'games-fps/sauerbraten/files')
-rw-r--r--games-fps/sauerbraten/files/sauerbraten_unix.patch19
-rwxr-xr-xgames-fps/sauerbraten/files/wrapper9
2 files changed, 19 insertions, 9 deletions
diff --git a/games-fps/sauerbraten/files/sauerbraten_unix.patch b/games-fps/sauerbraten/files/sauerbraten_unix.patch
new file mode 100644
index 000000000000..db2a032becf6
--- /dev/null
+++ b/games-fps/sauerbraten/files/sauerbraten_unix.patch
@@ -0,0 +1,19 @@
+--- sauerbraten_unix.orig 2008-08-15 20:05:44.000000000 +0200
++++ sauerbraten_unix 2008-08-15 22:49:47.000000000 +0200
+@@ -3,6 +3,7 @@
+ #SAUER_DIR=~/sauerbraten
+ #SAUER_DIR=/usr/local/sauerbraten
+ SAUER_DIR=.
++SAUER_DATADIR=.
+
+ # SAUER_OPTIONS contains any command line options you would like to start Sauerbraten with.
+ #SAUER_OPTIONS="-f"
+@@ -46,7 +47,7 @@
+
+ if [ -x ${SAUER_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client ]
+ then
+- cd ${SAUER_DIR}
++ cd ${SAUER_DATADIR}
+ exec ${SAUER_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client ${SAUER_OPTIONS} $@
+ else
+ echo "Your platform does not have a pre-compiled Sauerbraten client."
diff --git a/games-fps/sauerbraten/files/wrapper b/games-fps/sauerbraten/files/wrapper
deleted file mode 100755
index dfd7946eeeae..000000000000
--- a/games-fps/sauerbraten/files/wrapper
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash -e
-
-mkdir -p ~/.sauerbraten
-cd ~/.sauerbraten
-for l in data packages ; do
- rm -f ${l}
- ln -s "@GENTOO_GAMESDIR@"/${l} ${l}
-done
-exec "@GENTOO_EXEC@" "$@"