summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-04-11 00:22:59 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-04-11 00:22:59 +0000
commitaa602725dd1c02ce21da1ae41944205349d3aed4 (patch)
tree7c81a86e007778c3bf0f9dd1a074a23dce9cabf9 /games-arcade/skystreets
parentMarked stable on hppa. (Manifest recommit) (diff)
downloadgentoo-2-aa602725dd1c02ce21da1ae41944205349d3aed4.tar.gz
gentoo-2-aa602725dd1c02ce21da1ae41944205349d3aed4.tar.bz2
gentoo-2-aa602725dd1c02ce21da1ae41944205349d3aed4.zip
patch for allowing play of individual levels (bug #47441)
Diffstat (limited to 'games-arcade/skystreets')
-rw-r--r--games-arcade/skystreets/ChangeLog6
-rw-r--r--games-arcade/skystreets/files/levels.patch20
-rw-r--r--games-arcade/skystreets/skystreets-0.2.3.ebuild10
3 files changed, 33 insertions, 3 deletions
diff --git a/games-arcade/skystreets/ChangeLog b/games-arcade/skystreets/ChangeLog
index 91d356932e0b..5d7b9ebcd204 100644
--- a/games-arcade/skystreets/ChangeLog
+++ b/games-arcade/skystreets/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-arcade/skystreets
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/skystreets/ChangeLog,v 1.8 2004/03/31 13:54:41 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/skystreets/ChangeLog,v 1.9 2004/04/11 00:22:59 mr_bones_ Exp $
+
+ 10 Apr 2004; Michael Sterrett <mr_bones_@gentoo.org>
+ skystreets-0.2.3.ebuild, files/levels.patch:
+ patch for allowing play of individual levels (bug #47441)
31 Mar 2004; Daniel Ahlberg <aliz@gentoo.org> skystreets-0.2.3.ebuild:
Adding amd64 keyword, closing #45979.
diff --git a/games-arcade/skystreets/files/levels.patch b/games-arcade/skystreets/files/levels.patch
new file mode 100644
index 000000000000..c44b64a16295
--- /dev/null
+++ b/games-arcade/skystreets/files/levels.patch
@@ -0,0 +1,20 @@
+--- levels.cpp.orig 2004-04-10 17:12:38.000000000 -0700
++++ levels.cpp 2004-04-10 17:12:56.000000000 -0700
+@@ -45,11 +45,13 @@
+
+ bool Level::initialize(char *filename)
+ {
+-
+- strcpy(fname, basePath);
+- strcat(fname, filename);
++ strcpy(fname, filename);
+ data = fopen(fname, "r");
+-// printf("Attempting to load %s\n", fname
++ if (data == NULL) { //try the other path
++ strcpy(fname, basePath);
++ strcat(fname, filename);
++ data = fopen(fname, "r");
++ }
+ if (data == NULL) { //try the other path
+ printf("File not found; creating new\n");
+ maxFuel = 10000;
diff --git a/games-arcade/skystreets/skystreets-0.2.3.ebuild b/games-arcade/skystreets/skystreets-0.2.3.ebuild
index 08fcc0ec62c7..aabe85ddcaf5 100644
--- a/games-arcade/skystreets/skystreets-0.2.3.ebuild
+++ b/games-arcade/skystreets/skystreets-0.2.3.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/skystreets/skystreets-0.2.3.ebuild,v 1.2 2004/03/31 13:54:41 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/skystreets/skystreets-0.2.3.ebuild,v 1.3 2004/04/11 00:22:59 mr_bones_ Exp $
-inherit games
+inherit eutils games
DESCRIPTION="A clone of the old dos Skyroads game"
HOMEPAGE="http://skystreets.kaosfusion.com/"
@@ -17,6 +17,12 @@ DEPEND="virtual/opengl
media-libs/libsdl
media-libs/sdl-image"
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch "${FILESDIR}/levels.patch"
+}
+
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS BUGS CODE ChangeLog README TODO