diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2005-03-06 05:49:07 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2005-03-06 05:49:07 +0000 |
commit | 84e1a87827b8487bff788bd7a334129c31d26ae4 (patch) | |
tree | 12f548b2572e4da016d9e8d6b39a9c978269cc8f /games-roguelike/fargoal/fargoal-20040629.ebuild | |
parent | digest fix (diff) | |
download | gentoo-2-84e1a87827b8487bff788bd7a334129c31d26ae4.tar.gz gentoo-2-84e1a87827b8487bff788bd7a334129c31d26ae4.tar.bz2 gentoo-2-84e1a87827b8487bff788bd7a334129c31d26ae4.zip |
version bump; clean old version
(Portage version: 2.0.51.19)
Diffstat (limited to 'games-roguelike/fargoal/fargoal-20040629.ebuild')
-rw-r--r-- | games-roguelike/fargoal/fargoal-20040629.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/games-roguelike/fargoal/fargoal-20040629.ebuild b/games-roguelike/fargoal/fargoal-20040629.ebuild new file mode 100644 index 000000000000..503a3d083e1e --- /dev/null +++ b/games-roguelike/fargoal/fargoal-20040629.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-roguelike/fargoal/fargoal-20040629.ebuild,v 1.1 2005/03/06 05:49:07 mr_bones_ Exp $ + +inherit eutils games + +DESCRIPTION="The Sword of Fargoal - a remake of C64's old dungeon crawler game" +HOMEPAGE="http://squidfighter.sourceforge.net/fargoal/" +SRC_URI="mirror://sourceforge/squidfighter/${PN}${PV}.zip" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="ppc x86" +IUSE="" + +RDEPEND="media-libs/allegro" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}/src" + epatch "${FILESDIR}/gentoo-home-write.patch" + sed -i \ + -e "s/^\(C\(XX\)\?FLAGS =\).*/\1 ${CFLAGS} /g" Makefile \ + || die "sed failed" + sed -i \ + -e "s:sfx/:${GAMES_DATADIR}/${PN}/sfx/:g" \ + -e "s:gfx/:${GAMES_DATADIR}/${PN}/gfx/:g" \ + -e "s:data/:${GAMES_DATADIR}/${PN}/data/:g" {*,../data/sof.cfg} \ + || die "sed failed" + sed -i \ + -e "s:agreement.txt:${GAMES_DATADIR}/${PN}/&:" main.c \ + || die "sed failed" +} + +src_compile() { + emake -C src || die "emake failed" +} + +src_install() { + # install as fargoal instead of sword since that may conflict with + # other packages. + newgamesbin sword fargoal || die "newgamesbin failed" + dodir "${GAMES_DATADIR}/${PN}" + cp -r agreement.txt {data,gfx,sfx} "${D}/${GAMES_DATADIR}/${PN}" \ + || die "cp failed" + dohtml readme.html + prepgamesdirs +} |