# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator games MY_PN="da2" MOD="DA2" # Becomes e.g. da2_beta1_5 MY_PV=$(get_version_component_range 3-3)$(get_version_component_range 1-2) MY_PV=$(replace_all_version_separators '_' ${MY_PV}) DESCRIPTION="Assault mod for UT2004 with improved bot AI" HOMEPAGE="http://www.planetunreal.com/da/" # Is not yet on the mirrors #SRC_URI="mirror://beyondunreal/mods/${MY_PN}_${MY_PV}.zip" SRC_URI="ftp://beyondunreal.gameservers.net/mods/${MY_PN}_${MY_PV}.zip" # See Help/readme.txt LICENSE="free-noncomm" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RESTRICT="primaryuri strip" RDEPEND=">=games-fps/ut2004-3369-r1" DEPEND="${RDEPEND} app-arch/unzip" S=${WORKDIR} dir=${GAMES_PREFIX_OPT}/ut2004 src_install() { # Remove irrelevant files rm -r ${MOD}/{MAC,DA2.exe} insinto "${dir}" doins -r ${MOD} || die "doins failed" games_make_wrapper ${PN} "ut2004 -mod=${MOD}" make_desktop_entry ${PN} "UT2004 - Defence Alliance 2" ut2004.xpm prepgamesdirs }