summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-10-23 11:24:20 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-10-23 11:24:20 +0000
commit565e652e0773b33ae8343ba0dafc79cd85e30d19 (patch)
treef309d4d8fa3a9ccc00fc06ea724eb4eacbc48f12 /games-roguelike/zangband
parentamd64 stable wrt #214397 (diff)
downloadgentoo-2-565e652e0773b33ae8343ba0dafc79cd85e30d19.tar.gz
gentoo-2-565e652e0773b33ae8343ba0dafc79cd85e30d19.tar.bz2
gentoo-2-565e652e0773b33ae8343ba0dafc79cd85e30d19.zip
Keyword ~amd64 wrt #215578.
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Diffstat (limited to 'games-roguelike/zangband')
-rw-r--r--games-roguelike/zangband/ChangeLog6
-rw-r--r--games-roguelike/zangband/files/zangband-2.7.4c-rng.patch11
-rw-r--r--games-roguelike/zangband/zangband-2.7.4c.ebuild7
3 files changed, 20 insertions, 4 deletions
diff --git a/games-roguelike/zangband/ChangeLog b/games-roguelike/zangband/ChangeLog
index 0dd6c3c1f851..f62b6b7fc77e 100644
--- a/games-roguelike/zangband/ChangeLog
+++ b/games-roguelike/zangband/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-roguelike/zangband
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/zangband/ChangeLog,v 1.16 2009/08/06 20:15:22 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/zangband/ChangeLog,v 1.17 2009/10/23 11:24:19 ssuominen Exp $
+
+ 23 Oct 2009; Samuli Suominen <ssuominen@gentoo.org>
+ zangband-2.7.4c.ebuild:
+ Keyword ~amd64 wrt #215578.
06 Aug 2009; Michael Sterrett <mr_bones_@gentoo.org>
zangband-2.7.4c.ebuild, +files/zangband-2.7.4c-tk85.patch:
diff --git a/games-roguelike/zangband/files/zangband-2.7.4c-rng.patch b/games-roguelike/zangband/files/zangband-2.7.4c-rng.patch
new file mode 100644
index 000000000000..b0dcee1b3022
--- /dev/null
+++ b/games-roguelike/zangband/files/zangband-2.7.4c-rng.patch
@@ -0,0 +1,11 @@
+--- zangband/src/z-rand.c 2004-08-01 05:23:42.000000000 -0400
++++ zangband/src/z-rand.c 2008-03-29 22:47:41.188013957 -0400
+@@ -168,7 +168,7 @@
+ r = (Rand_state[j] += Rand_state[Rand_place]);
+
+ /* Hack -- extract a 28-bit "random" number */
+- r = (r >> 4) / n;
++ r = ((r >> 4) & 0x0FFFFFFF) / n;
+
+ /* Advance the index */
+ Rand_place = j;
diff --git a/games-roguelike/zangband/zangband-2.7.4c.ebuild b/games-roguelike/zangband/zangband-2.7.4c.ebuild
index 2d33433babe9..8a3a01ec4dc6 100644
--- a/games-roguelike/zangband/zangband-2.7.4c.ebuild
+++ b/games-roguelike/zangband/zangband-2.7.4c.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-roguelike/zangband/zangband-2.7.4c.ebuild,v 1.7 2009/08/06 20:15:22 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/zangband/zangband-2.7.4c.ebuild,v 1.8 2009/10/23 11:24:19 ssuominen Exp $
EAPI=2
inherit autotools games
@@ -11,7 +11,7 @@ SRC_URI="ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/${P}.tar.gz"
LICENSE="Moria"
SLOT="0"
-KEYWORDS="~ppc ~x86 ~x86-fbsd"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
IUSE="tk"
RDEPEND="tk? (
@@ -24,7 +24,8 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${PN}
src_prepare() {
- epatch "${FILESDIR}"/${P}-tk85.patch
+ epatch "${FILESDIR}"/${P}-tk85.patch \
+ "${FILESDIR}"/${P}-rng.patch
eautoreconf
}