--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004-data/ut2004-data-3186-r1.ebuild,v 1.1 2006/03/14 23:16:09 wolf31o2 Exp $
+
+inherit games games-ut2k4mod
+
+DESCRIPTION="Unreal Tournament 2004 - This is the data portion of UT2004"
+HOMEPAGE="http://www.unrealtournament2004.com/"
+SRC_URI=""
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="nostrip nomirror"
+IUSE=""
+
+DEPEND="games-util/uz2unpack"
+
+S=${WORKDIR}
+
+GAMES_LICENSE_CHECK="yes"
+dir=${GAMES_PREFIX_OPT}/ut2004
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ ewarn "This is a huge package. If you do not have at least 7GB of free"
+ ewarn "disk space in ${PORTAGE_TMPDIR} and also in ${GAMES_PREFIX_OPT} then"
+ ewarn "You should abort this installation now and free up some space."
+ games_pkg_setup
+ check_dvd
+
+ if [[ ${USE_DVD} -eq 1 ]]
+ then
+ DISK1="CD1/"
+ DISK2="CD2/"
+ DISK3="CD3/"
+ DISK4="CD4/"
+ DISK5="CD5/"
+ DISK6="CD6/"
+ if [[ ${USE_ECE_DVD} -eq 1 ]]
+ then
+ cdrom_get_cds ${DISK1}System/UT2004.ini \
+ ${DISK2}Textures/2K4Fonts.utx.uz2 \
+ ${DISK3}Textures/ONSDeadVehicles-TX.utx.uz2 \
+ ${DISK4}Textures/XGameShaders2004.utx.uz2 \
+ ${DISK5}Speech/ons.xml ${DISK6}/DirectX9/BDA.cab
+ else
+ cdrom_get_cds ${DISK1}/System/UT2004.ini \
+ ${DISK2}/Textures/2K4Fonts.utx.uz2 \
+ ${DISK3}/Textures/ONSDeadVehicles-TX.utx.uz2 \
+ ${DISK4}/Music/KR-UT2004-Menu.ogg \
+ ${DISK5}/Speech/ons.xml ${DISK6}/DirectX9/BDA.cab
+ fi
+ else
+ cdrom_get_cds System/UT2004.ini \
+ Textures/2K4Fonts.utx.uz2 \
+ Textures/ONSDeadVehicles-TX.utx.uz2 \
+ Music/KR-UT2004-Menu.ogg \
+ Speech/ons.xml DirectX9/BDA.cab
+ fi
+}
+
+src_unpack() {
+ unpack_makeself ${CDROM_ROOT}/linux-installer.sh \
+ || die "unpacking linux installer"
+ use x86 && tar -xf ${S}/linux-x86.tar
+ use amd64 && tar -xf ${S}/linux-amd64.tar
+}
+
+src_install() {
+ dodir ${dir}/System/editorres
+
+ # Disk 1
+ einfo "Copying files from Disk 1..."
+ cp -r ${CDROM_ROOT}/${DISK1}{Animations,ForceFeedback,Help,KarmaData,Maps,Sounds,Web} ${Ddir} || die "copying files"
+ cp -r ${CDROM_ROOT}/${DISK1}System/{editorres,*.{bat,bmp,dat,det,est,frt,ini,int,itt,kot,md5,smt,tmt,u,ucl,upl,url}} ${Ddir}/System || die "copying files"
+ mkdir -p ${Ddir}/Manual || die "creating manual folder"
+ cp ${CDROM_ROOT}/${DISK1}Manual/Manual.pdf ${Ddir}/Manual \
+ || die "copying manual"
+ mkdir -p ${Ddir}/Benchmark/Stuff || die "creating benchmark folders"
+ cp -r ${CDROM_ROOT}/${DISK1}Benchmark/Stuff/* ${Ddir}/Benchmark/Stuff \
+ || die "copying benchmark files"
+ cdrom_load_next_cd
+
+ # Disk 2
+ einfo "Copying files from Disk 2..."
+ cp -r ${CDROM_ROOT}/${DISK2}{Sounds,Textures} ${Ddir} || die "copying files"
+ cdrom_load_next_cd
+
+ # Disk 3
+ einfo "Copying files from Disk 3..."
+ cp -r ${CDROM_ROOT}/${DISK3}Textures ${Ddir} || die "copying files"
+ cdrom_load_next_cd
+
+ #Disk 4
+ einfo "Copying files from Disk 4..."
+ if [[ ${USE_ECE_DVD} -eq 1 ]]
+ then
+ cp -r ${CDROM_ROOT}/${DISK4}{StaticMeshes,Textures} ${Ddir} \
+ || die "copying files"
+ else
+ cp -r ${CDROM_ROOT}/${DISK4}{Music,StaticMeshes,Textures} ${Ddir} \
+ || die "copying files"
+ fi
+ cdrom_load_next_cd
+
+ #Disk 5
+ einfo "Copying files from Disk 5..."
+ if [[ ${USE_ECE_DVD} -eq 1 ]]
+ then
+ cp -r ${CDROM_ROOT}/${DISK5}{Music,Sounds,Speech,StaticMeshes} ${Ddir} \
+ || die "copying files"
+ else
+ cp -r ${CDROM_ROOT}/${DISK5}{Music,Sounds,Speech} ${Ddir} \
+ || die "copying files"
+ fi
+ cdrom_load_next_cd
+
+ #Disk 6
+ einfo "Copying files from Disk 6..."
+ cp -r ${CDROM_ROOT}/${DISK6}/Sounds ${Ddir} \
+ || die "copying files"
+
+ # create empty files in Benchmark
+ for j in {CSVs,Logs,Results}
+ do
+ mkdir -p ${Ddir}/Benchmark/${j} || die "creating folders"
+ touch ${Ddir}/Benchmark/${j}/DO_NOT_DELETE.ME || die "creating files"
+ done
+
+ # install extra help files
+ insinto ${dir}/Help
+ doins ${S}/Unreal.bmp
+
+ # install eula
+ insinto ${dir}
+ doins ${S}/UT2004_EULA.txt
+
+ # install System.inis
+ insinto ${dir}/System
+ doins ${S}/ini-{det,est,frt,int,itt,kot,smt,tmt}.tar
+
+ # copy ut2004
+ exeinto ${dir}
+ doexe ${S}/bin/ut2004 || die "copying ut2004"
+
+ exeinto ${dir}/System
+ doexe ${S}/System/{libSDL-1.2.so.0,openal.so,u{cc,t2004}-bin} \
+ || die "copying libs/ucc/ut2004"
+
+ # uncompressing files
+ einfo "Uncompressing files... this *will* take a while..."
+ for j in {Animations,Maps,Sounds,StaticMeshes,Textures}
+ do
+ chmod -R u+w ${Ddir}/${j} || die "chmod in uncompress"
+ games_ut_unpack ${Ddir}/${j} || die "uncompressing files"
+ done
+
+ # Removing unneccessary files in System and Help
+ rm -f ${Ddir}/Help/{InstallerLogo.bmp,SAPI-EULA.txt,{Unreal,UnrealEd}.ico}
+ rm -f ${Ddir}/System/*.tar
+ rm -f ${Ddir}/System/{{License,Manifest}.smt,{ucc,StdOut}.log}
+ rm -f ${Ddir}/System/{User,UT2004,Manifest}.ini
+ rm -f ${Ddir}/System/{Manifest.int,Packages.md5}
+
+ # installing documentation/icon
+ dodoc ${S}/README.linux || die "dodoc README.linux"
+ insinto /usr/share/pixmaps;
+ doins ${S}/ut2004.xpm || die "copying pixmap"
+ insinto ${dir}
+ doins ${S}/README.linux ${S}/ut2004.xpm || die "copying readme/icon"
+
+ # 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 '{}' \;
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ echo
+ einfo "This is only the data portion of the game. To play UT2004, you"
+ einfo "still need to:"
+ einfo " emerge ut2004."
+ echo
+}
-MD5 1a70bf7568f4535cfb77b1908fa54328 ChangeLog 7275
-MD5 346ecaf7b73b6288ca5ea6352932be85 files/digest-ut2004-3369-r1 76
+MD5 ffde46bf87be670bb07760db3b615079 ChangeLog 7601
+RMD160 0ba2783209d5be8739496ee78f1a1d80b4035afb ChangeLog 7601
+SHA256 0c065f652a1f72bfb7e7133310801e8cab5d140e09a26623b776462baf3e6b5f ChangeLog 7601
MD5 3d538cfb79dfefed08b510540f0084b2 files/digest-ut2004-3369-r2 76
+RMD160 0134210dd3f05d696ada86f85eb40057ed799c68 files/digest-ut2004-3369-r2 76
+SHA256 18773217748912944b48a713825b105fa2845d391c532800dd160f7a97ac0f37 files/digest-ut2004-3369-r2 76
+MD5 2316e4a01aee16470ad74edc0de49cab files/digest-ut2004-3369-r3 274
+RMD160 a4f837e7ef67ff362db4c743a1dad0543dfa5fc7 files/digest-ut2004-3369-r3 274
+SHA256 1d955ade2fd863e38d6a1170b089ee73152a05e1ce800f24db8095bba8e2e57f files/digest-ut2004-3369-r3 274
MD5 e199cda0f458ab3a4b3ca2e482451c8f files/ut2004.xml 358
+RMD160 777a50b9d742f72bf80fbe485650c3fd1301d358 files/ut2004.xml 358
+SHA256 787da216a5b8dce71b3dd9b9782ed628a88a983bfe7a9071050a48dd1eccfe4e files/ut2004.xml 358
MD5 11a7e1491b1ac042ac7216b26b4ad1fb metadata.xml 254
-MD5 ec0510a4cae4ed99ca49cbc765115c0a ut2004-3369-r1.ebuild 4131
-MD5 2ad7c3c627f54ea89e91ca4f3edd6a65 ut2004-3369-r2.ebuild 4133
+RMD160 877a1dc36df2be58926bc51041093feafdefe429 metadata.xml 254
+SHA256 2916aab684ec3908fffb515065eeb2c481cde563380b682646add582bed5f535 metadata.xml 254
+MD5 a9deea7953af1b71450c8a7af462733f ut2004-3369-r2.ebuild 4131
+RMD160 b5b08575b3e90067bb4d8c4ea9b3929de68296ff ut2004-3369-r2.ebuild 4131
+SHA256 3b7d0dff1f38f12199da4b9f7ca4a99883f73deee0aa4c4284acdab8a14bd299 ut2004-3369-r2.ebuild 4131
+MD5 bb610ae3f271463e1a21e612795693a2 ut2004-3369-r3.ebuild 4185
+RMD160 135d515ae11c94648c8bc8498c818b0c3f5ee285 ut2004-3369-r3.ebuild 4185
+SHA256 13bf802bbab7474db3d1d41307404d3a7a268d1e29b118f146d01cae579c438e ut2004-3369-r3.ebuild 4185