Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 156149 Details for
Bug 218358
emerge runs src_unpack when binary package is installed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
unreal-tournament-goty-451.ebuild
unreal-tournament-goty-451.ebuild (text/plain), 4.73 KB, created by
Triffid Hunter
on 2008-06-10 01:33:32 UTC
(
hide
)
Description:
unreal-tournament-goty-451.ebuild
Filename:
MIME Type:
Creator:
Triffid Hunter
Created:
2008-06-10 01:33:32 UTC
Size:
4.73 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/games-fps/unreal-tournament-goty/unreal-tournament-goty-451.ebuild,v 1.6 2004/06/24 22:48:21 agriffis Exp $ > >inherit games eutils > >DESCRIPTION="Futuristic FPS (Game Of The Year edition)" >HOMEPAGE="http://www.unrealtournament.com/" >SRC_URI="ftp://ftp.lokigames.com/pub/beta/ut/ut-install-436-GOTY.run > http://utpg.org/patches/UTPGPatch${PV}.tar.bz2" > >LICENSE="as-is" >SLOT="0" >KEYWORDS="x86" >IUSE="X 3dfx S3TC nls opengl" > >DEPEND="!games-fps/unreal-tournament" >RDEPEND="X? ( virtual/x11 ) > opengl? ( virtual/opengl )" > >S=${WORKDIR} > >pkg_setup() { > cdrom_get_cds System/ Help/chaosut > games_pkg_setup >} > >src_unpack() { > unpack_makeself ut-install-436-GOTY.run > mkdir UTPG && cd UTPG > unpack UTPGPatch${PV}.tar.bz2 > rm checkfiles.sh patch.md5 >} > >src_install() { > local dir=${GAMES_PREFIX_OPT}/${PN/-goty/} > local Ddir=${D}/${dir} > dodir ${dir} > > ########### > ### PRE ### > # System > if use 3dfx ; then > tar -zxf Glide.ini.tar.gz -C ${Ddir} || die "install Glide ini" > else > tar -zxf OpenGL.ini.tar.gz -C ${Ddir} || die "install OpenGL ini" > fi > tar -zxf data.tar.gz -C ${Ddir} || die "extract System data" > > # the most important things, ucc & ut :) > exeinto ${dir} > doexe bin/x86/{ucc,ut} || die "install ucc/ut" > dosed "s:\`FindPath \$0\`:${dir}:" ${dir}/ucc > > # export some symlinks so ppl can run > dodir ${GAMES_BINDIR} > dosym ${dir}/ucc ${GAMES_BINDIR}/ucc > dosym ${dir}/ut ${GAMES_BINDIR}/ut > ### PRE ### > ########### > > ########### > ### CD1 ### > # Help, Logs, Music, Sounds, Textures, Web > cp -rf "${CDROM_ROOT}"/{Help,Logs,Music,Textures,Web} ${Ddir}/ || die "copy Help, Logs, Music, Textures, Web CD1" > dodir ${dir}/Sounds > if use nls ; then > cp -rf "${CDROM_ROOT}"/Sounds/* ${Ddir}/Sounds/ || die "copy Sounds CD1" > else > cp -rf "${CDROM_ROOT}"/Sounds/*.uax ${Ddir}/Sounds/ || die "copy Sounds CD1" > fi > > # System > dodir ${dir}/System > if use nls ; then > cp "${CDROM_ROOT}"/System/*.{est,frt,itt,int,u} ${Ddir}/System/ || die "copy System data CD1" > else > cp "${CDROM_ROOT}"/System/*.{int,u} ${Ddir}/System/ || die "copy System data CD1" > fi > > # now we uncompress the maps > einfo "Uncompressing CD1 Maps ... this may take some time" > dodir ${dir}/Maps > cd ${Ddir} > export HOME=${T} > export UT_DATA_PATH=${Ddir}/System > for f in `find "${CDROM_ROOT}"/Maps/ -name '*.uz' -printf '%f '` ; do > ./ucc decompress "${CDROM_ROOT}"/Maps/${f} -nohomedir || die "uncompressing map CD1 ${f}" > mv System/${f:0:${#f}-3} Maps/ || die "copy map CD1 ${f}" > done > ### CD1 ### > ########### > > ### Have user switch cds if need be ### > cdrom_load_next_cd > > ########### > ### CD2 ### > # Help, Sounds > cp -rf "${CDROM_ROOT}"/{Help,Sounds} ${Ddir}/ || die "copy Help, Sounds CD2" > > # S3TC Textures > if use S3TC ; then > cp -rf "${CDROM_ROOT}"/Textures ${Ddir}/ || die "copy S3TC Textures CD2" > else > cp -rf "${CDROM_ROOT}"/Textures/{JezzTex,Jezztex2,SnowDog,chaostex{,2}}.utx ${Ddir}/Textures/ || die "copy Textures CD2" > fi > > # System > cp -rf "${CDROM_ROOT}"/System/*.{u,int} ${Ddir}/System/ || die "copy System CD2" > > # now we uncompress the maps > einfo "Uncompressing CD2 Maps ... this may take some time" > dodir ${dir}/Maps > cd ${Ddir} > export HOME=${T} > export UT_DATA_PATH=${Ddir}/System > for f in `find "${CDROM_ROOT}"/maps/ -name '*.uz' -printf '%f '` ; do > ./ucc decompress "${CDROM_ROOT}"/maps/${f} -nohomedir || die "uncompressing map CD2 ${f}" > mv System/${f:0:${#f}-3} Maps/ || die "copy map CD2 ${f}" > done > ### CD2 ### > ########### > > ########### > ### END ### > cd ${S} > > # Textures > tar -zxf Credits.tar.gz -C ${Ddir} || die "extract credits texture" > # NetGamesUSA.com > tar -zxf NetGamesUSA.com.tar.gz -C ${Ddir}/ || die "extract NetGamesUSA.com" > > # first apply any patch remaints loki has for us > cd setup.data > cp patch.dat{,.orig} > sed -e 's:sh uz-maps.sh:echo:' patch.dat.orig > patch.dat > ./bin/Linux/x86/loki_patch patch.dat ${Ddir} >& /dev/null > cd ${S} > > # finally, unleash the UTPG patch > cp -rf UTPG/* ${Ddir}/ > # fix a small bug until next official release > dosed "/^LoadClassMismatch/s:%s.%s:%s:" ${dir}/System/Core.int > > # install a few random files > insinto ${dir} > doins README icon.{bmp,xpm} || die "installing random files" > > # now, since these files are coming off a cd, the times/sizes/md5sums wont > # be different ... that means portage will try to unmerge some files (!) > # we run touch on ${D} so as to make sure portage doesnt do any such thing > find ${Ddir} -exec touch '{}' \; > ### END ### > ########### > > prepgamesdirs >} > >pkg_postinst() { > games_pkg_postinst > einfo "You might want to install the bonus packs too." > einfo "Many servers on the internet use them, and the" > einfo "majority of players do too." > echo > einfo "Just run: emerge unreal-tournament-bonuspacks" >}
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 218358
: 156149