summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Unbehaun <frostworks@gmx.de>2009-07-29 14:05:32 +0200
committerMarcel Unbehaun <frostworks@gmx.de>2009-07-29 14:05:32 +0200
commit0ff3702126a2c5e8dd0a693ffd9c583bfb67a10b (patch)
treef4500430a31dd762e40d0cb44cad10c96f965c70 /games-action/gunroarhi/gunroarhi-0.30.ebuild
parent(games-action/gunroar) added Manifest (diff)
downloadgamerlay-0ff3702126a2c5e8dd0a693ffd9c583bfb67a10b.tar.gz
gamerlay-0ff3702126a2c5e8dd0a693ffd9c583bfb67a10b.tar.bz2
gamerlay-0ff3702126a2c5e8dd0a693ffd9c583bfb67a10b.zip
(games-action/gunroarhi) added Manifest
(games-action/gunroarhi) added files/digest-gunroarhi-0.30 (games-action/gunroarhi) added files/gunroarhi-0.30.diff (games-action/gunroarhi) added files/gunroarhi.png (games-action/gunroarhi) added gunroarhi-0.30.ebuild (games-action/gunroarhi) added metadata.xml
Diffstat (limited to 'games-action/gunroarhi/gunroarhi-0.30.ebuild')
-rw-r--r--games-action/gunroarhi/gunroarhi-0.30.ebuild75
1 files changed, 75 insertions, 0 deletions
diff --git a/games-action/gunroarhi/gunroarhi-0.30.ebuild b/games-action/gunroarhi/gunroarhi-0.30.ebuild
new file mode 100644
index 0000000..6ddd349
--- /dev/null
+++ b/games-action/gunroarhi/gunroarhi-0.30.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils games
+
+MY_PN=gr_hi
+MY_PV=${PV//./_}
+
+DESCRIPTION="Guns, Guns, Guns! 360-degree gunboat shooter, fork of ABAs 'Gunroar'"
+HOMEPAGE="http://www.edit.ne.jp/~otoyan/soft/gr_hi.html"
+SRC_URI="http://www.edit.ne.jp/~otoyan/soft/gr_hi/${MY_PN}${MY_PV}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl
+ media-libs/mesa
+ media-libs/sdl-mixer"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_PN}
+
+pkg_setup() {
+ games_pkg_setup
+
+ # gcc must be built with "d" USE-FLAG
+ if ! built_with_use sys-devel/gcc:4.1 d; then
+ ewarn "sys-devel/gcc must be built with d for this package"
+ ewarn "to function."
+ die "recompile gcc with USE=\"d\""
+ fi
+ if [ "$(gcc-major-version)" == "4" ] && [ "$(gcc-minor-version)" == "2" ] ; then
+ die "gdc doesn't work with sys-devel/gcc-4.2 currently - use 4.1 instead"
+ fi
+
+}
+
+src_unpack(){
+ unpack ${A}
+ epatch "${FILESDIR}"/${P}.diff
+ sed -i \
+ -e 's:"\(images/[^"]*\)":"'${GAMES_DATADIR}'/'${PN}'/\1":g' -i gr_hi/src/abagames/util/sdl/texture.d \
+ -e 's:"\(sounds/[^"]*\)":"'${GAMES_DATADIR}'/'${PN}'/\1":g' -i gr_hi/src/abagames/util/sdl/sound.d \
+ -e 's:"\(gr.prf[^"]*\)":"'${GAMES_STATEDIR}'/'${PN}'/\1":g' -i gr_hi/src/abagames/gr/prefmanager.d \
+ || die "sed failed"
+}
+
+src_install() {
+ dogamesbin ${PN}
+ dodir "${GAMES_STATEDIR}/${PN}" "${GAMES_STATEDIR}/${PN}/replay"
+ local statedir="${GAMES_STATEDIR}"/${PN}
+
+ if [ ! -e ${D}"${GAMES_STATEDIR}"/${PN}/gr.prf ]; then
+ touch ${D}"${GAMES_STATEDIR}"/${PN}/gr.prf
+ chmod ug+rw ${D}"${GAMES_STATEDIR}"/${PN}/gr.prf
+ fi
+
+ local datadir="${GAMES_DATADIR}"/${PN}
+ dodir ${datadir}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r images sounds || die
+ newicon "${FILESDIR}"/${PN}.png ${PN}.png
+ make_desktop_entry ${PN} ${PN}
+ dodoc readme*
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+}
+
+