# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="Fast 2d tank arcade game with multiplayer and split-screen modes." HOMEPAGE="http://btanks.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="GPL-1" SLOT="0" KEYWORDS="~x86" IUSE="debug" DEPEND="dev-util/scons" RDEPEND=">=dev-libs/libsigc++-2.0 media-libs/libsdl media-libs/sdl-image media-libs/sdl-ttf media-libs/openal media-libs/freealut" S=${WORKDIR}/btanks-${PVR} src_compile() { if use debug; then scons mode=debug prefix=/usr resources_dir=/usr/share/games/btanks || die "scons failed" else scons prefix=/usr resources_dir=/usr/share/games/btanks || die "scons failed" fi } src_install() { mv bt btanks || die "failed to rename bt into btanks" dogamesbin btanks || die "installing the binary failed" insinto "${GAMES_DATADIR}/btanks" doins -r data || die "installing data failed" cd src mv bt.xpm btanks.xpm doicon btanks.xpm make_desktop_entry btanks "Battle Tanks" btanks.xpm prepgamesdirs }