# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games MY_PN="${PN/-bin/}" MY_P="${P/-bin/}" DESCRIPTION="Torus Trooper is an abstract shooter" HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/tt_e.html http://www.emhsoft.net/ttrooper/index.html" SRC_URI="mirror://sourceforge/${MY_PN}/tt-${PV}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="virtual/opengl virtual/glu media-libs/libsdl media-libs/sdl-mixer" S="${WORKDIR}/tt-0.22" pkg_setup() { if ! built_with_use media-libs/sdl-mixer vorbis ; then eerror "Torus Trooper will crash if sdl-mixer is" eerror "built without vorbis support" die "Please emerge sdl-mixer with USE=vorbis" fi games_pkg_setup } src_compile() { einfo "Nothing to compile" } src_install() { dogamesbin "${FILESDIR}/ttrooper" || die "dogamesbin failed" local dir="${GAMES_PREFIX_OPT}/${PN}" exeinto "${dir}" doexe ttrooper || die "doexe failed" insinto "${dir}" doins -r barrage images sounds || die "doins failed" dodoc readme* || die "dodoc failed" doicon "${FILESDIR}/${PN}.png" make_desktop_entry ttrooper "Torus Trooper" prepgamesdirs }