Restore the patching of the source (bug #53636)
authorMichael Sterrett <mr_bones_@gentoo.org>
Fri, 25 Jun 2004 09:35:19 +0000 (09:35 +0000)
committerMichael Sterrett <mr_bones_@gentoo.org>
Fri, 25 Jun 2004 09:35:19 +0000 (09:35 +0000)
games-roguelike/tome/ChangeLog
games-roguelike/tome/Manifest
games-roguelike/tome/files/2.2.7-gentoo-paths.patch [new file with mode: 0644]
games-roguelike/tome/tome-2.2.7.ebuild

index 75fb225caa223b31e821946804c6183bf446baa6..6a475f307826f278b850637c6dcb5acfbd5d05a5 100644 (file)
@@ -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 <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:
index 0935b35aa15816ce7b4f28f0616227e65a7821b4..b211a28c0f5bdd3f06b4c524b21097e5376a2830 100644 (file)
@@ -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 (file)
index 0000000..d171a1c
--- /dev/null
@@ -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");
index c159775e4ff286ca0a065917464c0211893e62f8..59e2b5e4c3946545dbe2648da288253e991d954a 100644 (file)
@@ -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 \{\} \;
 }