# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-fps/postal2mpdemo/postal2mpdemo-1407.ebuild,v 1.16 2006/03/31 21:26:46 wolf31o2 Exp $ inherit eutils games DESCRIPTION="You play the Postal Dude: POSTAL 2 is only as violent as you are." HOMEPAGE="http://www.gopostal.com/home/" SRC_URI="mirror://3dgamers/postal2/Missions/${PN}-lnx-${PV}.tar.bz2" LICENSE="postal2" SLOT="0" KEYWORDS="~amd64 x86" IUSE="" RESTRICT="mirror" RDEPEND="|| ( x11-libs/libXext virtual/x11 ) amd64? ( app-emulation/emul-linux-x86-baselibs app-emulation/emul-linux-x86-xlibs >=media-video/nvidia-glx-1.0.6629-r3 )" S="${WORKDIR}" dir="${GAMES_PREFIX_OPT}/${PN}" Ddir="${D}/${dir}" pkg_setup() { check_license postal2 games_pkg_setup } src_unpack() { unpack ${A} unpack_makeself postal2mpdemo-lnx-${PV}.run rm postal2mpdemo-lnx-${PV}.run } src_install() { dodir ${dir} tar -xf postal2mpdemo.tar -C ${Ddir}/ || die "failed unpacking postal2mpdemo.tar" tar -xf linux-specific.tar -C ${Ddir}/ || die "failed unpacking linux-specific.tar" insinto ${dir} doins README.linux postal2mpdemo.xpm postal2mpdemo_eula.txt exeinto ${dir} doexe bin/postal2mpdemo || die "doexe failed" dodir "${GAMES_BINDIR}" dosym "${dir}/postal2mpdemo" "${GAMES_BINDIR}/postal2mpdemo" doicon ${PN}.xpm make_desktop_entry ${PN} "Postal 2: Share the Pain (Demo)" ${PN}.xpm prepgamesdirs }