[SM-Commit] GIT changes to master games grimoire by Pol Vinogradov (8a0a8ee897d0c2dd92fb4f9faf252e6f81ece3fc)

Pol Vinogradov scm at mail.sourcemage.org
Sat Aug 12 15:51:07 EDT 2006


GIT changes to master games grimoire by Pol Vinogradov <vin.public at gmail.com>:

 ChangeLog                                    |    4 +
 games-puzzles/4stattack/4stattack            |    3 +
 games-puzzles/4stattack/4stattack-2.1.4.diff |   55 +++++++++++++++++++++++++++
 games-puzzles/4stattack/BUILD                |    1 
 games-puzzles/4stattack/DEPENDS              |    1 
 games-puzzles/4stattack/DETAILS              |   15 +++++++
 games-puzzles/4stattack/HISTORY              |    3 +
 games-puzzles/4stattack/INSTALL              |    3 +
 games-puzzles/4stattack/PRE_BUILD            |    4 +
 games-puzzles/einstein/HISTORY               |    2 
 10 files changed, 90 insertions(+), 1 deletion(-)

New commits:
commit 8a0a8ee897d0c2dd92fb4f9faf252e6f81ece3fc
Author: Pol Vinogradov <vin.public at gmail.com>
Commit: Pol Vinogradov <vin.public at gmail.com>

    games-puzzles/4stattack: new spell, Connect-4 game, single or network multiplayer
    games-puzzles/edinstein/HISTORY: convert wrong spaces to tab

diff --git a/ChangeLog b/ChangeLog
index 472b7d5..9bfa0d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-13 Pol Vinogradov <vin.public at gmail.com>
+        * games-puzzles/4stattack: new spell, Connect-4 game, single or
+	  network multiplayer
+
 2006-08-12 Pol Vinogradov <vin.public at gmail.com>
 	* games-puzzles/einstein: Einstein's famous puzzle game
 
diff --git a/games-puzzles/4stattack/4stattack b/games-puzzles/4stattack/4stattack
new file mode 100644
index 0000000..076e0e3
--- /dev/null
+++ b/games-puzzles/4stattack/4stattack
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd SMGL_DIR
+exec /usr/bin/env python SMGL_DIR/4stattack.py "${@}"
diff --git a/games-puzzles/4stattack/4stattack-2.1.4.diff b/games-puzzles/4stattack/4stattack-2.1.4.diff
new file mode 100644
index 0000000..a6b7799
--- /dev/null
+++ b/games-puzzles/4stattack/4stattack-2.1.4.diff
@@ -0,0 +1,55 @@
+--- 4stAttack-2.1.4/4stattack.py	2002-10-01 07:38:03.000000000 -0700
++++ new/4stattack.py	2003-07-24 22:11:34.000000000 -0700
+@@ -28,6 +28,9 @@
+ images	= None
+ screen	= None
+ 
++f = os.path.expanduser('~/.4stattackrc')
++if not os.path.exists(f):
++    os.system('cp /usr/share/games/4stattack/settings.ini %s' % f)
+ 
+ def playMusic(datadir):
+ 	if pygame.mixer.get_init():
+@@ -49,11 +52,11 @@
+ 		screen = pygame.display.set_mode(resolution, FULLSCREEN)
+ 	else:
+ 		screen = pygame.display.set_mode(resolution)
+-	
++
+ 	pygame.display.set_caption('4st Attack 2')
+ 	pygame.mouse.set_visible(1)
+ 	pygame.display.init()
+-	
++
+ 	pygame.display.Info()
+ 	return screen
+ 
+@@ -72,21 +75,21 @@
+ 	pygame.quit()
+ 	os._exit(0)
+ 
+-def main():                    
++def main():
+ 	options = getOptions(sys.argv)
+-	
++
+ 	if options.has_key('-ini'):
+ 		ini_settings = IniSettings(options['-ini'])
+ 	else:
+-		ini_settings = IniSettings('settings.ini')
+-	
++		ini_settings = IniSettings(os.path.expanduser('~/.4stattackrc'))
++
+ 	settings = ini_settings.settings
+-	
++
+ 	datadir = settings['path']['data']
+-	
++
+ 	if settings['sound']['music'] == 'yes':
+ 		playMusic(datadir)
+-	
++
+ 	resolution = settings['video']['resolution']
+ 	res = string.split(resolution, 'x')
+ 	screen = setDisplay((int(res[0]), int(res[1])), settings['video']['fullscreen'])
diff --git a/games-puzzles/4stattack/BUILD b/games-puzzles/4stattack/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/games-puzzles/4stattack/BUILD
@@ -0,0 +1 @@
+true
diff --git a/games-puzzles/4stattack/DEPENDS b/games-puzzles/4stattack/DEPENDS
new file mode 100755
index 0000000..8cf2774
--- /dev/null
+++ b/games-puzzles/4stattack/DEPENDS
@@ -0,0 +1 @@
+depends  pygame
diff --git a/games-puzzles/4stattack/DETAILS b/games-puzzles/4stattack/DETAILS
new file mode 100755
index 0000000..bca4e03
--- /dev/null
+++ b/games-puzzles/4stattack/DETAILS
@@ -0,0 +1,15 @@
+           SPELL=4stattack
+         VERSION=2.1.4
+          SOURCE=4stAttack-$VERSION.tar.gz
+     SOURCE_HASH=sha512:4819c0915bfe47bb965ea39d49fa007fb18cfa965b15e5e72a4b0ac3be8a03c616d9438c8dedd960ee257e44b48f98f75ced6bed5bfc77f3366328c797b30f3c
+   SOURCE_URL[0]=$SOURCEFORGE_URL/forcedattack/$SOURCE
+SOURCE_DIRECTORY=${BUILD_DIRECTORY}/4stAttack-${VERSION}
+        WEB_SITE=http://forcedattack.sourceforge.net/
+         ENTERED=20060813
+      LICENSE[0]=GPL
+           SHORT="Connect-4 game, single or network multiplayer"
+cat << EOF
+4st Attack is a game in which you have to try to out-smart your opponent.
+The goal of the game is to connect four of stones in a straight line. This
+can be horizontaly, vertically and even diagonnally.
+EOF
diff --git a/games-puzzles/4stattack/HISTORY b/games-puzzles/4stattack/HISTORY
new file mode 100644
index 0000000..f0e02b4
--- /dev/null
+++ b/games-puzzles/4stattack/HISTORY
@@ -0,0 +1,3 @@
+2006-08-13 Pol Vinogradov <vin.public at gmail.com>
+	* BUILD, DEPENDS, DETAILS, INSTALL, PRE_BUILD, 4stattack,
+	  4stattack-2.1.4.diff: created spell
diff --git a/games-puzzles/4stattack/INSTALL b/games-puzzles/4stattack/INSTALL
new file mode 100755
index 0000000..7c0501a
--- /dev/null
+++ b/games-puzzles/4stattack/INSTALL
@@ -0,0 +1,3 @@
+install ${SCRIPT_DIRECTORY}/${SPELL} ${INSTALL_ROOT}/usr/games/${SPELL}  &&
+sedit "s:SMGL_DIR:${TRACK_ROOT}/usr/share/games/${SPELL}:" ${TRACK_ROOT}/usr/games/${SPELL}  &&
+cp -r * ${INSTALL_ROOT}/usr/share/games/${SPELL}
diff --git a/games-puzzles/4stattack/PRE_BUILD b/games-puzzles/4stattack/PRE_BUILD
new file mode 100755
index 0000000..f08eb5f
--- /dev/null
+++ b/games-puzzles/4stattack/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build        &&
+cd  ${BUILD_DIRECTORY}   &&
+patch -p0 < ${SCRIPT_DIRECTORY}/${SPELL}-${VERSION}.diff  &&
+cd  ${SOURCE_DIRECTORY}
diff --git a/games-puzzles/einstein/HISTORY b/games-puzzles/einstein/HISTORY
index abaef75..b26e460 100644
--- a/games-puzzles/einstein/HISTORY
+++ b/games-puzzles/einstein/HISTORY
@@ -1,2 +1,2 @@
 2006-08-12 Pol Vinogradov <vin.public at gmail.com>
-       * BUILD, DEPENDS, DETAILS, INSTALL, PRE_BUILD: created spell
+	* BUILD, DEPENDS, DETAILS, INSTALL, PRE_BUILD: created spell



More information about the SM-Commit mailing list