# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-fps/enemy-territory/enemy-territory-2.60b.ebuild,v 1.9 2007/01/31 07:59:44 vapier Exp $ inherit eutils games DESCRIPTION="Beyond the Red Line is a total conversion based on Battlestar Galactica" HOMEPAGE="http://www.game-warden.com/bsg/" SRC_URI="mirror://btrl/BtRLDemoInstaller.run" LICENSE="as-is" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RESTRICT="mirror strip" DEPEND="" RDEPEND="sys-libs/glibc amd64? (app-emulation/emul-linux-x86-sdl)" S=${WORKDIR} dir="${GAMES_PREFIX_OPT}/${PN}" Ddir="${D}/${dir}" src_unpack() { unpack_makeself BtRLDemoInstaller.run tar xf game_data.tar } src_install() { exeinto ${dir} newexe bin/Linux/x86/glibc-2.1/btrl_demo.bin btrl-demo|| die "doexe btrl_demo" insinto ${dir} doins -r data/ || die "doins failed" insinto ${dir}/data doins *.vp dodoc README doicon btrl.png games_make_wrapper btrl_demo ./btrl-demo "${dir}" "${dir}" make_desktop_entry btrl_demo "Beyond the Red Line" btrl.png prepgamesdirs } pkg_postinst() { games_pkg_postinst echo elog "To play the game run:" elog " btrl-demo" echo if use amd64; then elog "If you are running an amd64 system and using ALSA, you must have" elog "ALSA 32-bit emulation enabled in your kernel for this to function properly." echo fi }