Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/ut2004-bonuspack-mega/
Date: Sun, 27 Oct 2019 23:49:30
Message-Id: 1572220090.cec35860f131629b293e67eb3c245fd7f4bcea92.chewi@gentoo
1 commit: cec35860f131629b293e67eb3c245fd7f4bcea92
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 20 21:57:19 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 27 23:48:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cec35860
7
8 games-fps/ut2004-bonuspack-mega: Port to EAPI 7
9
10 Package-Manager: Portage-2.3.77, Repoman-2.3.17
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
13
14 .../ut2004-bonuspack-mega-1-r2.ebuild | 38 ------------------
15 .../ut2004-bonuspack-mega-1-r3.ebuild | 46 ++++++++++++++++++++++
16 2 files changed, 46 insertions(+), 38 deletions(-)
17
18 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
19 deleted file mode 100644
20 index 807f91c6bf0..00000000000
21 --- a/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r2.ebuild
22 +++ /dev/null
23 @@ -1,38 +0,0 @@
24 -# Copyright 1999-2017 Gentoo Foundation
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI=5
28 -
29 -MOD_DESC="Megapack bonus pack"
30 -MOD_NAME="Megapack"
31 -
32 -inherit games games-mods
33 -
34 -MY_P="ut2004megapack-linux.tar.bz2"
35 -HOMEPAGE="http://www.unrealtournament2004.com/"
36 -SRC_URI="http://ut2004.ut-files.com/BonusPacks/${MY_P}"
37 -
38 -LICENSE="ut2003"
39 -KEYWORDS="~amd64 ~x86"
40 -IUSE=""
41 -
42 -src_prepare() {
43 - mv -f UT2004MegaPack/* . || die
44 - rmdir UT2004MegaPack
45 -
46 - # Remove files in Megapack which are already installed
47 - rm -r Animations Speech Web
48 -
49 - rm Help/{ReadMePatch.int.txt,UT2004Logo.bmp}
50 - mv Help/BonusPackReadme.txt Help/MegapackReadme.txt
51 -
52 - rm Maps/ONS-{Adara,IslandHop,Tricky,Urban}.ut2
53 - rm Sounds/{CicadaSnds,DistantBooms,ONSBPSounds}.uax
54 - rm StaticMeshes/{BenMesh02,BenTropicalSM01,HourAdara,ONS-BPJW1,PC_UrbanStatic}.usx
55 -
56 - # System
57 - rm System/{AL,AS-,B,b,C,D,E,F,G,I,L,O,o,S,s,U,V,W,X,x}*
58 - rm System/{ucc,ut2004}-bin
59 - rm System/{ucc,ut2004}-bin-linux-amd64
60 - rm Textures/{AW-2k4XP,BenTex02,BenTropical01,BonusParticles,CicadaTex,Construction_S,HourAdaraTexor,jwfasterfiles,ONSBP_DestroyedVehicles,ONSBPTextures,PC_UrbanTex,UT2004ECEPlayerSkins}.utx
61 -}
62
63 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
64 new file mode 100644
65 index 00000000000..4beb21b3c8a
66 --- /dev/null
67 +++ b/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r3.ebuild
68 @@ -0,0 +1,46 @@
69 +# Copyright 1999-2019 Gentoo Authors
70 +# Distributed under the terms of the GNU General Public License v2
71 +
72 +EAPI=7
73 +
74 +DESCRIPTION="UT2004 Megapack - Megapack bonus pack"
75 +HOMEPAGE="http://www.unrealtournament2004.com/"
76 +SRC_URI="http://ut2004.ut-files.com/BonusPacks/ut2004megapack-linux.tar.bz2"
77 +
78 +LICENSE="ut2003"
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~x86"
81 +
82 +BDEPEND="app-arch/unzip"
83 +
84 +S="${WORKDIR}"
85 +
86 +src_prepare() {
87 + default
88 +
89 + mv -f UT2004MegaPack/* . || die
90 + rmdir UT2004MegaPack || die
91 +
92 + # Remove files in Megapack which are already installed
93 + rm -r Animations Speech Web || die
94 +
95 + rm Help/{ReadMePatch.int.txt,UT2004Logo.bmp} || die
96 + mv Help/BonusPackReadme.txt Help/MegapackReadme.txt || die
97 +
98 + rm Maps/ONS-{Adara,IslandHop,Tricky,Urban}.ut2 || die
99 + rm Sounds/{CicadaSnds,DistantBooms,ONSBPSounds}.uax || die
100 + rm StaticMeshes/{BenMesh02,BenTropicalSM01,HourAdara,ONS-BPJW1,PC_UrbanStatic}.usx || die
101 +
102 + # System
103 + rm System/{AL,AS-,B,b,C,D,E,F,G,I,L,O,o,S,s,U,V,W,X,x}* || die
104 + rm System/{ucc,ut2004}-bin || die
105 + rm System/{ucc,ut2004}-bin-linux-amd64 || die
106 + rm Textures/{AW-2k4XP,BenTex02,BenTropical01,BonusParticles,CicadaTex,Construction_S,HourAdaraTexor,jwfasterfiles,ONSBP_DestroyedVehicles,ONSBPTextures,PC_UrbanTex,UT2004ECEPlayerSkins}.utx || die
107 +}
108 +
109 +src_install() {
110 + insinto /opt/ut2004
111 + doins -r Help Maps Music Sounds StaticMeshes System Textures
112 +
113 + dosym ut2004 /opt/ut2004-ded
114 +}