summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2013-04-07 21:22:22 +0000
committerAlfredo Tupone <tupone@gentoo.org>2013-04-07 21:22:22 +0000
commite388e008ba4bbc9d079995721e9eb55d2ec989d1 (patch)
tree7e0597709021b42218e2f2bc70a89ce28dae4d9c /games-board/crafty
parentRemove wrong sed on QT_INSTALL_{LIBS,PLUGINS}. See bug 304971 comments 16-18. (diff)
downloadhistorical-e388e008ba4bbc9d079995721e9eb55d2ec989d1.tar.gz
historical-e388e008ba4bbc9d079995721e9eb55d2ec989d1.tar.bz2
historical-e388e008ba4bbc9d079995721e9eb55d2ec989d1.zip
Fix bad behaviour on x86. Bug #463164
Package-Manager: portage-2.1.11.55/cvs/Linux x86_64 Manifest-Sign-Key: 0x0145142D
Diffstat (limited to 'games-board/crafty')
-rw-r--r--games-board/crafty/ChangeLog6
-rw-r--r--games-board/crafty/Manifest19
-rw-r--r--games-board/crafty/crafty-23.4.ebuild5
-rw-r--r--games-board/crafty/files/crafty-23.4-64bits.patch16
4 files changed, 39 insertions, 7 deletions
diff --git a/games-board/crafty/ChangeLog b/games-board/crafty/ChangeLog
index 536e70f3cdda..1acb4fff91fa 100644
--- a/games-board/crafty/ChangeLog
+++ b/games-board/crafty/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-board/crafty
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.54 2013/01/25 06:29:31 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.55 2013/04/07 21:21:53 tupone Exp $
+
+ 07 Apr 2013; Alfredo Tupone <tupone@gentoo.org> crafty-23.4.ebuild,
+ +files/crafty-23.4-64bits.patch:
+ Fix bad behaviour on x86. Bug #463164 by Kobboi
25 Jan 2013; Michael Sterrett <mr_bones_@gentoo.org> crafty-23.4.ebuild:
point HOMEPAGE at an actual web page
diff --git a/games-board/crafty/Manifest b/games-board/crafty/Manifest
index 46252025a3c9..f6120d1eb741 100644
--- a/games-board/crafty/Manifest
+++ b/games-board/crafty/Manifest
@@ -1,5 +1,16 @@
-DIST crafty-23.4.zip 426295 SHA256 f49e119b9e843bd1f99b895919b4361ba0d6ae4349e2751a864872d6dd250e66
-DIST crafty.doc.ascii 79678 SHA256 be291c0f4c7e7d64404ec58b9e92c2455c4342d3c96c721ba21a80fce8332e83
-EBUILD crafty-23.4.ebuild 2632 SHA256 cbbdb4f7961394bf7a6aee84f3648792a488f0e6406ad91d6bf6b03d19eedb02 SHA512 b89df9912f26e94a404df1b4ba9f17d148fe7c41bfb9dff60cd784269cf018557ba6e6652134c1524397be0df1fe4720b5948bdc04932db1d559dbfa0a5a3f60 WHIRLPOOL 49a190d8c6c3011c3ec9f8874678573b48ce7260a363f499041eb25db9517a6f23e049717807300353ebcbb3af2ee7dfd6977c2e431ad4d800354088e24c2141
-MISC ChangeLog 6967 SHA256 06a9284e1bc94472c48af253bd741d1e469a2d69f8d0ec9e992902eddaff5648 SHA512 c86f585418449791e32dfdebdf9645842e77466babaf77a647bb30f6134bd4238916d453abfdf7eb525110e06476b0902e08797108cc6e9973606191a3f3fddc WHIRLPOOL 00e9112a6135d0d95c5e7aded916a739647abbbf3055ee82ca52f3dda10c32e1c0bb632a87d20e9f076463ad0745d714c89a6d67079e8bc01c8de4afe4a5a2b5
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX crafty-23.4-64bits.patch 541 SHA256 3126e5746d72faa8b7d5fbfba50acc2b4d874c90d9662b1ca55341c8314c1e79 SHA512 d809cbc88f5c4615abc6293ff6b67ef2755fad38ad464d7778256c1acb3e9e75d748339ed664ce31e3f1f87dbbf92a96adec4b4e13cba78047de239d78746873 WHIRLPOOL b08a09ad1a224f202bfe94b6b8296e87ff6c7fe34b1eb660cf8b64f2db8fe4f50253e0dbea9aade41a4bf07a36311d0cfbec7e57d596bf8dd46de7ac54cb6fa0
+DIST crafty-23.4.zip 426295 SHA256 f49e119b9e843bd1f99b895919b4361ba0d6ae4349e2751a864872d6dd250e66 SHA512 30bc4a5a2b45e945db3d57d0039e8b9c3dae641686c7d3d5292b34d357be7cf819c6d0a94e8a3150f5e5938c9d4490093557ec501f7ec0e58be75927195508be WHIRLPOOL 7e95e108375d9de1419b8dbeb9ceb417c33101018bd765f2be42927bee15941f7eb5b5c91394b1c859201e7f0c14e19d9588b00ac5fe4854f4782577b70ea76e
+DIST crafty.doc.ascii 79678 SHA256 be291c0f4c7e7d64404ec58b9e92c2455c4342d3c96c721ba21a80fce8332e83 SHA512 562698c3954e53f05c009025291bdb748baaa08616437796a08b42198057cff9f9efa7a8caf41574e71dafe60f4c132dc9497ad5ed9a83b8f071d1c31c8583b8 WHIRLPOOL 8786cafa5afd98b6878467701ff19206f220b20fd3f575f51f17a052de709d7f5572632dd56876d34a412d4628a6c4eb984ec6e6f148a3418ff16617d7670845
+EBUILD crafty-23.4.ebuild 2676 SHA256 186b44d442942181d8a2de22d874420c9746774f0a211cdb93ba49eeace23848 SHA512 00398bb9264bdc8b173add3bc226947f3100161ccfe5c69ca3398581dc3783618a8a13f574611be24ad34639aabbc9044a6208171a6c1f36fee3607d5166fe29 WHIRLPOOL d689920267389de1dc3a3dccca14e26f4235a72fe60a4253e5eeb77b728af50ec50ee68100639d561f9321d2d2755c39c5635b829867cd8c3d54fda21dc4eb06
+MISC ChangeLog 7120 SHA256 186a7e89e703197f1e9be208391fef3d927ebfb23dc33f8969841df1ca02dc71 SHA512 23f3e10495e1fde0d9101597a6bc37f34fa089a2b087caa949c4529f03cb90ccf9437b04eff021d90d5f588ee079b9556c567125084355821fe2656df32cd115 WHIRLPOOL b9be96dc8045665376082e155fd807fdc55cc33e037ffd7e4415ffb8ba04628778bc98ae35605369b546c6c11ceba727d9921b9ba6c34103015d3f40eee05496
MISC metadata.xml 249 SHA256 49f221ca292eb58886695b31631b28f38321f3fd6dfd265bba9991b093d68dec SHA512 eb748485c491ffc953879496bfd0170b091a7c7653eb19fe2317d439b51bc0b5e6cc89d2b81778e8a8468e04a0b4914159fc8ed5c54d956fcaedf20adfe43a7c WHIRLPOOL 745bf5f9fb3b7458b7744fbb7a0392f9eebb9b08976e9d0252f409540a800110428ea470d6475c12c4375f5c8bab5c342de7854431ac8b67e2401b24caa13cf5
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iEYEAREIAAYFAlFh43gACgkQIY77eQFFFC0W0gCgl4sqmNURz1+oNZoyeXxVEH3C
+jnAAnjk1bGpUYRIHpkjt4+wf5tpJONOh
+=1kde
+-----END PGP SIGNATURE-----
diff --git a/games-board/crafty/crafty-23.4.ebuild b/games-board/crafty/crafty-23.4.ebuild
index 106ba0579425..a4462950909c 100644
--- a/games-board/crafty/crafty-23.4.ebuild
+++ b/games-board/crafty/crafty-23.4.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/crafty-23.4.ebuild,v 1.5 2013/01/25 06:29:31 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/crafty-23.4.ebuild,v 1.6 2013/04/07 21:21:53 tupone Exp $
EAPI=2
-inherit flag-o-matic toolchain-funcs games
+inherit flag-o-matic toolchain-funcs eutils games
DESCRIPTION="Bob Hyatt's strong chess engine"
HOMEPAGE="http://www.craftychess.com/"
@@ -30,6 +30,7 @@ src_prepare() {
sed -i \
-e "s:\"crafty.hlp\":\"${GAMES_DATADIR}/${PN}/crafty.hlp\":" option.c \
|| die "sed failed"
+ epatch "${FILESDIR}"/${P}-64bits.patch
}
src_compile() {
diff --git a/games-board/crafty/files/crafty-23.4-64bits.patch b/games-board/crafty/files/crafty-23.4-64bits.patch
new file mode 100644
index 000000000000..9dc06a048819
--- /dev/null
+++ b/games-board/crafty/files/crafty-23.4-64bits.patch
@@ -0,0 +1,16 @@
+--- chess.h.old 2013-04-07 23:04:54.708245856 +0200
++++ chess.h 2013-04-07 23:05:20.052002160 +0200
+@@ -140,13 +140,7 @@
+ # define QUEEN_VALUE 1050
+ # define KING_VALUE 40000
+ # define MAX_DRAFT 256
+-# if defined(HAS_64BITS)
+-typedef unsigned long BITBOARD;
+-# elif defined(NT_i386)
+-typedef unsigned __int64 BITBOARD;
+-# else
+ typedef unsigned long long BITBOARD;
+-# endif
+ # if defined(NT_i386)
+ # define BMF "%I64u"
+ # define BMF6 "%6I64u"