diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-08-12 20:32:39 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-08-12 20:32:39 +0000 |
commit | c8e6bf1720826a7a0ccd304d84d6984c365b9464 (patch) | |
tree | 7816dfb09048545c2ccee73cce9f8a6ff954e62e /games-board/hexxagon | |
parent | Added tcllib as a dependency for dplite (diff) | |
download | historical-c8e6bf1720826a7a0ccd304d84d6984c365b9464.tar.gz historical-c8e6bf1720826a7a0ccd304d84d6984c365b9464.tar.bz2 historical-c8e6bf1720826a7a0ccd304d84d6984c365b9464.zip |
Fix building with GCC 4.4+ wrt #273226, thanks to vasuvi from #gentoo-kde for patch.
Package-Manager: portage-2.2_rc38/cvs/Linux x86_64
Diffstat (limited to 'games-board/hexxagon')
-rw-r--r-- | games-board/hexxagon/ChangeLog | 9 | ||||
-rw-r--r-- | games-board/hexxagon/Manifest | 6 | ||||
-rw-r--r-- | games-board/hexxagon/files/hexxagon-1.0-gcc42.patch | 18 | ||||
-rw-r--r-- | games-board/hexxagon/files/hexxagon-1.0-toolchain.patch | 139 | ||||
-rw-r--r-- | games-board/hexxagon/hexxagon-1.0.ebuild | 13 |
5 files changed, 155 insertions, 30 deletions
diff --git a/games-board/hexxagon/ChangeLog b/games-board/hexxagon/ChangeLog index 3729278da22d..b442fce59061 100644 --- a/games-board/hexxagon/ChangeLog +++ b/games-board/hexxagon/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-board/hexxagon -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/ChangeLog,v 1.19 2008/04/08 01:45:41 mr_bones_ Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/ChangeLog,v 1.20 2009/08/12 20:32:39 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 #273226, thanks to vasuvi from #gentoo-kde + for patch. 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 c53cda83d761..14c43b379cbf 100644 --- a/games-board/hexxagon/Manifest +++ b/games-board/hexxagon/Manifest @@ -1,5 +1,5 @@ -AUX hexxagon-1.0-gcc42.patch 540 RMD160 028664faea54daf630775efb68b054ac4ac94e51 SHA1 bde3e983dfc22ba14e31babf6274ba8c1b307865 SHA256 3ad18b5df0b51dc78218c32b4b2563b6e522809af29c27d378e0a2fe285397df +AUX hexxagon-1.0-toolchain.patch 3962 RMD160 0d8f23a1ea22d1e51c10f9de304b1cc81a24839a SHA1 ba62aac717ded90b0ccdb39b6ecf293702573465 SHA256 60d894676cd763168706d7dd039479653f265a659e30744085b87a42d1dada3a DIST hexxagon-1.0.tar.bz2 1245889 RMD160 d38b98db3a694818437c6dfc8916ff0ce338f1ea SHA1 1ffe2d6d64a79888c9e5b0dde476006e251afc21 SHA256 d38c6171550a2e10ece4ae655cbc417a1bdb86912cd5f141e2a19840d4cb5f5f -EBUILD hexxagon-1.0.ebuild 846 RMD160 fefd2c0384420c50b823cf75d9e83e638c56f420 SHA1 9b43d59b3811270992c59f6807a166a21699596c SHA256 467c0a8ee0a26d54b0d6386ae5ee9867fc1de29bc99f1c1845cf0a6e44b0bc98 -MISC ChangeLog 2266 RMD160 4c4bff5cbcb14fc531f5bd270d65f49650daf512 SHA1 27c8385777796a58a5126c679bfdec77046218d4 SHA256 7a2f347774eb7df40e64c1af95bab34509dff591e6bcbc7f19cd1598b7b7b9f6 +EBUILD hexxagon-1.0.ebuild 831 RMD160 667ba3e5aa0cfafe2d36998c230608ccf1d41911 SHA1 af13f3f1c91df44cc1b3cf0185f530de1c6bdef1 SHA256 09994fc41e309d3d5c153db9e5f4f2293dd635fd6f4b9a5d3c751ead79d62f46 +MISC ChangeLog 2470 RMD160 704018e89499bc00a699a46eaf6a9228bc0b5733 SHA1 6b19dce51dd0caf8ac567da1fac6f34484d98766 SHA256 68e31355623f0e570ba16f62216eb0e617630944bc01540fecbaf6c2351dcb5f MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 diff --git a/games-board/hexxagon/files/hexxagon-1.0-gcc42.patch b/games-board/hexxagon/files/hexxagon-1.0-gcc42.patch deleted file mode 100644 index 200958b07f77..000000000000 --- a/games-board/hexxagon/files/hexxagon-1.0-gcc42.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- 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/files/hexxagon-1.0-toolchain.patch b/games-board/hexxagon/files/hexxagon-1.0-toolchain.patch new file mode 100644 index 000000000000..d4d30913ad12 --- /dev/null +++ b/games-board/hexxagon/files/hexxagon-1.0-toolchain.patch @@ -0,0 +1,139 @@ +diff -ur hexxagon-1.0/src/libhexx/bitboard64.h ../BUILD/hexxagon-1.0/src/libhexx/bitboard64.h
+--- hexxagon-1.0/src/libhexx/bitboard64.h 2005-01-13 13:19:07.000000000 -0800
++++ ../BUILD/hexxagon-1.0/src/libhexx/bitboard64.h 2009-08-12 13:11:57.663180010 -0700
+@@ -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/src/libhexx/board.h ../BUILD/hexxagon-1.0/src/libhexx/board.h
+--- hexxagon-1.0/src/libhexx/board.h 2005-01-16 03:12:23.000000000 -0800
++++ ../BUILD/hexxagon-1.0/src/libhexx/board.h 2009-08-12 13:11:35.577180031 -0700
+@@ -33,8 +33,21 @@
+
+ namespace libhexx
+ {
+- class Move;
+- class MoveList;
++ 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);
+
+ enum
+ {
+diff -ur hexxagon-1.0/src/libhexx/libhexx.h ../BUILD/hexxagon-1.0/src/libhexx/libhexx.h
+--- hexxagon-1.0/src/libhexx/libhexx.h 2005-01-13 13:19:07.000000000 -0800
++++ ../BUILD/hexxagon-1.0/src/libhexx/libhexx.h 2009-08-12 12:02:28.756180003 -0700
+@@ -19,7 +19,6 @@
+ *
+ */
+
+-
+ #include "bitboard64.h"
+ #include "move.h"
+ #include "board.h"
+diff -ur hexxagon-1.0/src/libhexx/lookup.h ../BUILD/hexxagon-1.0/src/libhexx/lookup.h
+--- hexxagon-1.0/src/libhexx/lookup.h 2005-01-13 13:19:07.000000000 -0800
++++ ../BUILD/hexxagon-1.0/src/libhexx/lookup.h 2009-08-12 11:58:08.758180417 -0700
+@@ -27,6 +27,8 @@
+
+ namespace libhexx
+ {
++ class BitBoard64;
++
+ int getHexxagonIndex(int x, int y);
+
+ class LookUp
+diff -ur hexxagon-1.0/src/libhexx/move.cpp ../BUILD/hexxagon-1.0/src/libhexx/move.cpp
+--- hexxagon-1.0/src/libhexx/move.cpp 2005-01-16 03:12:23.000000000 -0800
++++ ../BUILD/hexxagon-1.0/src/libhexx/move.cpp 2009-08-12 13:12:27.140180083 -0700
+@@ -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/src/libhexx/move.h ../BUILD/hexxagon-1.0/src/libhexx/move.h
+--- hexxagon-1.0/src/libhexx/move.h 2005-01-13 13:19:07.000000000 -0800
++++ ../BUILD/hexxagon-1.0/src/libhexx/move.h 2009-08-12 13:12:50.146179982 -0700
+@@ -23,19 +23,19 @@
+ #ifndef _MOVE_H
+ #define _MOVE_H
+
+-#include "board.h"
+-
+ #include <list>
+ #include <vector>
+
+ namespace libhexx
+ {
++ class Board;
++
+ 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,7 +47,7 @@
+ return (score != r.score);
+ };
+
+- operator bool() const { return from != 99 && to != 99; };
++ operator bool() const;
+
+ char from, to;
+ int score;
diff --git a/games-board/hexxagon/hexxagon-1.0.ebuild b/games-board/hexxagon/hexxagon-1.0.ebuild index 7827aaed3475..a900d8ca3142 100644 --- a/games-board/hexxagon/hexxagon-1.0.ebuild +++ b/games-board/hexxagon/hexxagon-1.0.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2008 Gentoo Foundation +# 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.9 2008/04/08 01:45:41 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/hexxagon/hexxagon-1.0.ebuild,v 1.10 2009/08/12 20:32:39 ssuominen Exp $ +EAPI=2 inherit eutils games DESCRIPTION="clone of the original DOS game" @@ -15,14 +16,12 @@ IUSE="" RDEPEND=">=dev-cpp/glibmm-2.4 >=dev-cpp/gtkmm-2.4 - >=x11-libs/gtk+-2.0" + x11-libs/gtk+:2" DEPEND="${RDEPEND} dev-util/pkgconfig" -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-gcc42.patch +src_prepare() { + epatch "${FILESDIR}"/${P}-toolchain.patch } src_install() { |