summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-07-06 15:48:50 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-07-06 15:48:50 +0000
commit788f350640e3d22d725b1c01244c4784664c28c2 (patch)
tree6d4be727fe4ea045e3a1dc73046cd3c56f7d6fa9 /games-board/hexxagon
parentstable on ppc64 (diff)
downloadgentoo-2-788f350640e3d22d725b1c01244c4784664c28c2.tar.gz
gentoo-2-788f350640e3d22d725b1c01244c4784664c28c2.tar.bz2
gentoo-2-788f350640e3d22d725b1c01244c4784664c28c2.zip
Patch for gcc-4.2
(Portage version: 2.1.3_rc6)
Diffstat (limited to 'games-board/hexxagon')
-rw-r--r--games-board/hexxagon/ChangeLog8
-rw-r--r--games-board/hexxagon/files/hexxagon-1.0-gcc42.patch18
-rw-r--r--games-board/hexxagon/hexxagon-1.0.ebuild10
3 files changed, 32 insertions, 4 deletions
diff --git a/games-board/hexxagon/ChangeLog b/games-board/hexxagon/ChangeLog
index 20ff52585a80..08e064c858e3 100644
--- a/games-board/hexxagon/ChangeLog
+++ b/games-board/hexxagon/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-board/hexxagon
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/ChangeLog,v 1.16 2006/10/09 14:36:31 nyhm Exp $
+# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/ChangeLog,v 1.17 2007/07/06 15:48:50 nyhm Exp $
+
+ 06 Jul 2007; Tristan Heaven <nyhm@gentoo.org>
+ +files/hexxagon-1.0-gcc42.patch, hexxagon-1.0.ebuild:
+ Patch for gcc-4.2
09 Oct 2006; Tristan Heaven <nyhm@gentoo.org> hexxagon-1.0.ebuild:
Install desktop entry
diff --git a/games-board/hexxagon/files/hexxagon-1.0-gcc42.patch b/games-board/hexxagon/files/hexxagon-1.0-gcc42.patch
new file mode 100644
index 000000000000..200958b07f77
--- /dev/null
+++ b/games-board/hexxagon/files/hexxagon-1.0-gcc42.patch
@@ -0,0 +1,18 @@
+--- src/libhexx/bitboard64.h
++++ src/libhexx/bitboard64.h
+@@ -55,13 +55,12 @@
+ printf("0x%X, 0x%X\n", lowbits, highbits);
+ };
+
+- friend std::ostream& operator<<(std::ostream &output, const class BitBoard64 &b);
+- friend std::istream& operator>>(std::istream &input, class BitBoard64 &b);
+
+- private:
+
+ uint32_t lowbits, highbits;
+ };
++ std::ostream& operator<<(std::ostream &output, const class BitBoard64 &b);
++ std::istream& operator>>(std::istream &input, class BitBoard64 &b);
+ }
+
+ #endif
diff --git a/games-board/hexxagon/hexxagon-1.0.ebuild b/games-board/hexxagon/hexxagon-1.0.ebuild
index cbe1a7ba6b6c..a117aa07e705 100644
--- a/games-board/hexxagon/hexxagon-1.0.ebuild
+++ b/games-board/hexxagon/hexxagon-1.0.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/hexxagon-1.0.ebuild,v 1.6 2006/10/09 14:36:31 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/hexxagon-1.0.ebuild,v 1.7 2007/07/06 15:48:50 nyhm Exp $
inherit eutils games
@@ -17,6 +17,12 @@ DEPEND=">=dev-cpp/glibmm-2.4
>=dev-cpp/gtkmm-2.4
>=x11-libs/gtk+-2.0"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc42.patch
+}
+
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
newicon images/board_N_2.xpm ${PN}.xpm