summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-03-31 06:26:12 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-03-31 06:26:12 +0000
commitc000ac440d6453dbf6dddef84ac06c3a1d0e8d16 (patch)
treea7b2bf5ffeeae67d704419716f04ba50054b9855 /games-roguelike
parentvirtual/x11; use flag cleanup; error check sed (Manifest recommit) (diff)
downloadgentoo-2-c000ac440d6453dbf6dddef84ac06c3a1d0e8d16.tar.gz
gentoo-2-c000ac440d6453dbf6dddef84ac06c3a1d0e8d16.tar.bz2
gentoo-2-c000ac440d6453dbf6dddef84ac06c3a1d0e8d16.zip
don't rdepend on sed; error check sed; use games src_compile
Diffstat (limited to 'games-roguelike')
-rw-r--r--games-roguelike/moria/ChangeLog5
-rw-r--r--games-roguelike/moria/moria-5.5.2.ebuild25
2 files changed, 16 insertions, 14 deletions
diff --git a/games-roguelike/moria/ChangeLog b/games-roguelike/moria/ChangeLog
index 5e4511726069..e767c8e894b4 100644
--- a/games-roguelike/moria/ChangeLog
+++ b/games-roguelike/moria/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-roguelike/moria
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/moria/ChangeLog,v 1.3 2004/03/15 17:13:12 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/moria/ChangeLog,v 1.4 2004/03/31 06:26:12 mr_bones_ Exp $
+
+ 30 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> moria-5.5.2.ebuild:
+ don't rdepend on sed; error check sed; use games src_compile
15 Mar 2004; David Holm <dholm@gentoo.org> moria-5.5.2.ebuild:
Added to ~ppc.
diff --git a/games-roguelike/moria/moria-5.5.2.ebuild b/games-roguelike/moria/moria-5.5.2.ebuild
index 0adbb97ccd6e..71af4b25f8db 100644
--- a/games-roguelike/moria/moria-5.5.2.ebuild
+++ b/games-roguelike/moria/moria-5.5.2.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/moria/moria-5.5.2.ebuild,v 1.4 2004/03/15 17:13:12 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/moria/moria-5.5.2.ebuild,v 1.5 2004/03/31 06:26:12 mr_bones_ Exp $
-inherit games eutils gcc
+inherit eutils gcc games
DESCRIPTION="Rogue-like D&D curses game similar to nethack (BUT BETTER)"
HOMEPAGE="http://remarque.org/~grabiner/moria.html"
@@ -17,11 +17,12 @@ LICENSE="Moria"
SLOT="0"
IUSE=""
-DEPEND="virtual/glibc
- >=sys-apps/sed-4
+RDEPEND="virtual/glibc
>=sys-libs/ncurses-5"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
-S=${WORKDIR}/umoria
+S="${WORKDIR}/umoria"
src_unpack() {
unpack ${A}
@@ -38,7 +39,8 @@ src_unpack() {
-e "s:David Grabiner:root:" \
-e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \
-e "s:GENTOO_STATEDIR:${GAMES_STATEDIR}:" \
- config.h
+ config.h \
+ || die "sed config.h failed"
sed -i \
-e "/^STATEDIR =/s:=.*:=\$(DESTDIR)${GAMES_STATEDIR}:" \
-e "/^BINDIR = /s:=.*:=\$(DESTDIR)${GAMES_BINDIR}:" \
@@ -47,16 +49,13 @@ src_unpack() {
-e "/^OWNER = /s:=.*:=${GAMES_USER}:" \
-e "/^GROUP = /s:=.*:=${GAMES_GROUP}:" \
-e "/^CC = /s:=.*:=$(gcc-getCC):" \
- Makefile
-}
-
-src_compile() {
- emake || die "make failed"
+ Makefile \
+ || die "sed Makefile failed"
}
src_install() {
- dodir ${GAMES_BINDIR} ${GAMES_DATADIR}/${PN} ${GAMES_STATEDIR}
- make install DESTDIR=${D} || die
+ dodir "${GAMES_BINDIR}" "${GAMES_DATADIR}/${PN}" "${GAMES_STATEDIR}"
+ make DESTDIR="${D}" install || die "make install failed"
doman doc/moria.6
rm doc/moria.6