diff options
Diffstat (limited to 'games-puzzle/4stattack/files')
-rw-r--r-- | games-puzzle/4stattack/files/4stattack | 3 | ||||
-rw-r--r-- | games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff | 55 | ||||
-rw-r--r-- | games-puzzle/4stattack/files/digest-4stattack-2.1.4 | 1 |
3 files changed, 59 insertions, 0 deletions
diff --git a/games-puzzle/4stattack/files/4stattack b/games-puzzle/4stattack/files/4stattack new file mode 100644 index 000000000000..c0b761b3b44c --- /dev/null +++ b/games-puzzle/4stattack/files/4stattack @@ -0,0 +1,3 @@ +#!/bin/sh +cd GENTOO_DIR +exec /usr/bin/env python GENTOO_DIR/4stattack.py "${@}" diff --git a/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff b/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.diff new file mode 100644 index 000000000000..a6b77993dc00 --- /dev/null +++ b/games-puzzle/4stattack/files/4stattack-2.1.4-gentoo.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-puzzle/4stattack/files/digest-4stattack-2.1.4 b/games-puzzle/4stattack/files/digest-4stattack-2.1.4 new file mode 100644 index 000000000000..ba5d8878f826 --- /dev/null +++ b/games-puzzle/4stattack/files/digest-4stattack-2.1.4 @@ -0,0 +1 @@ +MD5 72a6d85d4218e938c043a6e5f0074e1b 4stAttack-2.1.4.tar.gz 1828247 |