diff options
Diffstat (limited to 'games-strategy/netherearth/netherearth-0.52.ebuild')
-rw-r--r-- | games-strategy/netherearth/netherearth-0.52.ebuild | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/games-strategy/netherearth/netherearth-0.52.ebuild b/games-strategy/netherearth/netherearth-0.52.ebuild index 9a8f51f0d2b8..304f4be0c900 100644 --- a/games-strategy/netherearth/netherearth-0.52.ebuild +++ b/games-strategy/netherearth/netherearth-0.52.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/netherearth/netherearth-0.52.ebuild,v 1.10 2014/08/10 21:21:05 slyfox Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/netherearth/netherearth-0.52.ebuild,v 1.11 2015/03/30 21:25:15 mr_bones_ Exp $ +EAPI=5 inherit eutils games MY_PV="${PV/./}" @@ -19,7 +20,6 @@ RESTRICT="mirror bindist" RDEPEND=">=media-libs/libsdl-1.2.6-r3 >=media-libs/sdl-mixer-1.2.5-r1 media-libs/freeglut" - DEPEND="${RDEPEND} app-arch/unzip" @@ -28,12 +28,14 @@ S=${WORKDIR}/sources data=../nether\ earth\ v${PV} src_unpack() { + unzip -LL "${DISTDIR}/${PN}${MY_PV}.zip" >/dev/null || die + unzip -LL "${DISTDIR}/sources.zip" >/dev/null || die +} + +src_prepare() { DATA_DIR=${GAMES_DATADIR}/${PN} - unzip -LL "${DISTDIR}/${PN}${MY_PV}.zip" >/dev/null || die "unzip ${PN}${MY_PV} failed" - unzip -LL "${DISTDIR}/sources.zip" >/dev/null || die "unzip sources.zip failed" - cd "${S}" - cp "${FILESDIR}/Makefile" . || die "Makefile copying failed" + cp "${FILESDIR}/Makefile" . || die # Fix compilation errors/warnings epatch "${FILESDIR}"/${P}-linux.patch @@ -49,29 +51,29 @@ src_unpack() { -e "s:textures:${DATA_DIR}/textures:" \ -e "s:maps/\*:${DATA_DIR}/maps/\*:" \ -e "s:\./maps:${DATA_DIR}/maps:" \ - mainmenu.cpp || die "sed mainmenu.cpp failed" + mainmenu.cpp || die sed -i \ -e "s:models:${DATA_DIR}/models:g" \ -e "s:textures:${DATA_DIR}/textures:" \ -e "s:sound/:${DATA_DIR}/sound/:" \ - nether.cpp || die "sed nether.cpp failed" + nether.cpp || die sed -i -e "s:maps:${DATA_DIR}/maps:" \ - main.cpp || die "sed main.cpp failed" + main.cpp || die sed -i -e "s:textures/:${DATA_DIR}/textures/:" \ - myglutaux.cpp || die "sed myglutaux.cpp failed" + myglutaux.cpp || die cd "${data}" rm textures/thumbs.db } src_install() { - dogamesbin nether_earth || die "dogamesbin failed" + dogamesbin nether_earth cd "${data}" # Install all game data insinto "${DATA_DIR}" - doins -r maps models sound textures || die "doins failed" + doins -r maps models sound textures dodoc readme.txt |