Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/urbanterror-data/
Date: Wed, 30 Aug 2017 06:26:50
Message-Id: 1504074369.8e0507c4843f7ac90c552dedb750ef369e85bb98.soap@gentoo
1 commit: 8e0507c4843f7ac90c552dedb750ef369e85bb98
2 Author: Nils Freydank <holgersson <AT> posteo <DOT> de>
3 AuthorDate: Tue Aug 22 15:13:41 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 30 06:26:09 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e0507c4
7
8 ygames-fps/urbanterror-data: Drop SVG image as license is unclear
9
10 Free license of the image source came from wikicommons, and only
11 one explicitly under GPL is in .ico format. Drop it to avoid
12 legal issues.
13
14 Package-Manager: Portage-2.3.8, Repoman-2.3.3
15 Closes: https://github.com/gentoo/gentoo/pull/5381
16
17 .../urbanterror-data-4.3.2-r1.ebuild | 62 ++++++++++++++++++++++
18 1 file changed, 62 insertions(+)
19
20 diff --git a/games-fps/urbanterror-data/urbanterror-data-4.3.2-r1.ebuild b/games-fps/urbanterror-data/urbanterror-data-4.3.2-r1.ebuild
21 new file mode 100644
22 index 00000000000..95dea99a4f6
23 --- /dev/null
24 +++ b/games-fps/urbanterror-data/urbanterror-data-4.3.2-r1.ebuild
25 @@ -0,0 +1,62 @@
26 +# Copyright 1999-2017 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI="6"
30 +inherit check-reqs eutils
31 +
32 +ENGINE_PV=${PV}
33 +
34 +MY_PN=UrbanTerror
35 +MY_PV=43_full
36 +
37 +DESCRIPTION="Data files for UrbanTerror"
38 +HOMEPAGE="http://www.urbanterror.info"
39 +SRC_URI="https://up.barbatos.fr/urt/${MY_PN}${MY_PV}.zip -> ${P}.zip"
40 +
41 +# fetch updates recursively for |4.3.x-4.3.0|
42 +if [[ "${PV}" != "4.3.0" ]]; then
43 + MY_CTR=0
44 + while [[ "${MY_CTR}" -lt "${PV/4.3./}" ]]; do
45 + SRC_URI="${SRC_URI} https://up.barbatos.fr/urt/${MY_PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 )).zip -> ${PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 )).zip"
46 + MY_CTR=$(( ${MY_CTR} + 1 ))
47 + done
48 +fi
49 +unset MY_CTR
50 +
51 +LICENSE="Q3AEULA-20000111 urbanterror-4.2-maps"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~x86"
54 +DEPEND="app-arch/unzip"
55 +
56 +S="${WORKDIR}/${MY_PN}43"
57 +
58 +CHECKREQS_DISK_BUILD="3300M"
59 +CHECKREQS_DISK_USR="1400M"
60 +
61 +src_prepare() {
62 + default
63 +
64 + # apply updates we fetched before
65 + # again recursively for |4.3.x - 4.3.0|
66 + local MY_CTR
67 + if [[ "${PV}" != "4.3.0" ]]; then
68 + MY_CTR=0
69 + while [[ "${MY_CTR}" -lt "${PV/4.3./}" ]]; do
70 + cp -dfpr \
71 + "${WORKDIR}"/${MY_PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 ))/* "${S}"
72 + MY_CTR=$(( ${MY_CTR} + 1 ))
73 + done
74 + fi
75 +}
76 +
77 +src_install() {
78 + insinto /usr/share/urbanterror/q3ut4
79 + doins q3ut4/*.pk3
80 + # These files are *essential* for startup
81 + newins q3ut4/server_example.cfg server.cfg
82 + newins q3ut4/autoexec_example.cfg autoexec.cfg
83 +
84 + dodoc q3ut4/readme43.txt
85 + docinto examples
86 + dodoc q3ut4/{server_example.cfg,mapcycle_example.txt}
87 +}