# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-action/postalplus/postalplus-1.ebuild,v 1.3 2009/05/25 22:22:49 nyhm Exp $ inherit eutils games DESCRIPTION="Ultraviolent and controversial game featuring the Postal Dude" HOMEPAGE="http://www.lokigames.com/products/postal/" SRC_URI="" LICENSE="LOKI-EULA" SLOT="0" KEYWORDS="~x86" IUSE="" RESTRICT="strip" PROPERTIES="interactive" S=${WORKDIR} GAMES_CHECK_LICENSE="yes" src_install() { local dir=${GAMES_PREFIX_OPT}/${PN} cdrom_get_cds postal_plus.ini exeinto "${dir}" doexe "${CDROM_ROOT}"/bin/x86/postal || die insinto "${dir}" doins "${CDROM_ROOT}"/{icon.{bmp,xpm},postal_plus.ini,README} || die cp "${CDROM_ROOT}"/icon.xpm ${PN}.xpm || die cp -r "${CDROM_ROOT}"/res "${D}${dir}" || die "cp data failed" find "${D}" -name TRANS.TBL -exec rm '{}' + games_make_wrapper ${PN} ./postal "${dir}" doicon ${PN}.xpm make_desktop_entry ${PN} "Postal Plus" ${PN} prepgamesdirs }