games-fps/ut2004-bonuspack-mega: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Sun, 20 Oct 2019 21:57:19 +0000 (23:57 +0200)
committerJames Le Cuirot <chewi@gentoo.org>
Sun, 27 Oct 2019 23:48:10 +0000 (23:48 +0000)
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r2.ebuild [deleted file]
games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r3.ebuild [new file with mode: 0644]

diff --git a/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r2.ebuild b/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r2.ebuild
deleted file mode 100644 (file)
index 807f91c..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-MOD_DESC="Megapack bonus pack"
-MOD_NAME="Megapack"
-
-inherit games games-mods
-
-MY_P="ut2004megapack-linux.tar.bz2"
-HOMEPAGE="http://www.unrealtournament2004.com/"
-SRC_URI="http://ut2004.ut-files.com/BonusPacks/${MY_P}"
-
-LICENSE="ut2003"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-src_prepare() {
-       mv -f UT2004MegaPack/* . || die
-       rmdir UT2004MegaPack
-
-       # 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/MegapackReadme.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
-       rm Textures/{AW-2k4XP,BenTex02,BenTropical01,BonusParticles,CicadaTex,Construction_S,HourAdaraTexor,jwfasterfiles,ONSBP_DestroyedVehicles,ONSBPTextures,PC_UrbanTex,UT2004ECEPlayerSkins}.utx
-}
diff --git a/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r3.ebuild b/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r3.ebuild
new file mode 100644 (file)
index 0000000..4beb21b
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="UT2004 Megapack - Megapack bonus pack"
+HOMEPAGE="http://www.unrealtournament2004.com/"
+SRC_URI="http://ut2004.ut-files.com/BonusPacks/ut2004megapack-linux.tar.bz2"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="app-arch/unzip"
+
+S="${WORKDIR}"
+
+src_prepare() {
+       default
+
+       mv -f UT2004MegaPack/* . || die
+       rmdir UT2004MegaPack || die
+
+       # Remove files in Megapack which are already installed
+       rm -r Animations Speech Web || die
+
+       rm Help/{ReadMePatch.int.txt,UT2004Logo.bmp} || die
+       mv Help/BonusPackReadme.txt Help/MegapackReadme.txt || die
+
+       rm Maps/ONS-{Adara,IslandHop,Tricky,Urban}.ut2 || die
+       rm Sounds/{CicadaSnds,DistantBooms,ONSBPSounds}.uax || die
+       rm StaticMeshes/{BenMesh02,BenTropicalSM01,HourAdara,ONS-BPJW1,PC_UrbanStatic}.usx || die
+
+       # System
+       rm System/{AL,AS-,B,b,C,D,E,F,G,I,L,O,o,S,s,U,V,W,X,x}* || die
+       rm System/{ucc,ut2004}-bin || die
+       rm System/{ucc,ut2004}-bin-linux-amd64 || die
+       rm Textures/{AW-2k4XP,BenTex02,BenTropical01,BonusParticles,CicadaTex,Construction_S,HourAdaraTexor,jwfasterfiles,ONSBP_DestroyedVehicles,ONSBPTextures,PC_UrbanTex,UT2004ECEPlayerSkins}.utx || die
+}
+
+src_install() {
+       insinto /opt/ut2004
+       doins -r Help Maps Music Sounds StaticMeshes System Textures
+
+       dosym ut2004 /opt/ut2004-ded
+}