summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Jezak <josejx@gentoo.org>2004-11-09 06:56:58 +0000
committerJoseph Jezak <josejx@gentoo.org>2004-11-09 06:56:58 +0000
commit14bb2cf2e6bab67afa5d4d23d0a5a7c3b97be032 (patch)
tree9e9e6b3dc4d267477a0a45f8631db1325194261b /games-arcade/kajaani-kombat
parentAdded ppc stable. (Manifest recommit) (diff)
downloadgentoo-2-14bb2cf2e6bab67afa5d4d23d0a5a7c3b97be032.tar.gz
gentoo-2-14bb2cf2e6bab67afa5d4d23d0a5a7c3b97be032.tar.bz2
gentoo-2-14bb2cf2e6bab67afa5d4d23d0a5a7c3b97be032.zip
Fixed compile problem with gcc 3.4
Diffstat (limited to 'games-arcade/kajaani-kombat')
-rw-r--r--games-arcade/kajaani-kombat/ChangeLog6
-rw-r--r--games-arcade/kajaani-kombat/files/0.4-gcc-3.4.patch13
-rw-r--r--games-arcade/kajaani-kombat/kajaani-kombat-0.4.ebuild3
3 files changed, 20 insertions, 2 deletions
diff --git a/games-arcade/kajaani-kombat/ChangeLog b/games-arcade/kajaani-kombat/ChangeLog
index a006c3480764..ff6769190107 100644
--- a/games-arcade/kajaani-kombat/ChangeLog
+++ b/games-arcade/kajaani-kombat/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-arcade/kajaani-kombat
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/kajaani-kombat/ChangeLog,v 1.3 2004/06/24 22:06:25 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/kajaani-kombat/ChangeLog,v 1.4 2004/11/09 06:56:58 josejx Exp $
+
+ 09 Nov 2004; Joseph Jezak <josejx@gentoo.org> +files/0.4-gcc-3.4.patch,
+ kajaani-kombat-0.4.ebuild:
+ Fixed compilation with gcc 3.4
06 Apr 2004; David Holm <dholm@gentoo.org> kajaani-kombat-0.4.ebuild:
Added to ~ppc.
diff --git a/games-arcade/kajaani-kombat/files/0.4-gcc-3.4.patch b/games-arcade/kajaani-kombat/files/0.4-gcc-3.4.patch
new file mode 100644
index 000000000000..b3fa3616cef4
--- /dev/null
+++ b/games-arcade/kajaani-kombat/files/0.4-gcc-3.4.patch
@@ -0,0 +1,13 @@
+--- particle_efects.cpp.old 2004-11-06 05:04:57.072297176 +0000
++++ particle_efects.cpp 2004-11-06 05:56:37.981887264 +0000
+@@ -220,7 +220,9 @@
+ : game_obj (_center, OWNER_NOONE)
+ {
+ num_particles = _num_particles;
+- ptc = new particle[num_particles](_center);
++ ptc = new particle[num_particles];
++ for (int i=0;i<num_particles;i++)
++ ptc[i] = (_center);
+ }
+
+ particle_efect::~particle_efect()
diff --git a/games-arcade/kajaani-kombat/kajaani-kombat-0.4.ebuild b/games-arcade/kajaani-kombat/kajaani-kombat-0.4.ebuild
index d2814a5dac00..06efe171f6ef 100644
--- a/games-arcade/kajaani-kombat/kajaani-kombat-0.4.ebuild
+++ b/games-arcade/kajaani-kombat/kajaani-kombat-0.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/kajaani-kombat/kajaani-kombat-0.4.ebuild,v 1.4 2004/06/24 22:06:25 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/kajaani-kombat/kajaani-kombat-0.4.ebuild,v 1.5 2004/11/09 06:56:58 josejx Exp $
inherit eutils games
@@ -30,6 +30,7 @@ src_unpack() {
sed -i \
-e "/^CXXFLAGS/ s:-Wall:${CXXFLAGS}:" Makefile \
|| die "sed Makefile failed"
+ epatch ${FILESDIR}/${PV}-gcc-3.4.patch
}
src_install() {