# ChangeLog for games-roguelike/tome
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/ChangeLog,v 1.11 2004/06/24 23:14:24 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/ChangeLog,v 1.12 2004/06/25 09:35:19 mr_bones_ Exp $
+
+ 25 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/2.2.7-gentoo-paths.patch, tome-2.2.7.ebuild:
+ Restore the patching of the source (bug #53636)
03 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> tome-2.2.3.ebuild,
tome-2.2.5.ebuild:
-MD5 3107571a2393e38c5e67922b97ff98f4 tome-2.2.7.ebuild 1635
+MD5 3e513fd216488b16a24207c1d56ddb1e ChangeLog 2848
MD5 0c4f516bde25b73a560647797660c7df tome-2.2.6.ebuild 1715
-MD5 3fbc4e55bce2178fee425bf9ef73f986 tome-2.2.5-r1.ebuild 1578
-MD5 ce22e921133428bde8e9115d3af9b43f ChangeLog 2687
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
-MD5 5a001b935d01d828ea36c4f5b1c75419 files/digest-tome-2.2.6 65
-MD5 a23d89bdd5d10666dd7030963ba64983 files/digest-tome-2.2.7 66
-MD5 23dd9f8f71868b8ab82d8bbbc79ad740 files/2.2.5-gentoo-paths.patch 1172
+MD5 3fbc4e55bce2178fee425bf9ef73f986 tome-2.2.5-r1.ebuild 1578
+MD5 fcdc294de1d0f29b52b421dad4cdcf62 tome-2.2.7.ebuild 1784
MD5 23dd9f8f71868b8ab82d8bbbc79ad740 files/2.2.6-gentoo-paths.patch 1172
+MD5 23dd9f8f71868b8ab82d8bbbc79ad740 files/2.2.7-gentoo-paths.patch 1172
+MD5 23dd9f8f71868b8ab82d8bbbc79ad740 files/2.2.5-gentoo-paths.patch 1172
MD5 44a615ff66d86ba4e6b431a73ed386bc files/digest-tome-2.2.5-r1 62
+MD5 5a001b935d01d828ea36c4f5b1c75419 files/digest-tome-2.2.6 65
+MD5 a23d89bdd5d10666dd7030963ba64983 files/digest-tome-2.2.7 66
--- /dev/null
+diff -rU 1 tome-225-src.orig/src/files.c tome-225-src/src/files.c
+--- tome-225-src.orig/src/files.c 2004-01-14 11:17:02.423263360 -0500
++++ tome-225-src/src/files.c 2004-01-14 11:17:50.074019344 -0500
+@@ -5670,3 +5670,3 @@
+ /* Build the filename */
+- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
++ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
+
+@@ -5748,3 +5748,3 @@
+ /* Build the filename */
+- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
++ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
+
+@@ -5846,3 +5846,3 @@
+ /* Build the filename */
+- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
++ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
+
+@@ -6296,3 +6296,3 @@
+ /* Build the filename */
+- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
++ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
+
+diff -rU 1 tome-225-src.orig/src/init2.c tome-225-src/src/init2.c
+--- tome-225-src.orig/src/init2.c 2004-01-14 11:17:02.473255760 -0500
++++ tome-225-src/src/init2.c 2004-01-14 11:17:58.286770816 -0500
+@@ -6686,3 +6686,3 @@
+ /* Build the filename */
+- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
++ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
+
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/tome-2.2.7.ebuild,v 1.2 2004/06/24 23:14:24 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/tome-2.2.7.ebuild,v 1.3 2004/06/25 09:35:19 mr_bones_ Exp $
inherit eutils games
KEYWORDS="x86 ~ppc ~amd64"
IUSE=""
-DEPEND="virtual/glibc
+RDEPEND="virtual/glibc
dev-lang/lua
>=sys-libs/ncurses-5
virtual/x11"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
-S=${WORKDIR}/tome-${MY_PV}-src
+S="${WORKDIR}/tome-${MY_PV}-src"
src_unpack() {
unpack ${A}
- cp "${S}/src/makefile.std" "${S}/src/makefile" \
- || die "cp failed"
+ cd "${S}/src"
+ mv makefile.std makefile
+ epatch "${FILESDIR}/${PV}-gentoo-paths.patch"
+ sed -i \
+ -e "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c \
+ || die "sed failed"
find "${S}" -name .cvsignore -exec rm -f \{\} \;
}