summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-05-09 12:29:33 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-05-09 12:29:33 +0000
commit6e2c5a0f7432b6cca957a61c8f2adfa265a8445a (patch)
tree04e16f6aad1f3f7d3e0c2f24e1b14d1f29ec6841 /games-arcade/commandergenius/files
parentadd ~arm, bug #462506 (diff)
downloadgentoo-2-6e2c5a0f7432b6cca957a61c8f2adfa265a8445a.tar.gz
gentoo-2-6e2c5a0f7432b6cca957a61c8f2adfa265a8445a.tar.bz2
gentoo-2-6e2c5a0f7432b6cca957a61c8f2adfa265a8445a.zip
initial import wrt #411385
(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-arcade/commandergenius/files')
-rw-r--r--games-arcade/commandergenius/files/commandergenius-1.4.2-build.patch23
-rw-r--r--games-arcade/commandergenius/files/commandergenius-wrapper18
2 files changed, 41 insertions, 0 deletions
diff --git a/games-arcade/commandergenius/files/commandergenius-1.4.2-build.patch b/games-arcade/commandergenius/files/commandergenius-1.4.2-build.patch
new file mode 100644
index 000000000000..46d2c1b1ad37
--- /dev/null
+++ b/games-arcade/commandergenius/files/commandergenius-1.4.2-build.patch
@@ -0,0 +1,23 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Thu May 9 11:51:38 UTC 2013
+Subject: fix build
+
+--- CGenius-1.4.2-Release-Source/install.cmake
++++ CGenius-1.4.2-Release-Source/install.cmake
+@@ -20,11 +20,13 @@
+ DESTINATION ${APPDIR})
+
+ # This will copy the resources files to the proper directory
+-INSTALL(DIRECTORY vfsroot/
+- DESTINATION ${DATADIR})
++IF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot")
++ INSTALL(DIRECTORY vfsroot/
++ DESTINATION ${DATADIR})
++ENDIF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot")
+
+ # This will copy the readme file.
+-INSTALL(FILES README
++INSTALL(FILES "${CMAKE_BINARY_DIR}/README"
+ DESTINATION ${DOCDIR})
+
+ # This will copy the readme file.
diff --git a/games-arcade/commandergenius/files/commandergenius-wrapper b/games-arcade/commandergenius/files/commandergenius-wrapper
new file mode 100644
index 000000000000..0fa5243a5df0
--- /dev/null
+++ b/games-arcade/commandergenius/files/commandergenius-wrapper
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# CommanderGenius by default searches pwd for keen data which can cause
+# massive load/lag depending on which dir you are currently in.
+# This wrapper cd's into ~/.CommanderGenius unless you pass a directory
+# on the command line which is used as additional search path then.
+#
+# use: commandergenius [path-to-keen-dir]
+
+if [ -z $1 ] ; then
+ SEARCHDIR=~/.CommanderGenius
+else
+ SEARCHDIR="$1"
+fi
+
+cd ${SEARCHDIR}
+
+exec CommanderGenius "$@"