diff -aur --unidirectional-new-file /usr/portage/games-roguelike/tome/files/gentoo-paths.patch /usr/local/portage/games-roguelike/tome/files/gentoo-paths.patch --- /usr/portage/games-roguelike/tome/files/gentoo-paths.patch 1970-01-01 01:00:00.000000000 +0100 +++ /usr/local/portage/games-roguelike/tome/files/gentoo-paths.patch 2004-06-10 23:58:17.000000000 +0200 @@ -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 -aur --unidirectional-new-file /usr/portage/games-roguelike/tome/files/makefile-ncurses.patch /usr/local/portage/games-roguelike/tome/files/makefile-ncurses.patch --- /usr/portage/games-roguelike/tome/files/makefile-ncurses.patch 1970-01-01 01:00:00.000000000 +0100 +++ /usr/local/portage/games-roguelike/tome/files/makefile-ncurses.patch 2004-06-11 16:20:40.659560816 +0200 @@ -0,0 +1,15 @@ +--- makefile 2004-06-11 04:45:12.662310408 +0200 ++++ makefile~ 2004-06-11 04:43:31.787645688 +0200 +@@ -154,10 +154,10 @@ + # + COPTS = -Wall -O1 -pipe -g + INCLUDES = -I/usr/X11R6/include +-DEFINES = -DUSE_X11 \ ++DEFINES = -DUSE_GCU -DUSE_X11 \ + -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA \ + -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK +-LIBS = -lX11 -L/usr/X11R6/lib ++LIBS = -lncurses -lX11 -L/usr/X11R6/lib + + + diff -aur --unidirectional-new-file /usr/portage/games-roguelike/tome/tome-2.2.7.ebuild /usr/local/portage/games-roguelike/tome/tome-2.2.7.ebuild --- /usr/portage/games-roguelike/tome/tome-2.2.7.ebuild 2004-06-03 12:38:25.000000000 +0200 +++ /usr/local/portage/games-roguelike/tome/tome-2.2.7.ebuild 2004-06-11 16:20:40.668559448 +0200 @@ -14,18 +14,24 @@ 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 src_unpack() { unpack ${A} - cp "${S}/src/makefile.std" "${S}/src/makefile" \ - || die "cp failed" - find "${S}" -name .cvsignore -exec rm -f \{\} \; + cd ${S}/src + mv makefile.std makefile + epatch "${FILESDIR}/makefile-ncurses.patch" + epatch "${FILESDIR}/gentoo-paths.patch" + sed -i \ + -e "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c \ + || die "sed failed" } src_compile() {