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 | 502c19dda21f153c69898fae0c4a624305a24217 (patch) | |
tree | 228b2dd3c51f6e0f58c5190a32f7b36ceb55f7f6 /games-roguelike | |
parent | use gentoo as the vendor instead of pc (diff) | |
download | gentoo-2-502c19dda21f153c69898fae0c4a624305a24217.tar.gz gentoo-2-502c19dda21f153c69898fae0c4a624305a24217.tar.bz2 gentoo-2-502c19dda21f153c69898fae0c4a624305a24217.zip |
use toolchain-funs; tidy
(Portage version: 2.0.51.19)
Diffstat (limited to 'games-roguelike')
-rw-r--r-- | games-roguelike/moria/ChangeLog | 7 | ||||
-rw-r--r-- | games-roguelike/moria/moria-5.5.2.ebuild | 33 |
2 files changed, 22 insertions, 18 deletions
diff --git a/games-roguelike/moria/ChangeLog b/games-roguelike/moria/ChangeLog index 25555fcd19a6..1b24131c8cc8 100644 --- a/games-roguelike/moria/ChangeLog +++ b/games-roguelike/moria/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for games-roguelike/moria -# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-roguelike/moria/ChangeLog,v 1.5 2004/06/24 23:13:10 agriffis Exp $ +# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-roguelike/moria/ChangeLog,v 1.6 2005/05/17 06:02:35 mr_bones_ Exp $ + + 17 May 2005; Michael Sterrett <mr_bones_@gentoo.org> moria-5.5.2.ebuild: + use toolchain-funs; tidy 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 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 } |