diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-08-13 15:12:08 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-08-13 15:12:08 +0000 |
commit | f1746493e14e1609524c733052d86eb1ad5408d2 (patch) | |
tree | 251e7f96ab2b9e3cefd719b4b7a2dd43cb98cd22 | |
parent | Add missing cards, bug 269167 (diff) | |
download | historical-f1746493e14e1609524c733052d86eb1ad5408d2.tar.gz historical-f1746493e14e1609524c733052d86eb1ad5408d2.tar.bz2 historical-f1746493e14e1609524c733052d86eb1ad5408d2.zip |
Fix patch so hexxagon builds with older compilers.
Package-Manager: portage-2.2_rc38/cvs/Linux x86_64
-rw-r--r-- | games-board/hexxagon/ChangeLog | 4 | ||||
-rw-r--r-- | games-board/hexxagon/Manifest | 6 | ||||
-rw-r--r-- | games-board/hexxagon/files/hexxagon-1.0-toolchain.patch (renamed from games-board/hexxagon/files/hexxagon-1.0-build.patch) | 76 | ||||
-rw-r--r-- | games-board/hexxagon/hexxagon-1.0.ebuild | 4 |
4 files changed, 46 insertions, 44 deletions
diff --git a/games-board/hexxagon/ChangeLog b/games-board/hexxagon/ChangeLog index 14d19dc5a09f..999bd56dbf2f 100644 --- a/games-board/hexxagon/ChangeLog +++ b/games-board/hexxagon/ChangeLog @@ -1,9 +1,9 @@ # ChangeLog for games-board/hexxagon # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/ChangeLog,v 1.22 2009/08/13 04:05:30 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/ChangeLog,v 1.23 2009/08/13 15:12:08 ssuominen Exp $ 12 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> hexxagon-1.0.ebuild, - +files/hexxagon-1.0-build.patch: + +files/hexxagon-1.0-toolchain.patch: Fix building with GCC 4.4+ wrt #273526, thanks to vasuvi from #gentoo-kde for patch. diff --git a/games-board/hexxagon/Manifest b/games-board/hexxagon/Manifest index 9a5f5891822d..cb1f212b73b4 100644 --- a/games-board/hexxagon/Manifest +++ b/games-board/hexxagon/Manifest @@ -1,5 +1,5 @@ -AUX hexxagon-1.0-build.patch 4187 RMD160 f4c1ba34c88701c272048ff7ef575605a6824a58 SHA1 3412bb88eaedb4482dd439e2a534d393ca8024af SHA256 fdd40beb755d2b4c943267df322e8d45f6c18d1d34dfaf2f42288da35186b7b5 +AUX hexxagon-1.0-toolchain.patch 4187 RMD160 f4c1ba34c88701c272048ff7ef575605a6824a58 SHA1 3412bb88eaedb4482dd439e2a534d393ca8024af SHA256 fdd40beb755d2b4c943267df322e8d45f6c18d1d34dfaf2f42288da35186b7b5 DIST hexxagon-1.0.tar.bz2 1245889 RMD160 d38b98db3a694818437c6dfc8916ff0ce338f1ea SHA1 1ffe2d6d64a79888c9e5b0dde476006e251afc21 SHA256 d38c6171550a2e10ece4ae655cbc417a1bdb86912cd5f141e2a19840d4cb5f5f -EBUILD hexxagon-1.0.ebuild 827 RMD160 4e0befea5aea339a166a1a0fce07881253d6902a SHA1 379edb3650a5a2b3b025b2ee604a23b7df8ebd43 SHA256 c475f2c447d58f79a56eb04c84e84de915c6038ae5364e31935c162d78aa80a6 -MISC ChangeLog 2466 RMD160 aca72c0e7e8d7db2a84ea25f1870cc2ea12008ec SHA1 92f3f56a3812c5439b5132fbaded56286ea9e00a SHA256 78edb3accc4804361764c69ff2585029bb12dd2f75c6ad22d26bf4829cf49305 +EBUILD hexxagon-1.0.ebuild 831 RMD160 5ee64eb4b4e126d578b7da94f15bb6eb157507f5 SHA1 3dd45f80e05d55babbbd7a9976d0dde6b6f0fc3c SHA256 b35275bfa32851b4967a3343a0c3e709c7837fd58730e09ce6605062f3becb05 +MISC ChangeLog 2470 RMD160 f479d2ae2d90e969c37cfb152a47e67879367b59 SHA1 592efcd06b2c2ad79ee6bb943ca933b90efa94ff SHA256 4425c9c7bca90527e82147f22093e07b1ea39b9b490711ac5574375451d5077b MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 diff --git a/games-board/hexxagon/files/hexxagon-1.0-build.patch b/games-board/hexxagon/files/hexxagon-1.0-toolchain.patch index 8aece9b47576..fed6013d09a8 100644 --- a/games-board/hexxagon/files/hexxagon-1.0-build.patch +++ b/games-board/hexxagon/files/hexxagon-1.0-toolchain.patch @@ -1,6 +1,6 @@ -diff -ur hexxagon-1.0.original/src/libhexx/bitboard64.h hexxagon-1.0/src/libhexx/bitboard64.h ---- hexxagon-1.0.original/src/libhexx/bitboard64.h 2005-01-13 23:19:07.000000000 +0200 -+++ hexxagon-1.0/src/libhexx/bitboard64.h 2009-08-13 06:51:10.000000000 +0300 +diff -ur hexxagon-1.0.orig/src/libhexx/bitboard64.h hexxagon-1.0/src/libhexx/bitboard64.h +--- hexxagon-1.0.orig/src/libhexx/bitboard64.h 2005-01-13 23:19:07.000000000 +0200 ++++ hexxagon-1.0/src/libhexx/bitboard64.h 2009-08-13 18:07:53.000000000 +0300 @@ -19,12 +19,12 @@ * */ @@ -34,23 +34,17 @@ diff -ur hexxagon-1.0.original/src/libhexx/bitboard64.h hexxagon-1.0/src/libhexx } #endif -diff -ur hexxagon-1.0.original/src/libhexx/board.h hexxagon-1.0/src/libhexx/board.h ---- hexxagon-1.0.original/src/libhexx/board.h 2005-01-16 13:12:23.000000000 +0200 -+++ hexxagon-1.0/src/libhexx/board.h 2009-08-13 07:03:48.000000000 +0300 -@@ -25,7 +25,6 @@ - - #include "bitboard64.h" - #include "lookup.h" --#include "move.h" - #include "layout.h" - - #include <iostream> -@@ -33,8 +32,21 @@ +diff -ur hexxagon-1.0.orig/src/libhexx/board.h hexxagon-1.0/src/libhexx/board.h +--- hexxagon-1.0.orig/src/libhexx/board.h 2005-01-16 13:12:23.000000000 +0200 ++++ hexxagon-1.0/src/libhexx/board.h 2009-08-13 18:07:53.000000000 +0300 +@@ -33,8 +33,24 @@ namespace libhexx { - class Move; - class MoveList; ++#ifndef _MOVE_DEFINED ++#define _MOVE_DEFINED + class Move + { + public: @@ -66,30 +60,29 @@ diff -ur hexxagon-1.0.original/src/libhexx/board.h hexxagon-1.0/src/libhexx/boar + + bool scoreMoves(std::vector<Move> &moves, class Board board, + const LookUp& lookUp, int depth, bool (*callback)(), int maxtime); ++#endif enum { -diff -ur hexxagon-1.0.original/src/libhexx/libhexx.h hexxagon-1.0/src/libhexx/libhexx.h ---- hexxagon-1.0.original/src/libhexx/libhexx.h 2005-01-13 23:19:07.000000000 +0200 -+++ hexxagon-1.0/src/libhexx/libhexx.h 2009-08-13 06:53:35.000000000 +0300 -@@ -19,6 +19,8 @@ +diff -ur hexxagon-1.0.orig/src/libhexx/libhexx.h hexxagon-1.0/src/libhexx/libhexx.h +--- hexxagon-1.0.orig/src/libhexx/libhexx.h 2005-01-13 23:19:07.000000000 +0200 ++++ hexxagon-1.0/src/libhexx/libhexx.h 2009-08-13 18:07:53.000000000 +0300 +@@ -19,11 +19,10 @@ * */ -+#ifndef _LIBHEXX_H -+#define _LIBHEXX_H - +- #include "bitboard64.h" ++#include "lookup.h" #include "move.h" -@@ -27,3 +29,5 @@ - #include "lookup.h" + #include "board.h" + #include "game.h" +-#include "lookup.h" #include "view.h" #include "layout.h" -+ -+#endif -diff -ur hexxagon-1.0.original/src/libhexx/lookup.h hexxagon-1.0/src/libhexx/lookup.h ---- hexxagon-1.0.original/src/libhexx/lookup.h 2005-01-13 23:19:07.000000000 +0200 -+++ hexxagon-1.0/src/libhexx/lookup.h 2009-08-13 06:51:10.000000000 +0300 +diff -ur hexxagon-1.0.orig/src/libhexx/lookup.h hexxagon-1.0/src/libhexx/lookup.h +--- hexxagon-1.0.orig/src/libhexx/lookup.h 2005-01-13 23:19:07.000000000 +0200 ++++ hexxagon-1.0/src/libhexx/lookup.h 2009-08-13 18:07:53.000000000 +0300 @@ -27,6 +27,8 @@ namespace libhexx @@ -99,9 +92,9 @@ diff -ur hexxagon-1.0.original/src/libhexx/lookup.h hexxagon-1.0/src/libhexx/loo int getHexxagonIndex(int x, int y); class LookUp -diff -ur hexxagon-1.0.original/src/libhexx/move.cpp hexxagon-1.0/src/libhexx/move.cpp ---- hexxagon-1.0.original/src/libhexx/move.cpp 2005-01-16 13:12:23.000000000 +0200 -+++ hexxagon-1.0/src/libhexx/move.cpp 2009-08-13 06:51:10.000000000 +0300 +diff -ur hexxagon-1.0.orig/src/libhexx/move.cpp hexxagon-1.0/src/libhexx/move.cpp +--- hexxagon-1.0.orig/src/libhexx/move.cpp 2005-01-16 13:12:23.000000000 +0200 ++++ hexxagon-1.0/src/libhexx/move.cpp 2009-08-13 18:07:53.000000000 +0300 @@ -114,4 +114,11 @@ return true; } @@ -115,10 +108,10 @@ diff -ur hexxagon-1.0.original/src/libhexx/move.cpp hexxagon-1.0/src/libhexx/mov +{ + return from != 99 && to != 99; +} -diff -ur hexxagon-1.0.original/src/libhexx/move.h hexxagon-1.0/src/libhexx/move.h ---- hexxagon-1.0.original/src/libhexx/move.h 2005-01-13 23:19:07.000000000 +0200 -+++ hexxagon-1.0/src/libhexx/move.h 2009-08-13 06:51:10.000000000 +0300 -@@ -23,19 +23,19 @@ +diff -ur hexxagon-1.0.orig/src/libhexx/move.h hexxagon-1.0/src/libhexx/move.h +--- hexxagon-1.0.orig/src/libhexx/move.h 2005-01-13 23:19:07.000000000 +0200 ++++ hexxagon-1.0/src/libhexx/move.h 2009-08-13 18:07:53.000000000 +0300 +@@ -23,19 +23,21 @@ #ifndef _MOVE_H #define _MOVE_H @@ -131,6 +124,8 @@ diff -ur hexxagon-1.0.original/src/libhexx/move.h hexxagon-1.0/src/libhexx/move. { + class Board; + ++#ifndef _MOVE_DEFINED ++#define _MOVE_DEFINED class Move { public: @@ -143,7 +138,7 @@ diff -ur hexxagon-1.0.original/src/libhexx/move.h hexxagon-1.0/src/libhexx/move. inline bool operator<(const Move &r) const { -@@ -47,7 +47,7 @@ +@@ -47,13 +49,14 @@ return (score != r.score); }; @@ -152,3 +147,10 @@ diff -ur hexxagon-1.0.original/src/libhexx/move.h hexxagon-1.0/src/libhexx/move. char from, to; int score; + }; + + bool scoreMoves(std::vector<Move> &moves, class Board board, const LookUp& lookUp, int depth, bool (*callback)(), int maxtime); ++#endif + } //namespace libhexx + + #endif // _HEXXAGONMOVE_H diff --git a/games-board/hexxagon/hexxagon-1.0.ebuild b/games-board/hexxagon/hexxagon-1.0.ebuild index ef1a01e26606..5d867f895572 100644 --- a/games-board/hexxagon/hexxagon-1.0.ebuild +++ b/games-board/hexxagon/hexxagon-1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 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.11 2009/08/13 04:05:30 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/hexxagon-1.0.ebuild,v 1.12 2009/08/13 15:12:08 ssuominen Exp $ EAPI=2 inherit eutils games @@ -21,7 +21,7 @@ DEPEND="${RDEPEND} dev-util/pkgconfig" src_prepare() { - epatch "${FILESDIR}"/${P}-build.patch + epatch "${FILESDIR}"/${P}-toolchain.patch } src_install() { |