summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-03-14 22:53:34 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-03-14 22:53:34 +0000
commit0e7458a2198f813b2c239f6ada648152ddde6530 (patch)
tree1844e656eb3a49090592c286848f84d14e000268 /games-fps/ut2004-bonuspack-mega
parentStable on ppc; bug #125419 (diff)
downloadgentoo-2-0e7458a2198f813b2c239f6ada648152ddde6530.tar.gz
gentoo-2-0e7458a2198f813b2c239f6ada648152ddde6530.tar.bz2
gentoo-2-0e7458a2198f813b2c239f6ada648152ddde6530.zip
Initial import. Ebuild by Allen Booker <gentoo-bugs@allen.brooker.gb.net>. Closing bug #116528.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'games-fps/ut2004-bonuspack-mega')
-rw-r--r--games-fps/ut2004-bonuspack-mega/ChangeLog11
-rw-r--r--games-fps/ut2004-bonuspack-mega/Manifest9
-rw-r--r--games-fps/ut2004-bonuspack-mega/files/digest-ut2004-bonuspack-mega-13
-rw-r--r--games-fps/ut2004-bonuspack-mega/metadata.xml9
-rw-r--r--games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1.ebuild93
5 files changed, 125 insertions, 0 deletions
diff --git a/games-fps/ut2004-bonuspack-mega/ChangeLog b/games-fps/ut2004-bonuspack-mega/ChangeLog
new file mode 100644
index 000000000000..56e64ef927ad
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-mega/ChangeLog
@@ -0,0 +1,11 @@
+# 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.1 2006/03/14 22:53:34 wolf31o2 Exp $
+
+*ut2004-bonuspack-mega-1 (14 Mar 2006)
+
+ 14 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+ +ut2004-bonuspack-mega-1.ebuild:
+ Initial import. Ebuild by Allen Booker <gentoo-bugs@allen.brooker.gb.net>.
+ Closing bug #116528.
+
diff --git a/games-fps/ut2004-bonuspack-mega/Manifest b/games-fps/ut2004-bonuspack-mega/Manifest
new file mode 100644
index 000000000000..94879ddae4ca
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-mega/Manifest
@@ -0,0 +1,9 @@
+MD5 e3c41949e25972ae303320a2f8a69efd files/digest-ut2004-bonuspack-mega-1 274
+RMD160 c43a3d4780ab59f6e4c38f9d0b79b2f492d59ea6 files/digest-ut2004-bonuspack-mega-1 274
+SHA256 276d4778f06e98344e320ae2fa8102c5ed5dac8a934e685f059dde8001105ca2 files/digest-ut2004-bonuspack-mega-1 274
+MD5 11a7e1491b1ac042ac7216b26b4ad1fb metadata.xml 254
+RMD160 877a1dc36df2be58926bc51041093feafdefe429 metadata.xml 254
+SHA256 2916aab684ec3908fffb515065eeb2c481cde563380b682646add582bed5f535 metadata.xml 254
+MD5 441f4b7cdc035a82e6cd25ae8240e654 ut2004-bonuspack-mega-1.ebuild 2631
+RMD160 8c1d6c36b0f0bd5b2838a57e1f718513ecb58c4c ut2004-bonuspack-mega-1.ebuild 2631
+SHA256 e765fdfb8c2a851e5d622aaf8b05fa5c914591f72420323aeb204f2e3470ef6e ut2004-bonuspack-mega-1.ebuild 2631
diff --git a/games-fps/ut2004-bonuspack-mega/files/digest-ut2004-bonuspack-mega-1 b/games-fps/ut2004-bonuspack-mega/files/digest-ut2004-bonuspack-mega-1
new file mode 100644
index 000000000000..38b19955bc69
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-mega/files/digest-ut2004-bonuspack-mega-1
@@ -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/metadata.xml b/games-fps/ut2004-bonuspack-mega/metadata.xml
new file mode 100644
index 000000000000..fe08918e6837
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-mega/metadata.xml
@@ -0,0 +1,9 @@
+<?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>
+</pkgmetadata>
diff --git a/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1.ebuild b/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1.ebuild
new file mode 100644
index 000000000000..c26d7aa48db4
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1.ebuild
@@ -0,0 +1,93 @@
+# 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.ebuild,v 1.1 2006/03/14 22:53:34 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
+RDEPEND=">=games-fps/ut2004-3369-r2
+ games-fps/ut2004-data
+ games-fps/ut2004-bonuspack-ece"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/UT2004MegaPack
+dir=${GAMES_PREFIX_OPT}/ut2004
+Ddir=${D}/${dir}
+
+src_unpack() {
+ # Override games-ut2k4mod
+ unpack ${A}
+}
+
+src_install() {
+ # The already-installed files are identical, except:
+ # System/Manifest.ini, System/Manifest.int, System/Packages.md5
+
+ # 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
+
+ # Handle the changed files gracefully
+ for n in {Manifest.in{i,t},Packages.md5} ; do
+ mv 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
+}
+
+pkg_postinst() {
+ local sysdir=${dir}/System
+ local mfile=${sysdir}/Manifest.ini
+
+ # DM-BP2-GoopGod is a map from the Megapack
+ if [[ ! -e "${mfile}" ]] || \
+ [[ $(grep -c "DM-BP2-GoopGod.ut2," "${mfile}") = "0" ]] ; then
+ # Make the changed files live
+ for n in {Manifest.in{i,t},Packages.md5} ; do
+ einfo "Installing ${sysdir}/${n}"
+ cp -p "${sysdir}"/${n}-${MY_PN} "${sysdir}"/${n} \
+ || die "cp ${n}-${MY_PN} failed"
+ done
+ echo
+ fi
+
+ games_pkg_postinst
+}