summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-10-25 12:37:02 +0000
committerMike Frysinger <vapier@gentoo.org>2003-10-25 12:37:02 +0000
commit4fc37c80fbe4ce576f9d3f8fcff5ec5647bbc060 (patch)
treecb1be828119cc7e64df4a72d9e71effe175c8618 /games-arcade/yarsrevenge
parentmove kyra to dev-games (diff)
downloadgentoo-2-4fc37c80fbe4ce576f9d3f8fcff5ec5647bbc060.tar.gz
gentoo-2-4fc37c80fbe4ce576f9d3f8fcff5ec5647bbc060.tar.bz2
gentoo-2-4fc37c80fbe4ce576f9d3f8fcff5ec5647bbc060.zip
initial ebuild
Diffstat (limited to 'games-arcade/yarsrevenge')
-rw-r--r--games-arcade/yarsrevenge/ChangeLog8
-rw-r--r--games-arcade/yarsrevenge/files/0.98-gcc-typecast.patch39
-rw-r--r--games-arcade/yarsrevenge/files/digest-yarsrevenge-0.981
-rw-r--r--games-arcade/yarsrevenge/metadata.xml9
-rw-r--r--games-arcade/yarsrevenge/yarsrevenge-0.98.ebuild29
5 files changed, 86 insertions, 0 deletions
diff --git a/games-arcade/yarsrevenge/ChangeLog b/games-arcade/yarsrevenge/ChangeLog
new file mode 100644
index 000000000000..64a8894a8952
--- /dev/null
+++ b/games-arcade/yarsrevenge/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for games-arcade/yarsrevenge
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/yarsrevenge/ChangeLog,v 1.1 2003/10/25 12:37:02 vapier Exp $
+
+*yarsrevenge-0.98 (25 Oct 2003)
+
+ 25 Oct 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/games-arcade/yarsrevenge/files/0.98-gcc-typecast.patch b/games-arcade/yarsrevenge/files/0.98-gcc-typecast.patch
new file mode 100644
index 000000000000..dd63395b97ec
--- /dev/null
+++ b/games-arcade/yarsrevenge/files/0.98-gcc-typecast.patch
@@ -0,0 +1,39 @@
+diff -ur yar-0.98.orig/yar/sgw.cpp yar-0.98/yar/sgw.cpp
+--- yar-0.98.orig/yar/sgw.cpp 2003-10-25 08:19:02.127320176 -0400
++++ yar-0.98/yar/sgw.cpp 2003-10-25 08:34:36.068339560 -0400
+@@ -1054,7 +1054,7 @@
+ {
+ Uint8 *Audio = (Uint8 *)Data;
+ Audio = Audio + Position;
+- SDL_MixAudio(Stream,Audio,Qty, // If so, mix it in.
++ SDL_MixAudio((Uint8*)Stream,Audio,Qty, // If so, mix it in.
+ SDL_MIX_MAXVOLUME);
+ Position = Position + Qty;
+ }
+@@ -1106,7 +1106,7 @@
+ Wave.format,Wave.channels,Wave.freq,
+ AudioFmt.format,AudioFmt.channels,AudioFmt.freq);
+
+- Cvt.buf = malloc(Size * Cvt.len_mult); // Allocate memory for converted WAV
++ Cvt.buf = (Uint8 *)malloc(Size * Cvt.len_mult); // Allocate memory for converted WAV
+ if (Cvt.buf == NULL) SGWERROR();
+
+ memcpy(Cvt.buf,WaveData,Size); // Copy data in
+@@ -1130,7 +1130,7 @@
+ {
+ int Size = AudioFmt.freq * sLength / 1000;
+ SGWASSERT(AudioFmt.format = AUDIO_S16); // We must be using 16 bit signed here ?
+- Uint16 *Wave = malloc(Size*2); // Allocate a buffer for it
++ Uint16 *Wave = (Uint16 *)malloc(Size*2); // Allocate a buffer for it
+ CreateWave(Wave,Size,sPitch); // Create the wave
+ SDL_LockAudio(); // Copy data into structure
+ Data = Wave;
+@@ -1156,7 +1156,7 @@
+
+ void SGWAudioBeep::CreateWave(void *Data,int Size,int sPitch)
+ {
+- Uint16 *Wave = Data;
++ Uint16 *Wave = (Uint16 *)Data;
+ int PCount = 0;
+ int PValue = 32700;
+ int PMax = 0;
diff --git a/games-arcade/yarsrevenge/files/digest-yarsrevenge-0.98 b/games-arcade/yarsrevenge/files/digest-yarsrevenge-0.98
new file mode 100644
index 000000000000..12a05d114707
--- /dev/null
+++ b/games-arcade/yarsrevenge/files/digest-yarsrevenge-0.98
@@ -0,0 +1 @@
+MD5 4abfa7a9990e259e6a48f3f8bb3dbc6d yar-0.98.tar.gz 535308
diff --git a/games-arcade/yarsrevenge/metadata.xml b/games-arcade/yarsrevenge/metadata.xml
new file mode 100644
index 000000000000..d3d950bec086
--- /dev/null
+++ b/games-arcade/yarsrevenge/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription>
+A rather wierd shoot-em-up game that originated on the Atari 2600. It's more fun
+than it looks. Just released so might be tweaked.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/yarsrevenge/yarsrevenge-0.98.ebuild b/games-arcade/yarsrevenge/yarsrevenge-0.98.ebuild
new file mode 100644
index 000000000000..3196456a7da1
--- /dev/null
+++ b/games-arcade/yarsrevenge/yarsrevenge-0.98.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/yarsrevenge/yarsrevenge-0.98.ebuild,v 1.1 2003/10/25 12:37:02 vapier Exp $
+
+inherit games
+
+DESCRIPTION="remake of the Atari 2600 classic Yar's Revenge"
+HOMEPAGE="http://freshmeat.net/projects/yarsrevenge/"
+SRC_URI="http://www.autismuk.freeserve.co.uk/yar-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND="media-libs/libsdl"
+
+S=${WORKDIR}/yar-${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-gcc-typecast.patch
+}
+
+src_install() {
+ emake install DESTDIR=${D} || die
+ dodoc AUTHORS ChangeLog README TODO
+ prepgamesdirs
+}