diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2004-05-30 07:22:24 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2004-05-30 07:22:24 +0000 |
commit | e8f2edbb38602447ed89f02a5a8528ee8ef9c7b4 (patch) | |
tree | 0d42293fb8983a6821261a56a6df10f6eaa640a0 /games-arcade/abe/abe-1.0.ebuild | |
parent | mailx move (diff) | |
download | historical-e8f2edbb38602447ed89f02a5a8528ee8ef9c7b4.tar.gz historical-e8f2edbb38602447ed89f02a5a8528ee8ef9c7b4.tar.bz2 historical-e8f2edbb38602447ed89f02a5a8528ee8ef9c7b4.zip |
Initial commit - ebuild and patch from Alexandru Toma via bug #47591
Diffstat (limited to 'games-arcade/abe/abe-1.0.ebuild')
-rw-r--r-- | games-arcade/abe/abe-1.0.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/games-arcade/abe/abe-1.0.ebuild b/games-arcade/abe/abe-1.0.ebuild new file mode 100644 index 000000000000..296dcf387e25 --- /dev/null +++ b/games-arcade/abe/abe-1.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/abe/abe-1.0.ebuild,v 1.1 2004/05/30 07:22:24 mr_bones_ Exp $ + +inherit eutils games + +MY_P="${P/./_}" +DESCRIPTION="A scrolling, platform-jumping, key-collecting, ancient pyramid exploring game" +HOMEPAGE="http://abe.sourceforge.net" +SRC_URI="mirror://sourceforge/abe/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +RDEPEND=">=media-libs/libsdl-1.2.3 + >=media-libs/sdl-mixer-1.2.5" + +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +S="${WORKDIR}/${MY_P}" +DEST_DIR="${GAMES_DATADIR}/${PN}" + +src_unpack() { + unpack ${A} + cd "${S}/src" + + # Modify paths to resources + sed -i \ + -e "s:\"images\":\"${DEST_DIR}/images\":" Image.h \ + || die "sed Image.h failed" + sed -i \ + -e "s:\"maps\":\"${DEST_DIR}/maps\":" Map.h MapIO.h \ + || die "sed Map.h MapIO.h failed" + sed -i \ + -e "s:\"sounds\":\"${DEST_DIR}/sounds\":" Sound.h \ + || die "sed Sound.h failed" + epatch "${FILESDIR}/${PV}-gentoo-paths.patch" +} + +src_compile() { + ./autogen.sh || die "autogen.sh failed" + egamesconf || die + emake || die "emake failed" +} + +src_install() { + dogamesbin abe || die "dogamesbin failed" + dodir "${DEST_DIR}" + cp -R images sounds maps "${D}${DEST_DIR}" || die "cp failed" + dodoc README + prepgamesdirs +} |