diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-08-15 17:33:38 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-08-15 17:33:38 +0000 |
commit | acb827530967f48da9533e7f58ef9a1dd4adda65 (patch) | |
tree | 2a97371e14a470239be2750ede4192825ef6a931 /games-board | |
parent | Remove old since it doesn't pass econf with stable python anyway. (diff) | |
download | historical-acb827530967f48da9533e7f58ef9a1dd4adda65.tar.gz historical-acb827530967f48da9533e7f58ef9a1dd4adda65.tar.bz2 historical-acb827530967f48da9533e7f58ef9a1dd4adda65.zip |
Replace working workaround with correct solution. Won't change anything from users POV.
Package-Manager: portage-2.2_rc38/cvs/Linux x86_64
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/hexxagon/ChangeLog | 7 | ||||
-rw-r--r-- | games-board/hexxagon/Manifest | 6 | ||||
-rw-r--r-- | games-board/hexxagon/files/hexxagon-1.0-gcc44.patch | 65 | ||||
-rw-r--r-- | games-board/hexxagon/files/hexxagon-1.0-toolchain.patch | 156 | ||||
-rw-r--r-- | games-board/hexxagon/hexxagon-1.0.ebuild | 4 |
5 files changed, 73 insertions, 165 deletions
diff --git a/games-board/hexxagon/ChangeLog b/games-board/hexxagon/ChangeLog index 999bd56dbf2f..6ffaa85e7759 100644 --- a/games-board/hexxagon/ChangeLog +++ b/games-board/hexxagon/ChangeLog @@ -1,11 +1,10 @@ # 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.23 2009/08/13 15:12:08 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/ChangeLog,v 1.24 2009/08/15 17:33:38 ssuominen Exp $ 12 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> hexxagon-1.0.ebuild, - +files/hexxagon-1.0-toolchain.patch: - Fix building with GCC 4.4+ wrt #273526, thanks to vasuvi from #gentoo-kde - for patch. + +files/hexxagon-1.0-gcc44.patch: + Fix building with GCC 4.4+ wrt #273526. 08 Apr 2008; Michael Sterrett <mr_bones_@gentoo.org> hexxagon-1.0.ebuild: fix deps (bug #216560) diff --git a/games-board/hexxagon/Manifest b/games-board/hexxagon/Manifest index cb1f212b73b4..c62eae3b6ac1 100644 --- a/games-board/hexxagon/Manifest +++ b/games-board/hexxagon/Manifest @@ -1,5 +1,5 @@ -AUX hexxagon-1.0-toolchain.patch 4187 RMD160 f4c1ba34c88701c272048ff7ef575605a6824a58 SHA1 3412bb88eaedb4482dd439e2a534d393ca8024af SHA256 fdd40beb755d2b4c943267df322e8d45f6c18d1d34dfaf2f42288da35186b7b5 +AUX hexxagon-1.0-gcc44.patch 2041 RMD160 7cd20df59ef8185c36ece5626cf37cbe7a69dd45 SHA1 364f0d0c8563abaec9105db5e5256dce590d83b5 SHA256 874465bc10b30bf4f3ada6329a3ec8ea8894673ea0fdd9ecafce5ee35be8a247 DIST hexxagon-1.0.tar.bz2 1245889 RMD160 d38b98db3a694818437c6dfc8916ff0ce338f1ea SHA1 1ffe2d6d64a79888c9e5b0dde476006e251afc21 SHA256 d38c6171550a2e10ece4ae655cbc417a1bdb86912cd5f141e2a19840d4cb5f5f -EBUILD hexxagon-1.0.ebuild 831 RMD160 5ee64eb4b4e126d578b7da94f15bb6eb157507f5 SHA1 3dd45f80e05d55babbbd7a9976d0dde6b6f0fc3c SHA256 b35275bfa32851b4967a3343a0c3e709c7837fd58730e09ce6605062f3becb05 -MISC ChangeLog 2470 RMD160 f479d2ae2d90e969c37cfb152a47e67879367b59 SHA1 592efcd06b2c2ad79ee6bb943ca933b90efa94ff SHA256 4425c9c7bca90527e82147f22093e07b1ea39b9b490711ac5574375451d5077b +EBUILD hexxagon-1.0.ebuild 827 RMD160 e5d87fc044ce1da111472b93a7e30d3c47cbdbe5 SHA1 e5b3bf21d49800d2570e47175dd0c59d515abf12 SHA256 c2a46bc1ceb5f94e1c4d8e4bbb4cf2fcaec240a968731fe4f29dde0aed91a2a8 +MISC ChangeLog 2419 RMD160 9851dccd2be0b6b99a9e073dd08dd90661396dee SHA1 c4d5544f0e3a23dc1a0852a9b0079e07bfc159e2 SHA256 5eb96507945f9cf0e53cc28f117f4a69734ee6b3dc4973270c33599a7b01afc1 MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 diff --git a/games-board/hexxagon/files/hexxagon-1.0-gcc44.patch b/games-board/hexxagon/files/hexxagon-1.0-gcc44.patch new file mode 100644 index 000000000000..3a6f3c8d2a2d --- /dev/null +++ b/games-board/hexxagon/files/hexxagon-1.0-gcc44.patch @@ -0,0 +1,65 @@ +Only in hexxagon-1.0.orig: hexxagon-1.0 +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-15 20:34:23.000000000 +0300 +@@ -25,6 +25,7 @@ + + #include <netinet/in.h> + #include <iostream> ++#include <cstdio> + + namespace libhexx + { +@@ -54,14 +55,11 @@ + { + 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 -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-15 20:34:23.000000000 +0300 +@@ -93,6 +93,7 @@ + BitBoard64 board; + BitBoard64 color; + }; ++ bool scoreMoves(std::vector<Move> &moves, class Board board, const LookUp& lookUp, int depth, bool (*callback)(), int maxtime); + } // namespace libhexx + + #endif // _BOARD_H +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-15 20:34:23.000000000 +0300 +@@ -20,10 +20,9 @@ + */ + + +-#ifndef _MOVE_H +-#define _MOVE_H ++#ifndef _LIBHEXX_MOVE_H ++#define _LIBHEXX_MOVE_H + +-#include "board.h" + + #include <list> + #include <vector> +@@ -53,7 +52,7 @@ + int score; + }; + +- bool scoreMoves(std::vector<Move> &moves, class Board board, const LookUp& lookUp, int depth, bool (*callback)(), int maxtime); ++ + } //namespace libhexx + + #endif // _HEXXAGONMOVE_H diff --git a/games-board/hexxagon/files/hexxagon-1.0-toolchain.patch b/games-board/hexxagon/files/hexxagon-1.0-toolchain.patch deleted file mode 100644 index fed6013d09a8..000000000000 --- a/games-board/hexxagon/files/hexxagon-1.0-toolchain.patch +++ /dev/null @@ -1,156 +0,0 @@ -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 @@ - * - */ - -- - #ifndef _BITBOARD64_H - #define _BITBOARD64_H - - #include <netinet/in.h> - #include <iostream> -+#include <cstdio> - - namespace libhexx - { -@@ -54,14 +54,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 -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: -+ Move(); -+ Move(int t); -+ Move(int f, int t); -+ -+ operator bool() const; -+ -+ char from, to; -+ int score; -+ }; -+ -+ 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.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 @@ - * - */ - -- - #include "bitboard64.h" -+#include "lookup.h" - #include "move.h" - #include "board.h" - #include "game.h" --#include "lookup.h" - #include "view.h" - #include "layout.h" -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 - { -+ class BitBoard64; -+ - int getHexxagonIndex(int x, int y); - - class LookUp -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; - } - -- -+Move::Move() { from = 99; to = 99;}; -+Move::Move(int t) { from = t; to = t; }; -+Move::Move(int f, int t) { from = f; to = t; }; -+ -+Move::operator bool() const -+{ -+ return from != 99 && to != 99; -+} -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 - --#include "board.h" -- - #include <list> - #include <vector> - - namespace libhexx - { -+ class Board; -+ -+#ifndef _MOVE_DEFINED -+#define _MOVE_DEFINED - class Move - { - public: -- Move() { from = 99; to = 99;}; -- Move(int t) { from = t; to = t; }; -- Move(int f, int t) { from = f; to = t; }; -+ Move(); -+ Move(int t); -+ Move(int f, int t); - - inline bool operator<(const Move &r) const - { -@@ -47,13 +49,14 @@ - return (score != r.score); - }; - -- operator bool() const { return from != 99 && to != 99; }; -+ operator bool() const; - - 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 5d867f895572..f7d19279814c 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.12 2009/08/13 15:12:08 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/hexxagon-1.0.ebuild,v 1.13 2009/08/15 17:33:38 ssuominen Exp $ EAPI=2 inherit eutils games @@ -21,7 +21,7 @@ DEPEND="${RDEPEND} dev-util/pkgconfig" src_prepare() { - epatch "${FILESDIR}"/${P}-toolchain.patch + epatch "${FILESDIR}"/${P}-gcc44.patch } src_install() { |