From f9ef945c317c591e1da866a2bbee69aec5400b4c Mon Sep 17 00:00:00 2001 From: Michael Sterrett Date: Fri, 25 Jun 2004 09:35:19 +0000 Subject: [PATCH] Restore the patching of the source (bug #53636) --- games-roguelike/tome/ChangeLog | 6 +++- games-roguelike/tome/Manifest | 13 ++++---- .../tome/files/2.2.7-gentoo-paths.patch | 31 +++++++++++++++++++ games-roguelike/tome/tome-2.2.7.ebuild | 16 +++++++--- 4 files changed, 54 insertions(+), 12 deletions(-) create mode 100644 games-roguelike/tome/files/2.2.7-gentoo-paths.patch diff --git a/games-roguelike/tome/ChangeLog b/games-roguelike/tome/ChangeLog index 75fb225caa22..6a475f307826 100644 --- a/games-roguelike/tome/ChangeLog +++ b/games-roguelike/tome/ChangeLog @@ -1,6 +1,10 @@ # 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 + +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 tome-2.2.3.ebuild, tome-2.2.5.ebuild: diff --git a/games-roguelike/tome/Manifest b/games-roguelike/tome/Manifest index 0935b35aa158..b211a28c0f5b 100644 --- a/games-roguelike/tome/Manifest +++ b/games-roguelike/tome/Manifest @@ -1,10 +1,11 @@ -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 diff --git a/games-roguelike/tome/files/2.2.7-gentoo-paths.patch b/games-roguelike/tome/files/2.2.7-gentoo-paths.patch new file mode 100644 index 000000000000..d171a1cf540f --- /dev/null +++ b/games-roguelike/tome/files/2.2.7-gentoo-paths.patch @@ -0,0 +1,31 @@ +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"); + diff --git a/games-roguelike/tome/tome-2.2.7.ebuild b/games-roguelike/tome/tome-2.2.7.ebuild index c159775e4ff2..59e2b5e4c394 100644 --- a/games-roguelike/tome/tome-2.2.7.ebuild +++ b/games-roguelike/tome/tome-2.2.7.ebuild @@ -1,6 +1,6 @@ # 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 @@ -14,17 +14,23 @@ SLOT="0" 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 \{\} \; } -- 2.26.2