summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/lightyears/files/lightyears-1.2a-gentoo.patch')
-rw-r--r--games-strategy/lightyears/files/lightyears-1.2a-gentoo.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/games-strategy/lightyears/files/lightyears-1.2a-gentoo.patch b/games-strategy/lightyears/files/lightyears-1.2a-gentoo.patch
new file mode 100644
index 000000000000..6b1996bea320
--- /dev/null
+++ b/games-strategy/lightyears/files/lightyears-1.2a-gentoo.patch
@@ -0,0 +1,24 @@
+--- LightYears.py.old 2007-04-27 21:33:46.000000000 +0200
++++ LightYears.py 2007-04-27 21:35:02.000000000 +0200
+@@ -9,8 +9,7 @@
+ if ( __name__ == "__main__" ):
+ import sys, os
+
+- CODE_DIR = os.path.abspath(os.path.join(
+- os.path.dirname(sys.argv[ 0 ]), "code"))
++ CODE_DIR = "@GENTOO_LIBDIR@"
+
+ sys.path.insert(0, CODE_DIR)
+
+--- code/resource.py.old 2007-04-27 22:17:47.000000000 +0200
++++ code/resource.py 2007-04-27 22:18:29.000000000 +0200
+@@ -14,8 +14,7 @@
+ __snd_cache = dict()
+ __snd_disabled = False
+
+-DATA_DIR = os.path.abspath(os.path.join(
+- os.path.dirname(sys.argv[ 0 ]), "data"))
++DATA_DIR = "@GENTOO_DATADIR@"
+
+
+ def Path(name, audio=False):