summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-09-19 18:30:50 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-09-19 18:30:50 +0000
commitaf4714935c2afbb2ec3039ffed608abd25c35a36 (patch)
treeca3e697aebee35242838ad0eb7e08ace572d2978 /games-puzzle/gweled
parentStable on x86. (diff)
downloadgentoo-2-af4714935c2afbb2ec3039ffed608abd25c35a36.tar.gz
gentoo-2-af4714935c2afbb2ec3039ffed608abd25c35a36.tar.bz2
gentoo-2-af4714935c2afbb2ec3039ffed608abd25c35a36.zip
Added patch from Halcy0n for GCC 4.
(Portage version: 2.0.52-r1)
Diffstat (limited to 'games-puzzle/gweled')
-rw-r--r--games-puzzle/gweled/ChangeLog6
-rw-r--r--games-puzzle/gweled/files/gweled-0.6-gcc4.patch21
-rw-r--r--games-puzzle/gweled/gweled-0.6.ebuild11
3 files changed, 35 insertions, 3 deletions
diff --git a/games-puzzle/gweled/ChangeLog b/games-puzzle/gweled/ChangeLog
index f8a595b1bc7e..feb5f98d6f68 100644
--- a/games-puzzle/gweled/ChangeLog
+++ b/games-puzzle/gweled/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-puzzle/gweled
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/gweled/ChangeLog,v 1.6 2005/01/27 21:20:44 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/gweled/ChangeLog,v 1.7 2005/09/19 18:30:50 wolf31o2 Exp $
+
+ 19 Sep 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+ +files/gweled-0.6-gcc4.patch, gweled-0.6.ebuild:
+ Added patch from Halcy0n for GCC 4.
*gweled-0.6 (27 Jan 2005)
diff --git a/games-puzzle/gweled/files/gweled-0.6-gcc4.patch b/games-puzzle/gweled/files/gweled-0.6-gcc4.patch
new file mode 100644
index 000000000000..70fccb05fedf
--- /dev/null
+++ b/games-puzzle/gweled/files/gweled-0.6-gcc4.patch
@@ -0,0 +1,21 @@
+diff -ur gweled-0.6-orig/src/sge_core.c gweled-0.6/src/sge_core.c
+--- gweled-0.6-orig/src/sge_core.c 2005-09-13 10:47:05.000000000 -0400
++++ gweled-0.6/src/sge_core.c 2005-09-13 10:54:45.000000000 -0400
+@@ -83,7 +83,7 @@
+ ((T_SGEObject *) object)->
+ height);
+
+- (int) ((T_SGEObject *) object)->needs_drawing = 0;
++ ((T_SGEObject *) object)->needs_drawing = 0;
+
+ invalidate_objects_above ((T_SGEObject *) object);
+ }
+@@ -99,7 +99,7 @@
+ ((T_SGEObject *) object)->vx;
+ ((T_SGEObject *) object)->y +=
+ ((T_SGEObject *) object)->vy;
+- (int) ((T_SGEObject *) object)->needs_drawing |= 0x02;
++ ((T_SGEObject *) object)->needs_drawing |= 0x02;
+ }
+
+ if (((T_SGEObject *) object)->stop_condition)
diff --git a/games-puzzle/gweled/gweled-0.6.ebuild b/games-puzzle/gweled/gweled-0.6.ebuild
index a014e3db9e8f..54d1c16837ad 100644
--- a/games-puzzle/gweled/gweled-0.6.ebuild
+++ b/games-puzzle/gweled/gweled-0.6.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/gweled/gweled-0.6.ebuild,v 1.1 2005/01/27 21:20:45 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/gweled/gweled-0.6.ebuild,v 1.2 2005/09/19 18:30:50 wolf31o2 Exp $
-inherit flag-o-matic
+inherit eutils flag-o-matic games
DESCRIPTION="Bejeweled clone game"
HOMEPAGE="http://sebdelestaing.free.fr/gweled/"
@@ -17,6 +17,12 @@ DEPEND=">=x11-libs/gtk+-2
>=gnome-base/librsvg-2
>=gnome-base/libgnomeui-2"
+src_unpack() {
+ unpack ${A}
+ # Adding gcc4 patch from halcy0n
+ epatch ${FILESDIR}/${P}-gcc4.patch
+}
+
src_compile() {
filter-flags -fomit-frame-pointer
econf || die "econf failed"
@@ -30,4 +36,5 @@ src_compile() {
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS NEWS
+ prepgamesdirs
}