From: Chris Gianelloni Date: Tue, 14 Mar 2006 22:53:34 +0000 (+0000) Subject: Initial import. Ebuild by Allen Booker . Closing... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b4c353edda115bba6a57bcd8d1b1aa5526fe2b91;p=gentoo.git Initial import. Ebuild by Allen Booker . Closing bug #116528. Package-Manager: portage-2.1_pre4-r1 --- 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 +metadata.xml, + +ut2004-bonuspack-mega-1.ebuild: + Initial import. Ebuild by Allen Booker . + 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..d2eb8c8b5f95 --- /dev/null +++ b/games-fps/ut2004-bonuspack-mega/Manifest @@ -0,0 +1,12 @@ +MD5 107cd8ba5eb8d5847efffc14561ca395 ChangeLog 482 +RMD160 0ff2f74c7c993d6d54126d73febfa83d937850a4 ChangeLog 482 +SHA256 e539d520f735d67d7e9e148f4a69d08afd1783075531984260b3ff254ae25415 ChangeLog 482 +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 53bd502fdfc55504cbf7cd7d1a8667ca ut2004-bonuspack-mega-1.ebuild 2757 +RMD160 59857c5529e610529788162ca11ca541a86ae998 ut2004-bonuspack-mega-1.ebuild 2757 +SHA256 c531966c5360622274901328187a794d93fb8467cad6b11df35411c5a0987633 ut2004-bonuspack-mega-1.ebuild 2757 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 @@ + + + +games + + wolf31o2@gentoo.org + Chris Gianelloni + + 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 +}