summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-03-17 21:16:49 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-03-17 21:16:49 +0000
commit117074415584f9747cd31f2f8bd3e556c1a21ec9 (patch)
tree283efb5dcc38e94d49bb0d7ba0c971d2c203ca9a /games-fps
parentnew version for gnome-2.14 (diff)
downloadhistorical-117074415584f9747cd31f2f8bd3e556c1a21ec9.tar.gz
historical-117074415584f9747cd31f2f8bd3e556c1a21ec9.tar.bz2
historical-117074415584f9747cd31f2f8bd3e556c1a21ec9.zip
Added a new revision from Paul Bredbury <brebs@sent.com> and closing bug #123202, bug #116528, and bug #126538.
Package-Manager: portage-2.1_pre6-r3
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/ut2004-bonuspack-mega/ChangeLog14
-rw-r--r--games-fps/ut2004-bonuspack-mega/files/digest-ut2004-bonuspack-mega-1-r13
-rw-r--r--games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r1.ebuild72
-rw-r--r--games-fps/ut2004-data/ChangeLog9
-rw-r--r--games-fps/ut2004-data/files/digest-ut2004-data-3186-r20
-rw-r--r--games-fps/ut2004-data/ut2004-data-3186-r2.ebuild199
-rw-r--r--games-fps/ut2004/ChangeLog9
-rw-r--r--games-fps/ut2004/files/digest-ut2004-3369-r43
-rw-r--r--games-fps/ut2004/ut2004-3369-r4.ebuild161
9 files changed, 467 insertions, 3 deletions
diff --git a/games-fps/ut2004-bonuspack-mega/ChangeLog b/games-fps/ut2004-bonuspack-mega/ChangeLog
index e3958f79aed9..0b0fb1004387 100644
--- a/games-fps/ut2004-bonuspack-mega/ChangeLog
+++ b/games-fps/ut2004-bonuspack-mega/ChangeLog
@@ -1,6 +1,18 @@
# ChangeLog for games-fps/ut2004-bonuspack-mega
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004-bonuspack-mega/ChangeLog,v 1.2 2006/03/15 21:36:26 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004-bonuspack-mega/ChangeLog,v 1.3 2006/03/17 21:16:24 wolf31o2 Exp $
+
+ 17 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ +ut2004-bonuspack-mega-1-r1.ebuild:
+ Added a new revision from Paul Bredbury <brebs@sent.com> and closing bug
+ #123202, bug #116528, and bug #126538.
+
+*ut2004-bonuspack-mega-1-r1 (17 Mar 2006)
+
+ 17 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ +ut2004-bonuspack-mega-1-r1.ebuild:
+ Added a new revision from Paul Bredbury <brebs@sent.com> and closing bug
+ #123202, bug #116528, and bug #126538.
15 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org> ChangeLog:
Changed attribution to the proper author. Apologies to Paul on this.
diff --git a/games-fps/ut2004-bonuspack-mega/files/digest-ut2004-bonuspack-mega-1-r1 b/games-fps/ut2004-bonuspack-mega/files/digest-ut2004-bonuspack-mega-1-r1
new file mode 100644
index 000000000000..38b19955bc69
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-mega/files/digest-ut2004-bonuspack-mega-1-r1
@@ -0,0 +1,3 @@
+MD5 098be93d06823c5fd416fa701e83418f ut2004megapack-linux.tar.bz2 203124107
+RMD160 8a5fa450c0a5cb9c3a66c5996a2a92bff2a1302f ut2004megapack-linux.tar.bz2 203124107
+SHA256 b9122c8c405945d29c3cdf61f57fe4d21e886b79ea9caa0d8e0ca2e520aa472c ut2004megapack-linux.tar.bz2 203124107
diff --git a/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r1.ebuild b/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r1.ebuild
new file mode 100644
index 000000000000..2dd9dbf47391
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r1.ebuild,v 1.1 2006/03/17 21:16:24 wolf31o2 Exp $
+
+inherit games games-ut2k4mod
+
+MY_P="ut2004megapack-linux.tar.bz2"
+MY_PN="Megapack"
+
+DESCRIPTION="Unreal Tournament 2004 - Megapack bonus pack"
+HOMEPAGE="http://www.unrealtournament2004.com/"
+SRC_URI="mirror://3dgamers/unrealtourn2k4/Missions/${MY_P}
+ http://0day.icculus.org/ut2004/${MY_P}
+ ftp://ftp.games.skynet.be/pub/misc/${MY_P}
+ http://sonic-lux.net/data/mirror/ut2004/${MY_P}"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+RESTRICT="nostrip nomirror"
+IUSE=""
+
+# Override games-ut2k4mod eclass
+# File comparison was made with ut2004-3369-r2
+# Need ut2004-3369-r4, to take ownership of {Manifest.in{i,t},Packages.md5}
+RDEPEND=">=games-fps/ut2004-3369-r4
+ >=games-fps/ut2004-data-3186-r2
+ >=games-fps/ut2004-bonuspack-ece-1-r1"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/UT2004MegaPack
+dir=${GAMES_PREFIX_OPT}/ut2004
+Ddir=${D}/${dir}
+
+src_unpack() {
+ # Override games-ut2k4mod
+ unpack ${A}
+}
+
+src_install() {
+ # Remove files in Megapack which are already installed
+ rm -r Animations Speech Web
+
+ rm Help/{ReadMePatch.int.txt,UT2004Logo.bmp}
+ mv Help/BonusPackReadme.txt Help/${MY_PN}Readme.txt
+
+ rm Maps/ONS-{Adara,IslandHop,Tricky,Urban}.ut2
+ rm Sounds/{CicadaSnds,DistantBooms,ONSBPSounds}.uax
+ rm StaticMeshes/{BenMesh02,BenTropicalSM01,HourAdara,ONS-BPJW1,PC_UrbanStatic}.usx
+
+ # System
+ rm System/{AL,AS-,B,b,C,D,E,F,G,I,L,O,o,S,s,U,V,W,X,x}*
+ rm System/{ucc,ut2004}-bin
+ rm System/{ucc,ut2004}-bin-linux-amd64
+
+ # Backup files which a future bonuspack may try to overwrite
+ for n in {Manifest.in{i,t},Packages.md5} ; do
+ cp System/${n} System/${n}-${MY_PN}
+ done
+
+ rm Textures/{AW-2k4XP,BenTex02,BenTropical01,BonusParticles,CicadaTex,Construction_S,HourAdaraTexor,jwfasterfiles,ONSBP_DestroyedVehicles,ONSBPTextures,PC_UrbanTex,UT2004ECEPlayerSkins}.utx
+
+ # Install Megapack
+ for n in {Help,Maps,Music,Sounds,StaticMeshes,System,Textures} ; do
+ # doins is not used because of its unnecessary overhead
+ dodir "${dir}"/${n}
+ cp -r "${S}"/${n}/* "${Ddir}"/${n} \
+ || die "copying ${n} from ${MY_PN}"
+ done
+
+ prepgamesdirs
+}
diff --git a/games-fps/ut2004-data/ChangeLog b/games-fps/ut2004-data/ChangeLog
index 1e22beecfa9f..ae42468df560 100644
--- a/games-fps/ut2004-data/ChangeLog
+++ b/games-fps/ut2004-data/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-fps/ut2004-data
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004-data/ChangeLog,v 1.6 2006/03/14 23:16:09 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004-data/ChangeLog,v 1.7 2006/03/17 21:13:59 wolf31o2 Exp $
+
+*ut2004-data-3186-r2 (17 Mar 2006)
+
+ 17 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ +ut2004-data-3186-r2.ebuild:
+ Added a new revision from Paul Bredbury <brebs@sent.com> and closing bug
+ #123202, bug #116528, and bug #126538.
*ut2004-data-3186-r1 (14 Mar 2006)
diff --git a/games-fps/ut2004-data/files/digest-ut2004-data-3186-r2 b/games-fps/ut2004-data/files/digest-ut2004-data-3186-r2
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/games-fps/ut2004-data/files/digest-ut2004-data-3186-r2
diff --git a/games-fps/ut2004-data/ut2004-data-3186-r2.ebuild b/games-fps/ut2004-data/ut2004-data-3186-r2.ebuild
new file mode 100644
index 000000000000..e6492e4199d4
--- /dev/null
+++ b/games-fps/ut2004-data/ut2004-data-3186-r2.ebuild
@@ -0,0 +1,199 @@
+# 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-r2.ebuild,v 1.1 2006/03/17 21:13:59 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
+ # We install the provided libraries because upstream wants it that way.
+ # If you want to use your own system binaries, then feel free to uncomment
+ # the following. You will also want to comment the doexe lines below that
+ # installs the libraries.
+# newexe "${S}"/System/openal.so openal.so-binary
+# newexe "${S}"/System/libSDL-1.2.so.0 libSDL-1.2.so.0-binary
+ doexe ${S}/System/{libSDL-1.2.so.0,openal.so} \
+ || die "copying libraries"
+ doexe "${S}"/System/{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,ut2004.xpm} || die "copying readme/icon"
+
+ # Now, since these files are coming off a CD, the times/sizes/md5sums won't
+ # be different ... that means portage will try to unmerge some files (!)
+ # We run touch on ${D} so as to make sure portage doesn't 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 emerge ut2004."
+ echo
+}
diff --git a/games-fps/ut2004/ChangeLog b/games-fps/ut2004/ChangeLog
index 011abdb0bb62..1bc065613571 100644
--- a/games-fps/ut2004/ChangeLog
+++ b/games-fps/ut2004/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-fps/ut2004
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004/ChangeLog,v 1.43 2006/03/15 21:39:00 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004/ChangeLog,v 1.44 2006/03/17 21:16:49 wolf31o2 Exp $
+
+*ut2004-3369-r4 (17 Mar 2006)
+
+ 17 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ +ut2004-3369-r4.ebuild:
+ Added a new revision from Paul Bredbury <brebs@sent.com> and closing bug
+ #123202, bug #116528, and bug #126538.
15 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org> ut2004-3369-r3.ebuild:
Added ut2004-bonuspack-mega to RDEPEND since users are forced to download
diff --git a/games-fps/ut2004/files/digest-ut2004-3369-r4 b/games-fps/ut2004/files/digest-ut2004-3369-r4
new file mode 100644
index 000000000000..d228ce45be22
--- /dev/null
+++ b/games-fps/ut2004/files/digest-ut2004-3369-r4
@@ -0,0 +1,3 @@
+MD5 0fa447e05fe5a38e0e32adf171be405e ut2004-lnxpatch3369-2.tar.bz2 22465217
+RMD160 af632d8cd1f05e36e861eb3fab927ffc8ae3f59d ut2004-lnxpatch3369-2.tar.bz2 22465217
+SHA256 438b9b13a367d46f23cce12b065382a55afa2fc68add1f1dd3db03b015f60bb3 ut2004-lnxpatch3369-2.tar.bz2 22465217
diff --git a/games-fps/ut2004/ut2004-3369-r4.ebuild b/games-fps/ut2004/ut2004-3369-r4.ebuild
new file mode 100644
index 000000000000..d5db3c40a1d4
--- /dev/null
+++ b/games-fps/ut2004/ut2004-3369-r4.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004/ut2004-3369-r4.ebuild,v 1.1 2006/03/17 21:16:49 wolf31o2 Exp $
+
+inherit eutils multilib games
+
+MY_P="${PN}-lnxpatch${PV}-2.tar.bz2"
+DESCRIPTION="Unreal Tournament 2004 - Editor's Choice Edition"
+HOMEPAGE="http://www.unrealtournament2004.com/"
+SRC_URI="mirror://3dgamers/unrealtourn2k4/${MY_P}
+ http://speculum.twistedgamer.com/pub/0day.icculus.org/${PN}/${MY_P}
+ http://treefort.icculus.org/${PN}/${MY_P}
+ http://sonic-lux.net/data/mirror/ut2004/${MY_P}"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+# The executable pages are required.
+RESTRICT="nostrip nomirror stricter"
+IUSE="opengl"
+
+RDEPEND=">=games-fps/ut2004-data-3186-r2
+ >=games-fps/ut2004-bonuspack-ece-1-r1
+ >=games-fps/ut2004-bonuspack-mega-1-r1
+ opengl? (
+ virtual/opengl )
+ || (
+ sys-libs/libstdc++-v3
+ =sys-devel/gcc-3.3* )
+ || (
+ (
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp )
+ virtual/x11 )"
+ # If you wish to use your system libSDL/openal, then you will need to remove
+ # the comments from the following two lines, along with the quotes above and
+ # this comment text.
+# >=media-libs/libsdl-1.2
+# media-libs/openal"
+
+S=${WORKDIR}/UT2004-Patch
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ check_license ut2003
+ games_pkg_setup
+}
+
+src_install() {
+ # These files are owned by ut2004-bonuspack-mega
+ rm "${S}"/System/{Manifest.in{i,t},Packages.md5}
+
+ # Installing patch files
+ for p in {Animations,Help,Speech,System,Textures,Web}
+ do
+ dodir "${dir}/${p}"
+ cp -r "${S}/${p}"/* "${Ddir}/${p}" \
+ || die "copying ${p} from patch"
+ done
+
+ # To use system libraries, rather than binaries from ut2004-data, you will
+ # need to uncomment these three lines, as well as ensure that you have both
+ # libsdl and openal installed.
+# dosym /usr/$(get_libdir)/libopenal.so "${dir}"/System/openal.so || die
+# dosym /usr/$(get_libdir)/libSDL-1.2.so.0 "${dir}"/System/libSDL-1.2.so.0 \
+# || die
+
+ use amd64 && rm "${Ddir}"/System/u{cc,t2004}-bin \
+ && mv "${Ddir}"/System/ucc-bin-linux-amd64 "${Ddir}"/System/ucc-bin \
+ && mv "${Ddir}"/System/ut2004-bin-linux-amd64 \
+ "${Ddir}"/System/ut2004-bin \
+ && chmod ug+x "${Ddir}"/System/ucc-bin "${Ddir}"/System/ut2004-bin
+ use x86 && rm "${Ddir}"/System/ucc-bin-linux-amd64 \
+ "${Ddir}"/System/ut2004-bin-linux-amd64
+
+ # Creating .manifest files
+ insinto "${dir}"/.manifest
+ doins "${FILESDIR}"/${PN}.xml
+
+ # Creating .loki/installed links
+ mkdir -p "${D}"/root/.loki/installed
+ dosym "${dir}"/.manifest/${PN}.xml "${ROOT}"/root/.loki/installed/${PN}.xml
+
+ games_make_wrapper ut2004 ./ut2004 "${dir}" "${dir}"
+
+ prepgamesdirs
+ make_desktop_entry ut2004 "Unreal Tournament 2004" ut2004.xpm
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ # Here is where we check for the existence of a cdkey...
+ # If we don't find one, we ask the user for it
+ if [[ -f "${dir}/System/cdkey" ]]
+ then
+ einfo "A cdkey file is already present in ${dir}/System"
+ else
+ ewarn "You MUST run this before playing the game:"
+ ewarn "emerge --config =${CATEGORY}/${PF}"
+ ewarn "That way you can [re]enter your cdkey."
+ fi
+ echo
+ einfo "Starting with 3369, the game supports render-to-texture. To enable"
+ einfo "it, you will need the Nvidia drivers of at least version 7676 and"
+ einfo "you should edit the following:"
+ einfo 'Set "UseRenderTargets=True" in the "[OpenGLDrv.OpenGLRenderDevice]"'
+ einfo 'section of your UT2004.ini/Default.ini and set "bPlayerShadows=True"'
+ einfo 'and "bBlobShadow=False" in the "[UnrealGame.UnrealPawn]" section of'
+ einfo 'your User.ini/DefUser.ini'
+ echo
+ if use x86
+ then
+ einfo "The 32-bit version of UT2004 uses Pixomatic, which means it"
+ einfo "really does need an executable stack. It is safe to ignore any"
+ einfo "warnings from portage about this. See:"
+ einfo "http://bugs.gentoo.org/show_bug.cgi?id=114733"
+ einfo "for more information."
+ fi
+ echo
+ einfo "To play the game run:"
+ einfo " ut2004"
+ echo
+}
+
+pkg_postrm() {
+ ewarn "This package leaves a cdkey file in ${dir}/System that you need"
+ ewarn "to remove to completely get rid of this game's files."
+}
+
+pkg_config() {
+ ewarn "Your CD key is NOT checked for validity here."
+ ewarn " Make sure you type it in correctly."
+ eerror "If you CTRL+C out of this, the game will not run!"
+ echo
+ einfo "CD key format is: XXXXX-XXXXX-XXXXX-XXXXX"
+ while true
+ do
+ einfo "Please enter your CD key:"
+ read CDKEY1
+ einfo "Please re-enter your CD key:"
+ read CDKEY2
+ if [[ "$CDKEY1" == "" ]]
+ then
+ echo "You entered a blank CD key. Try again."
+ else
+ if [[ "$CDKEY1" == "$CDKEY2" ]]
+ then
+ echo "$CDKEY1" | tr a-z A-Z > "${dir}"/System/cdkey
+ einfo "Thank you!"
+ break
+ else
+ eerror "Your CD key entries do not match. Try again."
+ fi
+ fi
+ done
+}