summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 04:59:58 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 04:59:58 +0000
commit12c9973915d478c72a31e83a2dcd74a9d85f9329 (patch)
treed37cf05165786ebbb579f87068d6e4ac5c678a32 /games-roguelike/falconseye
parentrepoman: fix leading whitespace (diff)
downloadgentoo-2-12c9973915d478c72a31e83a2dcd74a9d85f9329.tar.gz
gentoo-2-12c9973915d478c72a31e83a2dcd74a9d85f9329.tar.bz2
gentoo-2-12c9973915d478c72a31e83a2dcd74a9d85f9329.zip
hello rogues
Diffstat (limited to 'games-roguelike/falconseye')
-rw-r--r--games-roguelike/falconseye/ChangeLog38
-rw-r--r--games-roguelike/falconseye/Manifest6
-rw-r--r--games-roguelike/falconseye/falconseye-1.9.3-r1.ebuild58
-rw-r--r--games-roguelike/falconseye/files/1.9.3-gzip.diff19
-rw-r--r--games-roguelike/falconseye/files/1.9.3-midiplayer.diff12
-rw-r--r--games-roguelike/falconseye/files/1.9.3-musicsavefix.diff58
-rw-r--r--games-roguelike/falconseye/files/digest-falconseye-1.9.3-r11
7 files changed, 192 insertions, 0 deletions
diff --git a/games-roguelike/falconseye/ChangeLog b/games-roguelike/falconseye/ChangeLog
new file mode 100644
index 000000000000..d5a99b07896d
--- /dev/null
+++ b/games-roguelike/falconseye/ChangeLog
@@ -0,0 +1,38 @@
+# ChangeLog for app-games/falconseye
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/falconseye/ChangeLog,v 1.1 2003/09/10 04:59:58 vapier Exp $
+
+ 02 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org>
+ falconseye-1.9.3-r1.ebuild:
+ Fixed to use mirror://sourceforge
+
+*falconseye-1.9.3-r1 (11 Jul 2002)
+
+ 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> falconseye-1.9.3.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+ 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> falconseye-1.9.3-r1.ebuild :
+ Added KEYWORDS.
+
+ 11 Jul 2002; Dan <overridex@punkass.com> falconseye-1.9.3.ebuild-r1:
+ Changed the default config to point at /usr/bin/timidity rather
+ than /usr/local/bin/timidity since that's where it gets installed.
+
+ Enabled some defines to use gzip for saved game compression (the
+ ebuild down has a runtime dependency for gzip).
+
+ Fixes a problem with some systems (hardware related?) where the
+ music player program would switch songs too quickly leaving <defunct> processes,
+ after a few of these built up it would cause saving games to fail, this will be
+ included in the next falconseye upstream release whenever that is.
+
+ Added support to the /usr/bin/falconseye script to look for
+ options in ~/.falconseyerc, and if it doesn't exist create it with some basic
+ options.
+
+
+*falconseye-1.9.3 (18 Feb 2002)
+
+ 18 Feb 2002; F.Meyndert <m0rpheus@gentoo.org> falconseye-1.9.3.ebuild,
+
+ New ebuild for falconseye, a graphical nethack version.
diff --git a/games-roguelike/falconseye/Manifest b/games-roguelike/falconseye/Manifest
new file mode 100644
index 000000000000..d62f8e7cf48a
--- /dev/null
+++ b/games-roguelike/falconseye/Manifest
@@ -0,0 +1,6 @@
+MD5 71a370c3a98164282208f5a5ed3a4bbf ChangeLog 1555
+MD5 77137d26c8d8a2da117ac1f1a5b10293 falconseye-1.9.3-r1.ebuild 1752
+MD5 e67fd1b356a80628b1952bf2486f3d6f files/1.9.3-gzip.diff 941
+MD5 3d5c71f44784a2dec8c8b2b59cc68621 files/1.9.3-midiplayer.diff 608
+MD5 67cd326fbf752c010ddbf51784fd0d5a files/1.9.3-musicsavefix.diff 2287
+MD5 318f6a0cede519e438e67777018e7477 files/digest-falconseye-1.9.3-r1 76
diff --git a/games-roguelike/falconseye/falconseye-1.9.3-r1.ebuild b/games-roguelike/falconseye/falconseye-1.9.3-r1.ebuild
new file mode 100644
index 000000000000..1d3000019820
--- /dev/null
+++ b/games-roguelike/falconseye/falconseye-1.9.3-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/falconseye/falconseye-1.9.3-r1.ebuild,v 1.1 2003/09/10 04:59:58 vapier Exp $
+
+DESCRIPTION="A graphical version of nethack"
+SRC_URI="mirror://sourceforge/falconseye/nethack_source_331_jtp_193.zip"
+HOMEPAGE="http://falconseye.sourceforge.net/"
+
+KEYWORDS="x86 ppc"
+LICENSE="nethack"
+SLOT="0"
+
+DEPEND="media-libs/libsdl
+ dev-util/yacc
+ app-arch/unzip"
+RDEPEND="media-libs/libsdl
+ sys-apps/gzip
+ media-sound/timidity++"
+
+src_unpack() {
+ unpack ${A}
+ patch -p1 < ${FILESDIR}/${PV}-gzip.diff || die
+ patch -p1 < ${FILESDIR}/${PV}-midiplayer.diff || die
+ patch -p1 < ${FILESDIR}/${PV}-musicsavefix.diff || die
+}
+
+src_compile() {
+ cd ${WORKDIR}/sys/unix
+ source setup.sh
+ cd ../../
+ make PREFIX=/usr GAME=falconseye GAMEDIR=/usr/share/falconseye SHELLDIR=/usr/bin || die
+ cd doc
+ make || die
+}
+
+src_install() {
+ cd ${WORKDIR}
+ make PREFIX=${D}/usr GAME=falconseye GAMEDIR=${D}/usr/share/falconseye SHELLDIR=${D}/usr/bin install
+ # Have to remake the shell script with real path information
+ sed -e 's;/usr/games/lib/nethackdir;/usr/share/falconseye;' \
+ -e 's;HACKDIR/nethack;HACKDIR/falconseye;' \
+ -e '7a\
+ if [ -f ${HOME}/.falconseyerc ]; then\
+ export NETHACKOPTIONS=${HOME}/.falconseyerc;\
+ else\
+ echo 'OPTIONS=noautopickup,toptenwin,showexp,rest_on_space' > ${HOME}/.falconseyerc;\
+ export NETHACKOPTIONS=${HOME}/.falconseyerc;\
+ fi' \
+ < ${WORKDIR}/sys/unix/nethack.sh \
+ > ${D}/usr/bin/falconseye
+ cd doc
+ doman *.6
+}
+
+pkg_postinst() {
+ einfo "Falconseye now supports a ~/.falconseyerc file to set options."
+ einfo "Click ? then 'List of game options' in falconseye for more info."
+}
diff --git a/games-roguelike/falconseye/files/1.9.3-gzip.diff b/games-roguelike/falconseye/files/1.9.3-gzip.diff
new file mode 100644
index 000000000000..ad60c987677d
--- /dev/null
+++ b/games-roguelike/falconseye/files/1.9.3-gzip.diff
@@ -0,0 +1,19 @@
+diff -Naur falconseye-1.9.3/include/config.h falconseye-1.9.3/include/config.h
+--- falconseye-1.9.3/include/config.h 2001-07-03 19:56:52.000000000 -0400
++++ falconseye-1.9.3/include/config.h 2002-07-01 22:00:21.000000000 -0400
+@@ -187,11 +187,11 @@
+
+ #ifdef UNIX
+ /* path and file name extension for compression program */
+-#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
+-#define COMPRESS_EXTENSION ".Z" /* compress's extension */
++/* #define COMPRESS "/usr/bin/compress" */ /* Lempel-Ziv compression */
++/* #define COMPRESS_EXTENSION ".Z" */ /* compress's extension */
+ /* An example of one alternative you might want to use: */
+-/* #define COMPRESS "/usr/local/bin/gzip" */ /* FSF gzip compression */
+-/* #define COMPRESS_EXTENSION ".gz" */ /* normal gzip extension */
++#define COMPRESS "/bin/gzip" /* FSF gzip compression */
++#define COMPRESS_EXTENSION ".gz" /* normal gzip extension */
+ #endif
+
+ #ifndef COMPRESS
diff --git a/games-roguelike/falconseye/files/1.9.3-midiplayer.diff b/games-roguelike/falconseye/files/1.9.3-midiplayer.diff
new file mode 100644
index 000000000000..ddba88cd62e8
--- /dev/null
+++ b/games-roguelike/falconseye/files/1.9.3-midiplayer.diff
@@ -0,0 +1,12 @@
+diff -Naur falconseye-1.9.3/win/jtp/gamedata/config/jtp_opts.txt falconseye-1.9.3/win/jtp/gamedata/config/jtp_opts.txt
+--- falconseye-1.9.3/win/jtp/gamedata/config/jtp_opts.txt 2001-06-24 19:57:26.000000000 -0400
++++ falconseye-1.9.3/win/jtp/gamedata/config/jtp_opts.txt 2002-07-01 22:00:19.000000000 -0400
+@@ -49,7 +49,7 @@
+ % files. You can also give your own command; use %s in place of the
+ % filename. Please give the full path to the player binary.
+ %
+-linux_midi_player=/usr/local/bin/timidity -idqq %s
++linux_midi_player=/usr/bin/timidity -idqq -A 30 %s
+ %linux_midi_player=/usr/bin/playmidi %s
+
+
diff --git a/games-roguelike/falconseye/files/1.9.3-musicsavefix.diff b/games-roguelike/falconseye/files/1.9.3-musicsavefix.diff
new file mode 100644
index 000000000000..217a99b96682
--- /dev/null
+++ b/games-roguelike/falconseye/files/1.9.3-musicsavefix.diff
@@ -0,0 +1,58 @@
+diff -Naur falconseye-1.9.3/win/jtp/jtp_sdl.c falconseye-1.9.3.over/win/jtp/jtp_sdl.c
+--- falconseye-1.9.3/win/jtp/jtp_sdl.c 2001-07-02 08:05:50.000000000 -0400
++++ falconseye-1.9.3.over/win/jtp/jtp_sdl.c 2002-07-01 22:00:19.000000000 -0400
+@@ -131,6 +131,7 @@
+ {
+ if (jtp_sdl_music_player_pid > 0)
+ kill(jtp_sdl_music_player_pid, SIGKILL);
++ waitpid(jtp_sdl_music_player_pid, NULL, 0);
+ jtp_sdl_music_player_pid = -1;
+ }
+ }
+@@ -579,28 +580,32 @@
+ jtp_sdl_audio_wanted.userdata = NULL;
+
+ /* Open the audio device, forcing the desired format */
++ /* Make it so if opening audio device fails, just don't play audio. - Jonathan Hseu */
+ if ( SDL_OpenAudio(&jtp_sdl_audio_wanted, NULL) < 0 )
+ {
+ jtp_SDLWriteLogMessage(JTP_SDL_LOG_ERROR, "[jtp_sdl.c/jtp_SDLEnterGraphicMode/Check1] ERROR: Could not initialize SDL audio device\n");
+ jtp_SDLWriteLogMessage(JTP_SDL_LOG_ERROR, "[SDL Error] ");
+ jtp_SDLWriteLogMessage(JTP_SDL_LOG_ERROR, SDL_GetError());
+ jtp_SDLWriteLogMessage(JTP_SDL_LOG_ERROR, "\n");
+- exit(1);
+- }
+- jtp_sdl_audio_chunk = (Uint8 *)malloc(JTP_SDL_SOUND_BUFFER_SIZE*sizeof(Uint8));
+- jtp_sdl_audio_len = 30000;
+- jtp_sdl_audio_pos = NULL;
+-
+- /* Create the sound cache */
+- jtp_sdl_cached_sounds = (jtp_sdl_cached_sound *)malloc(JTP_SDL_MAX_CACHED_SOUNDS*sizeof(jtp_sdl_cached_sound));
+- for (i = 0; i < JTP_SDL_MAX_CACHED_SOUNDS; i++)
+- {
+- jtp_sdl_cached_sounds[i].length = 0;
+- jtp_sdl_cached_sounds[i].samples = NULL;
+- jtp_sdl_cached_sounds[i].filename = NULL;
++ jtp_play_effects = 0;
++// exit(1);
+ }
+-
++ else
++ {
++ jtp_sdl_audio_chunk = (Uint8 *)malloc(JTP_SDL_SOUND_BUFFER_SIZE*sizeof(Uint8));
++ jtp_sdl_audio_len = 30000;
++ jtp_sdl_audio_pos = NULL;
++
++ /* Create the sound cache */
++ jtp_sdl_cached_sounds = (jtp_sdl_cached_sound *)malloc(JTP_SDL_MAX_CACHED_SOUNDS*sizeof(jtp_sdl_cached_sound));
++ for (i = 0; i < JTP_SDL_MAX_CACHED_SOUNDS; i++)
++ {
++ jtp_sdl_cached_sounds[i].length = 0;
++ jtp_sdl_cached_sounds[i].samples = NULL;
++ jtp_sdl_cached_sounds[i].filename = NULL;
++ }
+ /* SDL_PauseAudio(0); */ /* Start playing sounds */
++ }
+ }
+
+ if (jtp_play_music)
diff --git a/games-roguelike/falconseye/files/digest-falconseye-1.9.3-r1 b/games-roguelike/falconseye/files/digest-falconseye-1.9.3-r1
new file mode 100644
index 000000000000..e2ee4abe25e7
--- /dev/null
+++ b/games-roguelike/falconseye/files/digest-falconseye-1.9.3-r1
@@ -0,0 +1 @@
+MD5 764f31f32d4ee39ba809f672a86c08ae nethack_source_331_jtp_193.zip 8405675