Fixed compile problem with gcc 3.4
authorJoseph Jezak <josejx@gentoo.org>
Tue, 9 Nov 2004 06:56:58 +0000 (06:56 +0000)
committerJoseph Jezak <josejx@gentoo.org>
Tue, 9 Nov 2004 06:56:58 +0000 (06:56 +0000)
games-arcade/kajaani-kombat/ChangeLog
games-arcade/kajaani-kombat/Manifest
games-arcade/kajaani-kombat/files/0.4-gcc-3.4.patch [new file with mode: 0644]
games-arcade/kajaani-kombat/kajaani-kombat-0.4.ebuild

index a006c34807646d72464af68ccac1ccad62125b70..ff67691901076af379a3221e015239c2bc0003e3 100644 (file)
@@ -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.
index aaffce00108a9bf2f30fe64455c1b484688dbc65..118ef03c5d434f2beda174ac9a8cf868756887d7 100644 (file)
@@ -1,5 +1,6 @@
-MD5 4776e52db7c3670cb3009956e3c69494 kajaani-kombat-0.4.ebuild 994
-MD5 36a041e0b386c767d7a3358b0b49cdef ChangeLog 496
+MD5 f2f12decc1bacb4426a5b4d7cd83db0d ChangeLog 631
+MD5 64f9851bb804d023e4263cd0dfe5e997 kajaani-kombat-0.4.ebuild 1032
 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
 MD5 e22363105da0c277be14bbb8cf7f1171 files/0.4-makefile.patch 1469
 MD5 e8754c2566d62d0a3403c5e99550bd83 files/digest-kajaani-kombat-0.4 70
+MD5 4636f79f8f45ca90e3f895e54bcd8cd2 files/0.4-gcc-3.4.patch 406
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 (file)
index 0000000..b3fa361
--- /dev/null
@@ -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()
index d2814a5dac00c5577be303305176ca9d0b35f90c..06efe171f6ef84c6ea080db5e17708a677f6e8aa 100644 (file)
@@ -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() {