# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games MAP_VER="1.0" MY_PN="opencoop" DESCRIPTION="Co-op mod for Doom 3" HOMEPAGE="http://www.d3opencoop.com/" SRC_URI="http://firedevil.de/downloads/mods/${MY_PN}/${MY_PN}${PV}.zip http://www.firedevil.de/downloads/mods/${MY_PN}/oc_mappack1v${MAP_VER}.zip" LICENSE="as-is" SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="" RESTRICT="primaryuri strip" RDEPEND="games-fps/doom3" DEPEND="${RDEPEND} app-arch/unzip" S=${WORKDIR} dir=${GAMES_PREFIX_OPT}/doom3 src_install() { cp final/* ${MY_PN} insinto "${dir}" doins -r ${MY_PN} || die "doins failed" games_make_wrapper ${PN} "doom3 +set fs_game ${MY_PN}" make_desktop_entry ${PN} "Doom III - Open Co-op" doom3.png prepgamesdirs }