diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2005-05-17 06:02:35 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2005-05-17 06:02:35 +0000 |
commit | 63557942fae3b758e21c4a64664c46eeb4c1addb (patch) | |
tree | 28ec8ca34f3cd26332daa7342c542000dadfe243 /games-roguelike/moria/moria-5.5.2.ebuild | |
parent | use gentoo as the vendor instead of pc (diff) | |
download | historical-63557942fae3b758e21c4a64664c46eeb4c1addb.tar.gz historical-63557942fae3b758e21c4a64664c46eeb4c1addb.tar.bz2 historical-63557942fae3b758e21c4a64664c46eeb4c1addb.zip |
use toolchain-funs; tidy
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'games-roguelike/moria/moria-5.5.2.ebuild')
-rw-r--r-- | games-roguelike/moria/moria-5.5.2.ebuild | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/games-roguelike/moria/moria-5.5.2.ebuild b/games-roguelike/moria/moria-5.5.2.ebuild index dee6b9cc64f3..f4ba464e761d 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 Foundation +# Copyright 1999-2005 Gentoo Foundation # 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.9 2004/11/03 12:28:28 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-roguelike/moria/moria-5.5.2.ebuild,v 1.10 2005/05/17 06:02:35 mr_bones_ Exp $ -inherit eutils gcc games +inherit eutils toolchain-funcs games DESCRIPTION="Rogue-like D&D curses game similar to nethack (BUT BETTER)" HOMEPAGE="http://remarque.org/~grabiner/moria.html" @@ -17,17 +17,19 @@ SLOT="0" KEYWORDS="amd64 ppc x86" IUSE="" -DEPEND="virtual/libc - >=sys-libs/ncurses-5" +DEPEND=">=sys-libs/ncurses-5" -S="${WORKDIR}/umoria" +S=${WORKDIR}/umoria src_unpack() { + local f + unpack ${A} - cd ${S} + cd "${S}" - epatch ${FILESDIR}/${PV}-gentoo-paths.patch - epatch ${FILESDIR}/${PV}-glibc.patch + epatch \ + "${FILESDIR}"/${PV}-gentoo-paths.patch \ + "${FILESDIR}"/${PV}-glibc.patch for f in source/* unix/* ; do ln -s ${f} $(basename ${f}) @@ -38,7 +40,7 @@ src_unpack() { -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \ -e "s:GENTOO_STATEDIR:${GAMES_STATEDIR}:" \ config.h \ - || die "sed config.h failed" + || die "sed failed" sed -i \ -e "/^STATEDIR =/s:=.*:=\$(DESTDIR)${GAMES_STATEDIR}:" \ -e "/^BINDIR = /s:=.*:=\$(DESTDIR)${GAMES_BINDIR}:" \ @@ -46,19 +48,18 @@ src_unpack() { -e "/^CFLAGS = /s:=.*:=${CFLAGS}:" \ -e "/^OWNER = /s:=.*:=${GAMES_USER}:" \ -e "/^GROUP = /s:=.*:=${GAMES_GROUP}:" \ - -e "/^CC = /s:=.*:=$(gcc-getCC):" \ + -e "/^CC = /s:=.*:=$(tc-getCC):" \ Makefile \ - || die "sed Makefile failed" + || die "sed failed" + mv doc/moria.6 "${S}" || die "mv failed" } src_install() { dodir "${GAMES_BINDIR}" "${GAMES_DATADIR}/${PN}" "${GAMES_STATEDIR}" make DESTDIR="${D}" install || die "make install failed" - doman doc/moria.6 - rm doc/moria.6 - dodoc README doc/* ${WORKDIR}/${PN}-extras/* + doman moria.6 + dodoc README doc/* "${WORKDIR}"/${PN}-extras/* prepgamesdirs - fperms g+w ${GAMES_STATEDIR}/moriascores } |