games-fps/ut2004-bonuspack-ece: EAPI=5; attempt at fixing bug #278002
authorMichael Sterrett <mr_bones_@gentoo.org>
Tue, 12 Jan 2016 23:51:30 +0000 (18:51 -0500)
committerMichael Sterrett <mr_bones_@gentoo.org>
Wed, 13 Jan 2016 04:45:27 +0000 (23:45 -0500)
Package-Manager: portage-2.2.26

games-fps/ut2004-bonuspack-ece/Manifest
games-fps/ut2004-bonuspack-ece/ut2004-bonuspack-ece-1-r3.ebuild

index 0070908168a4b4472b6ce11fcb2e7e1608b7ee40..4dccfa1917b8b90a3f3c501a38f9c6a4a46e0450 100644 (file)
@@ -1 +1,2 @@
+DIST UT2004-ONSBonusMapPack.zip 11018471 SHA256 b1c6e1fbf417381180fe02a81eb0cab752e6baa6b814c42fc7f69da11b02dd05 SHA512 8193375b89cd6fbc8b00de195797099c128fcf5cb73757bbc57d3c5350c497a878eaf0200f2e0711bf062e25c5d170e05b055c63f85b908b18dcc89572d71fd2 WHIRLPOOL 5600b1420124034983258b0843561164996e8c427ecfd04c6552f92585c09b0eb1be73360151ae0c9950cb28df7018d0287bfac86bae014c48e537a1135be42a
 DIST ut2004megapack-linux.tar.bz2 203124107 SHA256 b9122c8c405945d29c3cdf61f57fe4d21e886b79ea9caa0d8e0ca2e520aa472c SHA512 4ae5eec0622c2bd96dfc162541bc0771399b012fb00f022282bc8c34600cb8e9bb7c18a52dd55fbef6f16fedaf225e301c46077a6accd001f4c77ddad89ed17b WHIRLPOOL c7b995764c3b6e88673eba29ef77172441ca353eef0c3eaeea950bf52007a6656c87a19f2cbb074c70780cfa1f36cac8cf556327930445f6495d415d9fc26425
index 16ebc3d31501c3bb24488ab1cf20d64f5ae6bd87..6e555ab07fc315de96918b25778135e37b182e6c 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=2
+EAPI=5
 
 MOD_DESC="Editor's Choice Edition bonus pack"
 MOD_NAME="Editor's Choice Edition"
@@ -14,40 +14,47 @@ 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}"
+       http://sonic-lux.net/data/mirror/ut2004/${MY_P}
+       http://unrealmassdestruction.com/downloads/ut2k4/essentials/UT2004-ONSBonusMapPack.zip"
 
 LICENSE="ut2003"
 KEYWORDS="amd64 x86"
 IUSE=""
 
+src_unpack() {
+       unpack ${MY_P}
+       cd UT2004MegaPack/Maps || die
+       unpack UT2004-ONSBonusMapPack.zip # bug #278002
+}
+
 src_prepare() {
        mv -f UT2004MegaPack/* . || die
-       rmdir UT2004MegaPack
+       rmdir UT2004MegaPack || die
 
-       rm -r Music Speech
+       rm -r Music Speech || die
 
        # Remove megapack files which are not in ece
-       rm Animations/ONSNewTank-A.ukx
-       rm Help/ReadMePatch.int.txt
+       rm Animations/ONSNewTank-A.ukx || die
+       rm Help/ReadMePatch.int.txt || die
        # Help/{DebuggerLogo.bmp,InstallerLogo.bmp,Unreal.ico,UnrealEd.ico}
        # are not in megapack.
        # Keep new Help/UT2004Logo.bmp
        # Manual dir does not exist in megapack
-       rm Maps/{AS*,CTF*,DM*}
-       rm Sounds/A_Announcer_BP2.uax
-       rm StaticMeshes/{JumpShipObjects.usx,Ty_RocketSMeshes.usx}
-       rm System/{A*,b*,B*,CacheRecords.ucl}
-       rm System/{*.det,*.est,*.frt,*.itt,*.kot}
-       rm System/{CTF*,D*,Editor*,G*,I*,L*,ONS-Arc*,Onslaught.*,*.md5}
-       rm System/{u*,U*,V*,X*,Core.u,Engine.u,F*,*.ucl,Sk*}
-       rm Textures/{J*,j*,T*}
-       rm -r Web
+       rm Maps/{AS*,CTF*,DM*} || die
+       rm Sounds/A_Announcer_BP2.uax || die
+       rm StaticMeshes/{JumpShipObjects.usx,Ty_RocketSMeshes.usx} || die
+       rm System/{A*,b*,B*,CacheRecords.ucl} || die
+       rm System/{*.det,*.est,*.frt,*.itt,*.kot} || die
+       rm System/{CTF*,D*,Editor*,G*,I*,L*,Onslaught.*,*.md5} || die
+       rm System/{u*,U*,V*,X*,Core.u,Engine.u,F*,*.ucl,Sk*} || die
+       rm Textures/{J*,j*,T*} || die
+       rm -r Web || die
 
        # The file lists of ut2004-3369-r1 and -r2 are identical
        # Remove files owned by ut2004-3369-r2
-       rm Help/UT2004Logo.bmp
+       rm Help/UT2004Logo.bmp || die
        # The 2 Manifest files have not changed
-       rm System/{Manifest.in{i,t},OnslaughtFull.int}
-       rm System/{Core.int,Engine.int,Setup.int,Window.int}
-       rm System/{OnslaughtFull.u,OnslaughtBP.u}
+       rm System/{Manifest.in{i,t},OnslaughtFull.int} || die
+       rm System/{Core.int,Engine.int,Setup.int,Window.int} || die
+       rm System/{OnslaughtFull.u,OnslaughtBP.u} || die
 }