# 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="" 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 echo $PWD echo ${ESVN_STORE_DIR} svnversion -n ${ESVN_STORE_DIR} SVN_VERSION=`svnversion -n ${ESVN_STORE_DIR}/btanks/trunk` cd "${S}" sed -i \ -e "s/svnversion = os.popen('svnversion -n .', 'r')//" \ -e "s/version = svnversion.readline()/version=\"${SVN_VERSION}\"/" \ -e "s/version = version\[version.rfind(':') + 1:\]/version = version[version.rfind('.') + 1:]/" \ SConstruct || die "sed SConstruct failed" } src_compile() { scons || die "scons failed" } src_install() { dogamesbin bt || die "installing the binary failed" insinto "${GAMES_DATADIR}/bt" doins -r data/* || die "installing data failed" #dodoc README manual.pdf || die "installing docs failed" # optional #doicon ${PN}.xpm #make_desktop_entry ${PN} "KickBall" ${PN}.xpm prepgamesdirs }