[Lunar-commits] r24695 - moonbase/trunk/games/pysol

Florin Braescu florin at lunar-linux.org
Tue Jun 5 09:39:13 CEST 2007


Author: florin
Date: 2007-06-05 09:39:13 +0200 (Tue, 05 Jun 2007)
New Revision: 24695

Added:
   moonbase/trunk/games/pysol/PRE_BUILD
   moonbase/trunk/games/pysol/pysol_kludge.sh
Log:
oops, i forgot to add these. sorry.


Added: moonbase/trunk/games/pysol/PRE_BUILD
===================================================================
--- moonbase/trunk/games/pysol/PRE_BUILD	                        (rev 0)
+++ moonbase/trunk/games/pysol/PRE_BUILD	2007-06-05 07:39:13 UTC (rev 24695)
@@ -0,0 +1,4 @@
+
+mk_source_dir $SOURCE_DIRECTORY		&&
+unpack $SOURCE				&&
+unpack $SOURCE2

Added: moonbase/trunk/games/pysol/pysol_kludge.sh
===================================================================
--- moonbase/trunk/games/pysol/pysol_kludge.sh	                        (rev 0)
+++ moonbase/trunk/games/pysol/pysol_kludge.sh	2007-06-05 07:39:13 UTC (rev 24695)
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# once upon a time there was a pysol_compile.sh file available for download
+# from http://www.gophernet.org/projects/pysol_compile.sh, and this tweaked
+# the source files and created a single compiled python file that could be
+# used instead of installing the sources properly.
+#
+# this script attempts to do even less. tweak the source files as needed.
+
+# make failure to load the soundserver non-fatal
+# whitespace is important!
+sed '/^import pysolsoundserver/s/.*/try:\
+    import pysolsoundserver\
+except ImportError:\
+    pysolsoundserver = None/' < pysolaudio.py > pysolaudio.py.tmp
+mv pysolaudio.py.tmp pysolaudio.py
+
+# make sure it doesn't try to load the non-existant freecellsolver
+sed '/^class FreeCellSolverWrapper:/s/.*/pysolfreecellsolver = None\
+&/' < hint.py > hint.py.tmp
+mv hint.py.tmp hint.py
+
+# I've tweaked the Makefile to install the sources and to create an even
+# more # minimal pysol calling script than the original...



More information about the Lunar-commits mailing list