# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-fps/unreal/unreal-226.ebuild,v 1.12 2005/10/21 17:43:48 wolf31o2 Exp $ 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 MANUALS/Gold\ Manual\ addedum.doc ; games_pkg_setup } src_install() { local dir=${GAMES_PREFIX_OPT}/unreal-gold dodir "${dir}" doins "${CDROM_ROOT}"/Textures/{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} || die "copy S3TC Textures" ; 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 }