# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games subversion ESVN_REPO_URI="https://btanks.svn.sourceforge.net/svnroot/btanks/trunk" DESCRIPTION="Fast 2d tank arcade game with multiplayer and split-screen modes from SVN TRUNK" HOMEPAGE="http://btanks.sourceforge.net/" SRC_URI="" LICENSE="GPL-1" SLOT="0" KEYWORDS="-*" 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" src_unpack() { subversion_src_unpack SVN_VERSION=`svnversion -n ${ESVN_STORE_DIR}/btanks/trunk` echo ${SVN_VERSION} > ${S}/.svnversion } 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 }