Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 134110 Details for
Bug 134156
games-fps/unreal-tournament-451 ebuild tidy-up
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
unreal-tournament-451-r1.ebuild
unreal-tournament-451-r1.ebuild (text/plain), 15.49 KB, created by
James Le Cuirot
on 2007-10-22 10:46:06 UTC
(
hide
)
Description:
unreal-tournament-451-r1.ebuild
Filename:
MIME Type:
Creator:
James Le Cuirot
Created:
2007-10-22 10:46:06 UTC
Size:
15.49 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils games > >DESCRIPTION="Unreal Tournament 99 - futuristic deathmatch shooter" >HOMEPAGE="http://www.unrealtournament.com/ > http://utpg.org/" >SRC_URI="mirror://lokigames/../beta/ut/ut-install-436-GOTY.run > mirror://lokigames/../patches/ut/ut-install-436.run > http://utpg.org/patches/UTPGPatch${PV}.tar.bz2" > >LICENSE="as-is" >SLOT="0" >KEYWORDS="-* ~amd64 ~x86" >IUSE="3dfx dedicated doc highres opengl linguas_es linguas_fr linguas_it" >RESTRICT="strip" > >UIDEPEND="x86? ( > 3dfx? ( media-libs/glide ) > opengl? ( virtual/opengl ) > sdl? ( media-libs/libsdl ) > x11-libs/libXext > x11-libs/libX11 > x11-libs/libXau > x11-libs/libXdmcp ) > amd64? ( app-emulation/emul-linux-x86-sdl )" >RDEPEND="dedicated? ( games-server/unreal-tournament-ded )" >DEPEND="${UIDEPEND} > >=app-arch/unshield-0.5-r1 > dev-util/xdelta > !games-fps/unreal-tournament-goty" > >S=${WORKDIR} >dir=${GAMES_PREFIX_OPT}/${PN} >Ddir=${D}/${dir} > >set_dirs() { > # The top-level directory names can change per CD. > if [[ "${UT_EDITION}" == "anthology" ]] || [[ -e "${CDROM_ROOT}/System" ]] ; then > HELP_DIR="Help" > MUSIC_DIR="Music" > SOUNDS_DIR="Sounds" > SYSTEM_DIR="System" > TEXTURES_DIR="Textures" > else > HELP_DIR="HELP" > MUSIC_DIR="MUSIC" > SOUNDS_DIR="SOUNDS" > SYSTEM_DIR="SYSTEM" > TEXTURES_DIR="TEXTURES" > fi > > if [[ "${UT_EDITION}" == "anthology" ]] || [[ -e "${CDROM_ROOT}/Maps" ]] ; then > MAPS_DIR="Maps" > elif [[ -e "${CDROM_ROOT}/MAPS" ]] ; then > MAPS_DIR="MAPS" > else > MAPS_DIR="maps" > fi >} > >unpack_patches() { > mkdir patch-ut > cd patch-ut > > if [[ "${UT_EDITION}" == "goty" ]] || [[ "${UT_EDITION}" == "anthology" ]] ; then > einfo "Unpacking UT GOTY patch" > unpack_makeself ut-install-436-GOTY.run > else > einfo "Unpacking UT original patch" > unpack_makeself ut-install-436.run > fi > > cd .. > > # Copy startup script and hard-code game path. > sed "s:\`FindPath \$0\`:${dir}:" patch-ut/bin/x86/ut > ut || die "sed ut" > > # Apply any patches. If some fail, don't panic. > for patch in patch-ut/setup.data/data/System/*.0 ; do > xdelta patch ${patch} System/`basename ${patch} .0` patched && mv patched System/`basename ${patch} .0` > done > > if use 3dfx ; then > unpack ./patch-ut/Glide.ini.tar.gz || die "unpack Glide.ini" > else > unpack ./patch-ut/OpenGL.ini.tar.gz || die "unpack OpenGL.ini" > fi > > unpack ./patch-ut/{data,Credits}.tar.gz > unpack UTPGPatch${PV}.tar.bz2 > rm -f {,System/}{checkfiles.sh,patch.md5} > > # Tweak the default settings for today's original of PCs and good preferences. > sed -i -r \ > -e "s/CacheSizeMegs=[0-9]+/CacheSizeMegs=64/" \ > -e "s/DoPrecache=.*$/DoPrecache=1/" \ > -e "s/UseTrilinear=.*$/UseTrilinear=True/" \ > -e "s/ScreenFlashes=.*$/ScreenFlashes=False/" \ > -e "s/OutputRate=[0-9]+Hz/OutputRate=44100Hz/" \ > -e "s/Channels=[0-9]+/Channels=24/" \ > System/UnrealTournament.ini || die "sed UnrealTournament.ini" > > if use highres ; then > S3TC=1 > else > S3TC=0 > fi > > # Enable S3TC for high resolution textures, if necessary. > sed -i \ > -e "s/UseS3TC=.*$/UseS3TC=${S3TC}/" \ > System/UnrealTournament.ini || die "sed UnrealTournament.ini S3TC" > > if use opengl ; then > # Recommended at http://icculus.org/lgfaq/#renderer. > RENDERER="OpenGLDrv\.OpenGLRenderDevice" > elif use 3dfx ; then > # Maybe someone still uses them! > RENDERER="GlideDrv\.GlideRenderDevice" > else > # Switch to software renderer. > RENDERER="SDLSoftDrv.SDLSoftwareRenderDevice" > fi > > # Change default renderer. > sed -i \ > -e "s/GameRenderDevice=.*$/GameRenderDevice=${RENDERER}/" \ > -e "s/WindowedRenderDevice=.*$/WindowedRenderDevice=${RENDERER}/" \ > -e "s/RenderDevice=.*$/RenderDevice=${RENDERER}/" \ > System/UnrealTournament.ini || die "sed UnrealTournament.ini renderer" > > # Fix server vulnerability - part of bug #44351. > sed -i \ > -e "/^LoadClassMismatch/s:%s.%s:%s:" \ > System/Core.int || die "sed Core.int" > > # Remove duplicate cased files. > rm -f System/OpenGLDrv.int > local lower > > for f in System/*.int ; do > lower=System/`basename ${f} | tr [A-Z] [a-z]` > [[ ${lower} == ${f} ]] && continue # Globbing is case-insensitive. > [[ -e ${lower} ]] && mv ${lower} ${f} > done > > # Remove unneeded files. > rm -f System/{UnrealTournament.ini.PATCH,{Manifest,d3ddrv,galaxy,windrv}.int} >} > >pkg_setup() { > games_pkg_setup > CDROM_NAME_SET=( "UT Game CD or Unreal Anthology DVD" "UT High Resolution Textures CD" ) > > if use highres ; then > cdrom_get_cds Help/BonusPackReadme.txt:HELP/BonusPackReadme.txt:System/UTMenu.u:AutoRunData/Unreal.ico Help/chaosut:UnrealEd/UnrealEdInstaller.exe > else > cdrom_get_cds Help/BonusPackReadme.txt:HELP/BonusPackReadme.txt:System/UTMenu.u:AutoRunData/Unreal.ico > fi > > case ${CDROM_SET} in > 0|1) UT_EDITION="goty" > einfo 'Found UT99 "Game Of The Year" edition' > ;; > 2) UT_EDITION="original" > einfo 'Found UT99 original edition' > ;; > 3) UT_EDITION="anthology" > einfo 'Found Unreal Anthology DVD' > ;; > esac > > set_dirs >} > >src_unpack() { > mkdir Help Maps Music Sounds System Textures > > # Explicitly name files to copy in case we are using some existing installation with additional files. > HELP={Logo.bmp,ReadMe.htm,Unreal{.ico,Ed.ico,TournamentLogo.bmp,TournamentSetupLogo.bmp}} > MAPS={AS-{Frigate,Guardia,HiSpeed,Mazon,OceanFloor,Overlord,Rook,Tutorial},CTF-{Command,Coret,Dreary,EternalCave,Face,Gauntlet,LavaGiant,Niven,November,Tutorial},CityIntro,DM-{Barricade,Codex,Conveyor,Curse][,Deck16][,Fetid,Fractal,Gothic,Grinder,HyperBlast,KGalleon,Liandri,Morbias][,Morpheus,Oblivion,Peak,Phobos,Pressure,Pyramid,Stalwart,StalwartXL,Tempest,Turbine,Tutorial,Zeto},DOM-{Cinder,Condemned,Cryptic,Gearbolt,Ghardhen,Lament,Leadworks,MetalDream,Olden,Sesmar,Tutorial},EOL_{Assault,CTF,Challenge,Deathmatch,Domination,Statues},Entry,UT-Logo-Map,UTCredits}.unr > MUSIC={Botmca9,Botpck10,Cannon,Colossus,Course,Credits,Ending,Enigma,Foregone,Godown,Lock,Mech8,Mission,Nether,Organic,Phantom,Razor-ub,Run,SaveMe,Savemeg,Seeker,Seeker2,Skyward,Strider,Suprfist,UnWorld2,Uttitle,Wheels,firebr,utmenu23}.umx > SOUNDS={Activates,Addon1,Amb{Ancient,City,Modern,Outside},DDay,DMatch,DoorsAnc,DoorsMod,Extro,FemaleSounds,LadderSounds,MaleSounds,Pan1,VRikers,noxxsnd,rain}.uax > SYSTEM={BotPack.u,Botpack.int,CommandoSkins.int,Core.{int,u},Editor.{int,u},Engine.{int,u},FCommandoSkins.int,Fire.u,GlideDrv.int,IpDrv.{int,u},IpServer.{int,u},[Ll]icense.int,OpenGlDrv.ini,OpenGlDrv.int,SGLDrv.int,SGirlSkins.int,SoftDrv.int,SoldierSkins.int,UBrowser.{int,u},UMenu.{int,u},UTBrowser.u,UTMenu.{int,u},UTServerAdmin.int,UTServerAdmin.u,UWeb.int,UWeb.u,UWindow.u,Unreal{I.{int,u},Share.{int,u},Tournament.in{i,t}},User.ini,Window.int,mput.mpi} > > # Some files are localized. UTMenu.frt is sometimes lower-cased. > LOCALIZED_SOUNDS={Announcer,BossVoice,Female{1,2}Voice,Male{1,2}Voice,TutVoice{AS,CTF,DM,DOM},openingwave}.uax > LOCALIZED_SYSTEM={{Boss,Commando,FCommando,SGirl,Soldier}Skins,Editor,Engine,GlideDrv,IpDrv,IpServer,OpenGlDrv,SglDrv,SoftDrv,UBrowser,UMenu,[Uu][Tt][Mm]enu,Unreal{,I,Share,Tournament},Window,as-{frigate,guardia,hispeed,mazon,oceanfloor,overlord,rook,tutorial},botpack,ctf-{command,coret,dreary,eternalcave,face,gauntlet,lavagiant,niven,november,tutorial},dm-{barricade,codex,conveyor,curse][,deck16][,fetid,fractal,gothic,grinder,hyperblast,kgalleon,liandri,morbias][,morpheus,oblivion,peak,phobos,pressure,pyramid,stalwart,tempest,turbine,tutorial,zeto},dom-{cinder,condemned,cryptic,gearbolt,ghardhen,lament,leadworks,metaldream,olden,sesmar,tutorial},eol_{assault,challenge,ctf,deathmatch,domination,statues},utbrowser,uwindow} > > # Some low resolution texture files have no high resolution equivalent. > TEXTURES_LOW={{Boss,Dacoma,FCommando,Female{1,2},Goth,Male{1,2,3},SGirl,SkTrooper}Skins,AlfaFX,Belt_fx,BluffFX,ChizraEFX,Creative,Crypt,DMeffects,DacomaFem,Detail,FireEng,GothFem,GreatFire{,2},ISVFX,LadderFonts,Ladr{Arrow,Static},LavaFX,Liquids,Logo,MenuGr,NivenFX,Palettes,PhraelFx,Render,RotatingU,Scripted,Soldierskins,SpaceFX,Terranius,UT_ArtFX,UWindowFonts,XFX,commandoskins,credits}.utx > TEXTURES_BOTH={Ancient,ArenaTex,CTF,Coret_FX,Crypt{2,_FX},DDayFX,DecayedS,Egypt{,Pan},Faces,FlareFX,FractalFX,Gen{Earth,FX,Fluid,In,Terra,Warp},HubEffects,Indus{1,2,3,4,5,6,7},JWSky,Lian-X,Metalmys,Mine,Nali{Cast,FX},Old_FX,PlayrShp,Queen,RainFX,Shane{Church,Day,Sky},Skaarj,Sky{Box,City},Slums,Starship,TCrystal,TrenchesFX,UT,UTbase1,UTcrypt,UTtech{1,2,3},XbpFX,Xtortion,castle1,city,eol,of1}.utx > > if [[ "${UT_EDITION}" == "anthology" ]] ; then > if use highres ; then > eerror "The Unreal Anthology DVD does not include the high resolution textures." > eerror "Please disable the highres USE flag or install from a different source." > die "High resolution textures not available" > fi > > # Symlinks for unshield. > ln -sfn "${CDROM_ROOT}"/Disk1/data1.hdr "${T}" > ln -sfn "${CDROM_ROOT}"/Disk*/data*.cab "${T}" > > CAB_GROUPS="Help Maps Music Sounds_All Sounds_English System_All System_English Textures" > > # The manual is pretty heavy at 17MB! > use doc && CAB_GROUPS="${CAB_GROUPS} Manual_English" > > # Add requested language components. The manuals are all in English!? > use linguas_es && CAB_GROUPS="${CAB_GROUPS} Sounds_Spanish System_Spanish" > use linguas_fr && CAB_GROUPS="${CAB_GROUPS} Sounds_French System_French" > use linguas_it && CAB_GROUPS="${CAB_GROUPS} Sounds_Italian System_Italian" > > for j in ${CAB_GROUPS} ; do > unshield -g 3_UnrealTournament_${j} x "${T}"/data1.cab || die "unshield x" > done > > # Rename Spanish sounds. > if use linguas_es ; then > for j in 3_UnrealTournament_Sounds_Spanish/*.uax ; do > mv ${j} ${j/.uax}.uax_est || die "mv ${j}" > done > fi > > # Rename French sounds. > if use linguas_fr ; then > for j in 3_UnrealTournament_Sounds_French/*.uax ; do > mv ${j} ${j/.uax}.uax_frt || die "mv ${j}" > done > fi > > # Rename Italian sounds. > if use linguas_it ; then > for j in 3_UnrealTournament_Sounds_Italian/*.uax ; do > mv ${j} ${j/.uax}.uax_itt || die "mv ${j}" > done > fi > > # Retrieve the manual. > use doc && mv 3_UnrealTournament_Manual_English/Manual.pdf . > > eval mv -f 3_UnrealTournament_Help/${HELP} Help || die "mv Help" > eval mv -f 3_UnrealTournament_Maps/${MAPS} Maps || die "mv Maps" > eval mv -f 3_UnrealTournament_Music/${MUSIC} Music || die "mv Music" > > eval mv -f 3_UnrealTournament_Sounds_All/${SOUNDS} Sounds || die "mv Sounds (generic)" > eval mv -f 3_UnrealTournament_Sounds_*/${LOCALIZED_SOUNDS}* Sounds || die "mv Sounds (localized)" > > eval mv -f 3_UnrealTournament_System_{All,English}/${SYSTEM} System 2> /dev/null > eval mv -f 3_UnrealTournament_System_English/${LOCALIZED_SYSTEM}.int System 2> /dev/null > eval mv -f 3_UnrealTournament_System_*/${LOCALIZED_SYSTEM}.{est,frt,itt} System 2> /dev/null > > eval mv -f 3_UnrealTournament_Textures/${TEXTURES_LOW} Textures || die "mv Textures" > eval mv -f 3_UnrealTournament_Textures/${TEXTURES_BOTH} Textures || die "mv Textures" > > rm -rf 3_UnrealTournament_* > unpack_patches > else > eval cp -f "${CDROM_ROOT}/${HELP_DIR}"/${HELP} Help || die "cp Help" > eval cp -f "${CDROM_ROOT}/${MUSIC_DIR}"/${MUSIC} Music || die "cp Music" > eval cp -f "${CDROM_ROOT}/${SYSTEM_DIR}"/${SYSTEM} System || die "cp System" > > if ! use highres && [[ `md5sum "${CD_ROOT}/Textures/UT.utx" | head -c32` == "0717a53dfb125585659207c8021359a2" ]] ; then > eerror "You have requested to install the low resolution textures but the texture" > eerror "files found in CD_ROOT appear to be the high resolution ones. Please enable" > eerror "the highres USE flag or install from a different source." > die "Cannot source low resolution textures" > fi > > # Copy low resolution textures. > eval cp -f "${CDROM_ROOT}/${TEXTURES_DIR}"/${TEXTURES_LOW} Textures || die "cp Textures" > ! use highres && ( eval cp -f "${CDROM_ROOT}/${TEXTURES_DIR}"/${TEXTURES_BOTH} Textures || die "cp Textures" ) > > # Copy generic sounds. > eval cp -f "${CDROM_ROOT}/${SOUNDS_DIR}"/${SOUNDS} Sounds || die "cp Sounds (generic)" > > # Copy English sounds. > eval cp -f "${CDROM_ROOT}/${SOUNDS_DIR}"/${LOCALIZED_SOUNDS} Sounds || die "cp Sounds (English)" > > # Copy localized sounds and system files. > for lang in es fr it ; do > if use linguas_${lang} ; then > eval cp -f "${CDROM_ROOT}/${SOUNDS_DIR}"/${LOCALIZED_SOUNDS}_${lang}t Sounds || die "cp Sounds (${lang}t)" > eval cp -f "${CDROM_ROOT}/${SYSTEM_DIR}"/${LOCALIZED_SYSTEM}.${lang}t System || die "cp System (${lang}t)" > fi > done > > # Need to unpack the patches early so we can get ucc-bin for decompressing maps. > unpack_patches > > cd System > > # Copy or decompress maps as necessary. > for f in `eval echo ${MAPS}` ; do > if [[ -e "${CDROM_ROOT}/${MAPS_DIR}/${f}" ]] ; then > cp -f "${CDROM_ROOT}/${MAPS_DIR}/${f}" ../Maps || die "cp Maps/${f}" > elif [[ -e "${CDROM_ROOT}/${MAPS_DIR}/${f}.uz" ]] ; then > ./ucc-bin decompress "${CDROM_ROOT}/${MAPS_DIR}/${f}.uz" -nohomedir || die "decompress Maps/${f}.uz" > mv -f ${f} ../Maps || die "mv map ${f}" > else > die "Maps/${f} missing" > fi > done > > cd .. > > if use highres ; then > unset CDROM_SET > cdrom_load_next_cd > set_dirs > > if [[ `md5sum "${CD_ROOT}/Textures/UT.utx" | head -c32` == "076aaca7fa6ec3b7f31781d3b8c150d8" ]] ; then > eerror "You have requested to install the high resolution textures but the texture" > eerror "files found in CD_ROOT appear to be the low resolution ones. Please disable" > eerror "the highres USE flag or install from a different source." > die "Cannot source high resolution textures" > fi > > # Copy high resolution textures. > eval cp -f "${CDROM_ROOT}/${TEXTURES_DIR}"/${TEXTURES_BOTH} Textures || die "cp Textures (CD 2)" > fi > fi > > # Don't include ucc-bin, due to bug #44351. > rm -f System/ucc-bin >} > >src_install() { > # Icon. > insinto "${dir}" > doins patch-ut/icon.xpm || die "doins icon" > > # Script. > exeinto "${dir}" > doexe ut || die "doexe ut" > > # Desktop. > games_make_wrapper ut ./ut "${dir}" > newicon patch-ut/icon.xpm ut.xpm || die "newicon" > make_desktop_entry ut "Unreal Tournament 99" ut.xpm > > # Manual. > insinto /usr/share/doc/${PF} > [[ -e "Manual.pdf" ]] && doins Manual.pdf > > # Move instead of copy to reduce disk stress. (-: > # Permissions are corrected with prepgamesdirs below. > mv Help Maps Music Sounds System Textures Web ${Ddir} || die "mv directories" > > prepgamesdirs >} > >pkg_postinst() { > games_pkg_postinst > > if use opengl ; then > einfo "If you experience texture corruption, particularly if you have an older" > einfo "graphics card, try editing ~/.loki/ut/UnrealTournament.ini and change" > einfo "UseMultiTexture from 1 to 0 under [OpenGLDrv.OpenGLRenderDevice]." > echo > fi > > if use linguas_es || use linguas_fr || use linguas_it ; then > einfo "You have installed support for one or more additional languages. The" > einfo "game defaults to English but you can change the language by running" > einfo "the game once and then editing ~/.loki/ut/UnrealTournament.ini. Change" > einfo "the Language entry under [Engine.Engine] to 'est', 'frt' or 'itt' and" > einfo "add a Path entry directly under [Core.System] with '..\Sounds\*.uax_est'," > einfo "'..\Sounds\*.uax_frt' or '..\Sounds\*.uax_itt' for Spanish, French or" > einfo "Italian respectively." > echo > fi > > if ! has_version "games-fps/unreal-tournament-bonuspacks" ; then > einfo "emerge 'games-fps/unreal-tournament-bonuspacks' to add many popular maps." > einfo "This is highly recommended if you wish to play online. Note that you need" > einfo "this package for Bonus Packs 1 to 3 even if you just installed the game" > einfo "using the GOTY edition." > echo > fi > > if ! use dedicated && ! has_version "games-server/unreal-tournament-ded" ; then > einfo "The 'ucc' dedicated server executable has been moved to" > einfo "games-server/unreal-tournament-ded for security reasons." > einfo "See bug #44351 for details." > echo > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 134156
:
87347
|
87348
|
87349
|
87350
|
90408
|
90447
|
90448
|
90458
|
90495
|
90496
|
90499
|
90500
|
90502
|
90556
|
90793
|
111536
|
111662
|
119795
|
119799
|
119805
|
119828
|
119873
|
133340
|
133420
|
133455
|
134110
|
134111
|
134124
|
134427
|
134453
|
134458
|
134481
|
134489
|
134494
|
134569
|
134584
|
134591
|
134594
|
134878
|
135068
|
135179
|
136048
|
136790
|
137625
|
140883
|
288297
|
323854