# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="Futuristic FPS ChaosUT Modification" HOMEPAGE="http://chaotic.beyondunreal.com/" SRC_URI="http://download.beyondunreal.com/get.php/1/chaotic/builds/chaosut_v${PV/./-}_full.zip http://download.beyondunreal.com/get.php/6/chaotic/builds/chaosut_v${PV/./-}_full.zip http://download.beyondunreal.com/get.php/3/chaotic/builds/chaosut_v${PV/./-}_full.zip ftp://ftp.edome.net/mirror/beyondunreal/chaotic/mappacks/chaosut_beta4mappack.zip ftp://ftp.edome.net/mirror/beyondunreal/mods/chaosut_beta4mappack.zip ftp://ftp.edome.net/mirror/beyondunreal/chaotic/mappacks/chaosut_gotymappack.zip" LICENSE="as-is" SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="" DEPEND="app-arch/unzip || ( games-fps/unreal-tournament games-fps/unreal-tournament-goty ) games-fps/unreal-tournament-bonuspacks games-util/umodpack" RDEPEND="X? ( virtual/x11 )" S=${WORKDIR} src_install() { # unpack umods umod -v -b `pwd` -x chaosut_v${PV/./-}_full.umod || die "could not unpack chaosut_v${PV/./-}_full.umod" umod -v -b `pwd` -x Chrekinstall.umod || die "could not unpack Chrekinstall.umod" umod -v -b `pwd` -x chaosut_beta4mappack.umod || die "could not unpack chaosut_beta4mappack.umod" # unpack the chaosut_gotymappack.zip and umod if has_version games-fps/unreal-tournament ; then umod -v -b `pwd` -x chaosut_gotymappack.umod || die "could not unpack chaosut_gotymappack.umod" fi # move stuff around rm chaosut_v${PV/./-}_full.umod Chrekinstall.umod chaosut_beta4mappack.umod CUTDesktop.umod CUTServerSetup.umod chrek_readme.txt chaosut_gotymappack.umod # install it all local dir=${GAMES_PREFIX_OPT}/unreal-tournament dodir ${dir} mv * ${D}/${dir}/ prepgamesdirs }