[SM-Commit] GIT changes to devel-gnome-2.30 grimoire by Vasil Yonkov (76319c6bca5635ae15673164f5d854a94e5837cd)
Vasil Yonkov
scm at sourcemage.org
Mon Mar 22 09:44:44 EDT 2010
GIT changes to devel-gnome-2.30 grimoire by Vasil Yonkov <spirtbrat at sourcemage.org>:
gnome2-libs/gnome-games2/BUILD | 8 +++++++-
gnome2-libs/gnome-games2/CONFIGURE | 14 ++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
New commits:
commit 76319c6bca5635ae15673164f5d854a94e5837cd
Author: Vasil Yonkov <spirtbrat at sourcemage.org>
Commit: Vasil Yonkov <spirtbrat at sourcemage.org>
gnome-games2: added option for picking games to build
diff --git a/gnome2-libs/gnome-games2/BUILD b/gnome2-libs/gnome-games2/BUILD
index dc0bf1a..b3254b0 100755
--- a/gnome2-libs/gnome-games2/BUILD
+++ b/gnome2-libs/gnome-games2/BUILD
@@ -1,4 +1,10 @@
+if [[ $GGAMES_PRESET == pick ]]; then
+ OPTS="--enable-games=$GGAMES_LIST $OPTS"
+else
+ OPTS="--enable-games=$GGAMES_PRESET $OPTS"
+fi &&
+
OPTS="--with-scores-group=games --with-scores-user=games $OPTS" &&
OPTS="$GGAMES_ANL $OPTS" &&
-default_build
\ No newline at end of file
+default_build
diff --git a/gnome2-libs/gnome-games2/CONFIGURE b/gnome2-libs/gnome-games2/CONFIGURE
index 7ccf480..c2a9228 100755
--- a/gnome2-libs/gnome-games2/CONFIGURE
+++ b/gnome2-libs/gnome-games2/CONFIGURE
@@ -1,4 +1,18 @@
# remove old sound choices, not supported anymore
persistent_remove GGAMES_SOUND GGAMES_SNDLIB
+config_query_list GGAMES_PRESET \
+ "Which games would you like to build?" \
+ all \
+ pick &&
+
+if [[ $GGAMES_PRESET == pick ]]; then
+ . $GRIMOIRE/config_query_multi.function &&
+ AVAILABLE_GAMES="aisleriot quadrapassel gnect gnomine swell-foop mahjongg gtali gnotravex gnotski glines iagno glchess gnobots2 gnibbles gnome-sudoku lightsoff"
+ config_query_multi GGAMES_LIST \
+ "Which games would you like to build?" \
+ $AVAILABLE_GAMES &&
+ GGAMES_LIST="${GGAMES_LIST//\ /,}"
+fi &&
+
config_query HISCORES "Backup and restore high scores?" y
More information about the SM-Commit
mailing list