# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="s3tc Textures for Unreal Gold (needs the second UT GotY CD)" HOMEPAGE="http://www.unreal.com/ http://www.icculus.org/~ravage/unreal/unrealgold/" SRC_URI="" LICENSE="as-is" SLOT="0" KEYWORDS="-* x86" IUSE="" DEPEND="|| ( games-fps/unreal games-fps/unreal-gold )" RDEPEND="|| ( games-fps/unreal games-fps/unreal-gold )" S="${WORKDIR}" pkg_setup() { export CDROM_NAME="Unreal Tournament GOTY CD2" cdrom_get_cds System/ChaosUT.u games_pkg_setup } src_install() { local dir=${GAMES_PREFIX_OPT}/unreal-gold dodir "${dir}" for x in Ancient.utx DecayedS.utx GenEarth.utx GenFX.utx GenFluid.utx GenIn.utx GenTerra.utx GenWarp.utx HubEffects.utx JWSky.utx Mine.utx NaliCast.utx NaliFX.utx PlayrShp.utx Queen.utx ShaneDay.utx ShaneSky.utx Skaarj.utx SkyBox.utx SkyCity.utx Starship.utx TCrystal.utx TrenchesFX.utx castle1.utx do doins "${CDROM_ROOT}"/Textures/${x} || die "copying ${x}" done prepgamesdirs if has_version games-fps/unreal ; then einfo "" einfo "To use the S3TC Textures you have to set" einfo "UseS3TC=1" einfo "in homedir/.loki/unreal/Unreal.ini" einfo "in the sub-category" einfo "[OpenGLDrv.OpenGLRenderDevice]" einfo "" ; elif has_version games-fps/unreal-gold ; then einfo "" einfo "To use the S3TC Textures you have to set" einfo "UseS3TC=1" einfo "in homedir/.loki/unrealgold/Unreal.ini" einfo "in the sub-category" einfo "[OpenGLDrv.OpenGLRenderDevice]" einfo "" ; fi }