# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # Header: $ inherit eutils games MY_P="wolfspdemo-linux-${PV}.x86.run" DESCRIPTION="Return to Castle Wolfenstein - Single-player demo" HOMEPAGE="http://games.activision.com/games/wolfenstein/" SRC_URI="ftp://ftp.idsoftware.com/idstuff/wolf/linux/old/${MY_P} mirror://3dgamers/returnwolfenstein/${MY_P}" LICENSE="RTCW" SLOT="0" KEYWORDS="~x86" IUSE="" RESTRICT="nostrip nomirror" DEPEND="virtual/libc" RDEPEND="virtual/opengl amd64? ( app-emulation/emul-linux-x86-xlibs )" S=${WORKDIR} GAMES_CHECK_LICENSE="yes" dir=${GAMES_PREFIX_OPT}/${PN} Ddir=${D}/${dir} src_unpack() { unpack_makeself ${MY_P} || die "Unpacking files" } src_install() { dodir ${dir} cp -r demomain Docs ${Ddir} mv WolfSP.xpm rtcwdemo-sp.xpm exeinto ${dir} doexe bin/x86/wolfsp.x86 openurl.sh games_make_wrapper rtcwdemo-sp ./wolfsp.x86 "${dir}" "${dir}" insinto ${dir} doins rtcwdemo-sp.xpm CHANGES doicon rtcwdemo-sp.xpm prepgamesdirs make_desktop_entry rtcwdemo-sp "Return to Castle Wolfenstein (SP demo)" rtcwdemo-sp.xpm } pkg_postinst() { games_pkg_postinst einfo "Install 'rtcw-mp-demo' for multi-player" echo einfo "Run 'rtcwdemo-sp' for single-playeer" }