From 788f350640e3d22d725b1c01244c4784664c28c2 Mon Sep 17 00:00:00 2001 From: Tristan Heaven Date: Fri, 6 Jul 2007 15:48:50 +0000 Subject: Patch for gcc-4.2 (Portage version: 2.1.3_rc6) --- games-board/hexxagon/ChangeLog | 8 ++++++-- games-board/hexxagon/files/hexxagon-1.0-gcc42.patch | 18 ++++++++++++++++++ games-board/hexxagon/hexxagon-1.0.ebuild | 10 ++++++++-- 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 games-board/hexxagon/files/hexxagon-1.0-gcc42.patch (limited to 'games-board') 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 + +files/hexxagon-1.0-gcc42.patch, hexxagon-1.0.ebuild: + Patch for gcc-4.2 09 Oct 2006; Tristan Heaven 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 -- cgit v1.2.3-65-gdbad