summaryrefslogtreecommitdiff
path: root/games-kids/childsplay/files
diff options
context:
space:
mode:
Diffstat (limited to 'games-kids/childsplay/files')
-rw-r--r--games-kids/childsplay/files/childsplay4
-rw-r--r--games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch21
2 files changed, 25 insertions, 0 deletions
diff --git a/games-kids/childsplay/files/childsplay b/games-kids/childsplay/files/childsplay
new file mode 100644
index 000000000000..eccf016836d0
--- /dev/null
+++ b/games-kids/childsplay/files/childsplay
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -z "${LANGUAGE}" ] && LANGUAGE=en
+export LANGUAGE
+python GENTOO_DIR/childsplay.py "$@"
diff --git a/games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch b/games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch
new file mode 100644
index 000000000000..742e3e02ee3c
--- /dev/null
+++ b/games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch
@@ -0,0 +1,21 @@
+--- letters-trans.py.old 2010-04-26 12:13:12.000000000 +0200
++++ letters-trans.py 2010-04-26 12:13:49.000000000 +0200
+@@ -39,7 +39,7 @@
+ import os,fnmatch,operator,sys,locale
+ from CPConstants import ASSETMLROOT
+
+-if os.environ['USER'] != 'root':
++if os.environ['LOGNAME'] != 'root':
+ print "\nOnly root can use this script, sorry.\n"
+ sys.exit(1)
+
+@@ -69,7 +69,8 @@
+ sys.exit(0)
+
+ # get description names from memory assetml, these are the words used by letters.py
+-parser = pyassetml.AssetmlParser('childsplay/memory-136x136/memory-136x136.assetml')
++assetmlfile = os.path.join(cwd,'memory-136x136.assetml')
++parser = pyassetml.AssetmlParser(assetmlfile)
+ loc = parser.get_locale()# get current locale setting, only the first two chars !!
+ wlist_org = parser.find_names((('file','.'),('description',"en")))
+ wlist = parser.find_names((('file','.'),('description',loc)))