# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games MY_PN=${PN/-bin} MY_P=Gate88_Mar19_05 DESCRIPTION="Multiplayer real-time strategy space shooter" HOMEPAGE="http://www.queasygames.com/gate88/" SRC_URI="http://www.queasygames.com/${MY_PN}/${MY_P}.tar.gz http://www.queasygames.com/${MY_PN}/jason_gate88.png" LICENSE="gate88" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="virtual/opengl virtual/glu sys-libs/lib-compat media-libs/libsdl media-libs/sdl-net media-libs/sdl-mixer" S=${WORKDIR}/${MY_P} src_install() { local dir=${GAMES_PREFIX_OPT}/${PN} insinto "${dir}" doins -r * || die "doins failed" sed "s:datadir:${dir}:" \ "${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} && \ dogamesbin "${T}"/${MY_PN} || die "dogamesbin failed" newicon "${DISTDIR}"/jason_gate88.png ${PN}.png make_desktop_entry ${MY_PN} "Gate 88" rm -rf "${D}/${dir}"/{lib,LGPL*,*.sh} fperms 750 "${dir}"/${MY_PN} prepgamesdirs }