diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-10-26 14:19:15 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-10-26 14:19:15 +0000 |
commit | 2832cd79e7187d6e629188cbb4753a72e43c65ec (patch) | |
tree | 32abc1fc3da59a7adcfc2024395962fc994f8a84 /games-fps/ut2003-data | |
parent | Added ut2003 mask for new split ebuilds. (diff) | |
download | gentoo-2-2832cd79e7187d6e629188cbb4753a72e43c65ec.tar.gz gentoo-2-2832cd79e7187d6e629188cbb4753a72e43c65ec.tar.bz2 gentoo-2-2832cd79e7187d6e629188cbb4753a72e43c65ec.zip |
Initial import. Ebuild by me.
(Portage version: 2.0.53_rc6)
Diffstat (limited to 'games-fps/ut2003-data')
-rw-r--r-- | games-fps/ut2003-data/ChangeLog | 10 | ||||
-rw-r--r-- | games-fps/ut2003-data/Manifest | 3 | ||||
-rw-r--r-- | games-fps/ut2003-data/files/digest-ut2003-data-2107 | 1 | ||||
-rw-r--r-- | games-fps/ut2003-data/metadata.xml | 12 | ||||
-rw-r--r-- | games-fps/ut2003-data/ut2003-data-2107.ebuild | 146 |
5 files changed, 172 insertions, 0 deletions
diff --git a/games-fps/ut2003-data/ChangeLog b/games-fps/ut2003-data/ChangeLog new file mode 100644 index 000000000000..f8bd47d8e738 --- /dev/null +++ b/games-fps/ut2003-data/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-fps/ut2003-data +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-data/ChangeLog,v 1.1 2005/10/26 14:19:15 wolf31o2 Exp $ + +*ut2003-data-2107 (26 Oct 2005) + + 26 Oct 2005; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml, + +ut2003-data-2107.ebuild: + Initial import. Ebuild by me. + diff --git a/games-fps/ut2003-data/Manifest b/games-fps/ut2003-data/Manifest new file mode 100644 index 000000000000..f1e223937d95 --- /dev/null +++ b/games-fps/ut2003-data/Manifest @@ -0,0 +1,3 @@ +MD5 c648e4182789eb5a1db1b55fc38ed6a9 files/digest-ut2003-data-2107 61 +MD5 4b63cb7e7f6443366fdd4f62f588d62a metadata.xml 776 +MD5 4753d1cc3bcd39036a868e275eca69d0 ut2003-data-2107.ebuild 3975 diff --git a/games-fps/ut2003-data/files/digest-ut2003-data-2107 b/games-fps/ut2003-data/files/digest-ut2003-data-2107 new file mode 100644 index 000000000000..33c21d1aca37 --- /dev/null +++ b/games-fps/ut2003-data/files/digest-ut2003-data-2107 @@ -0,0 +1 @@ +MD5 bba41d9a1c552ae1664c7521798324cd UT2003CrashFix.zip 2764 diff --git a/games-fps/ut2003-data/metadata.xml b/games-fps/ut2003-data/metadata.xml new file mode 100644 index 000000000000..1dd95fa16097 --- /dev/null +++ b/games-fps/ut2003-data/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> + <email>wolf31o2@gentoo.org</email> + <name>Chris Gianelloni</name> +</maintainer> +<longdescription> +Unreal Tounament 2003 is a first-person 3-D shooter and sequel to the 1999 Game of the Year, Unreal Tournament. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This game is commercial software and requires data from the original retail discs to play. If you're interested in checking out the technology behind Unreal Tournament 2003, you can "emerge ut2003-demo" to get the playable demo. +</longdescription> +</pkgmetadata> diff --git a/games-fps/ut2003-data/ut2003-data-2107.ebuild b/games-fps/ut2003-data/ut2003-data-2107.ebuild new file mode 100644 index 000000000000..21ba9cc6e120 --- /dev/null +++ b/games-fps/ut2003-data/ut2003-data-2107.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-data/ut2003-data-2107.ebuild,v 1.1 2005/10/26 14:19:15 wolf31o2 Exp $ + +inherit eutils games + +DESCRIPTION="Unreal Tournament 2003 - Sequel to the 1999 Game of the Year multi-player first-person shooter" +HOMEPAGE="http://www.unrealtournament2003.com/" +SRC_URI="http://download.factoryunreal.com/mirror/UT2003CrashFix.zip" + +LICENSE="ut2003" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="nostrip" + +DEPEND="virtual/libc + app-arch/unzip + games-util/uz2unpack" +RDEPEND="dedicated? ( games-server/ut2003-ded ) + !dedicated? ( virtual/opengl )" +# amd64? ( app-emulation/emul-linux-x86-compat +# app-emulation/emul-linux-x86-xlibs )" + +S="${WORKDIR}" + +GAMES_LICENSE_CHECK="yes" +dir="${GAMES_PREFIX_OPT}/ut2003" +Ddir="${D}/${dir}" + +pkg_setup() { + games_pkg_setup + ewarn "The installed game takes about 2.7GB of space!" + cdrom_get_cds System/Packages.md5 StaticMeshes/AWHardware.usx.uz2 \ + Extras/MayaPLE/Maya4PersonalLearningEditionEpic.exe +} + +src_unpack() { + unpack_makeself ${CDROM_ROOT}/linux_installer.sh \ + || die "unpacking linux installer" + unzip ${DISTDIR}/UT2003CrashFix.zip \ + || die "unpacking crash-fix" + tar xf ${S}/ut2003lnxbins.tar \ + || die "unpacking original binaries/libraries" +} + +src_install() { + dodir ${dir}/System + # Disk 1 + einfo "Copying files from Disk 1..." + cp -r ${CDROM_ROOT}/{Animations,ForceFeedback,KarmaData,Maps,Sounds,Textures,Web} ${Ddir} || die "copying files" + cp -r ${CDROM_ROOT}/System/{editorres,*.{bmp,dat,det,est,frt,ini,int,itt,md5,u,upl,url}} ${Ddir}/System || die "copying files" + insinto ${dir}/Benchmark/Stuff + cp -r ${CDROM_ROOT}/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}/{Music,Sounds,StaticMeshes,Textures} ${Ddir} \ + || die "copying files" + cdrom_load_next_cd + + # Disk 3 + einfo "Copying files from Disk 3..." + cp -r ${CDROM_ROOT}/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 + + # Cleaning up our installation + rm ${Ddir}/System/{Build,Def{ault,User},Manifest,UT2003,User}.ini \ + || die "deleting ini files" + rm -f ${Ddir}/System/{Core,Engine,Setup,UnrealGame,Window,XGame,XInterface,XWeapons}.{det,est,frt,int,itt,u} || die "deleting files that have been patched" + rm -rf ${Ddir}/Web/ServerAdmin || die "deleting server admin web pages" + rm -f ${Ddir}/System/{Editor,Fire,IpDrv,UnrealEd,Vehicles,XEffects,XPickups,XWebAdmin}.u || die "removing files that will be coming from the patch" + rm -f ${Ddir}/System/{UWeb,XAdmin}.{int,u} || die "removing patched files" + rm -f ${Ddir}/System/GamePlay.{det,itt,u} || die "patch files removal" + rm -f ${Ddir}/System/XMaps.{det,est} ${Ddir}/System/Xweapons.itt \ + || die "removing unused files" + rm -f ${Ddir}/System/Manifest.int ${Ddir}/System/Packages.md5 \ + || die "cleanup" + + # install extra help files + insinto ${dir}/Help + doins ${S}/Help/Unreal.bmp + + # install Default and DefUser ini files + insinto ${dir}/System + doins ${S}/System/Def{ault,User}.ini + + # install eula + insinto ${dir} + doins ${S}/eula/License.int + + # copying extra/updater + cp -r ${S}/{extras,updater} ${Ddir} || die "copying extras/updater" + rm -f ${Ddir}/updater/update || die "removing update" + + # copy libraries + exeinto ${dir}/System + doexe ${S}/System/libSDL-1.2.so.0 \ + || die "copying libSDL" + + # uncompressing files + einfo "Uncompressing files... this may take a while..." + for j in {Animations,Maps,Sounds,StaticMeshes,Textures} ; do + games_ut_unpack ${Ddir}/${j} || die "uncompressing files" + done + + # installing documentation/icon + dodoc ${S}/README.linux || die "dodoc README.linux" + newicon ${S}/Unreal.xpm ut2003.xpm || die "copying icon" + insinto ${dir} + doins ${S}/README.linux ${S}/Unreal.xpm || die "copying readme/icon" + # copy ut2003/ucc + exeinto ${dir} + doexe ${S}/bin/ut2003 ${S}/ucc || die "copying ut2003/ucc" + + # Here we apply DrSiN's crash patch + cp ${S}/CrashFix/System/crashfix.u ${Ddir}/System + + ed ${Ddir}/System/Default.ini >/dev/null 2>&1 <<EOT +$ +?Engine.GameInfo? +a +AccessControlClass=crashfix.iaccesscontrolini +. +w +q +EOT + + # Here we apply fix for bug #54726 + dosed "s:UplinkToGamespy=True:UplinkToGamespy=False:" \ + ${dir}/System/Default.ini + + # 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 +} |