Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/urbanterror/
Date: Fri, 06 Jul 2018 21:48:36
Message-Id: 1530913676.358fca68df1bfb0e7099e260b1d22c9d6ade0c3d.asturm@gentoo
1 commit: 358fca68df1bfb0e7099e260b1d22c9d6ade0c3d
2 Author: Nils Freydank <holgersson <AT> posteo <DOT> de>
3 AuthorDate: Tue Jul 3 16:30:49 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 6 21:47:56 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=358fca68
7
8 games-fps/urbanterror: Bump to 4.3.4_p20180627
9
10 Closes: https://bugs.gentoo.org/658962
11 Package-Manager: Portage-2.3.40, Repoman-2.3.9
12
13 games-fps/urbanterror/Manifest | 1 +
14 .../urbanterror/urbanterror-4.3.4_p20180627.ebuild | 170 +++++++++++++++++++++
15 2 files changed, 171 insertions(+)
16
17 diff --git a/games-fps/urbanterror/Manifest b/games-fps/urbanterror/Manifest
18 index 66630f2fd9b..24fb99b754a 100644
19 --- a/games-fps/urbanterror/Manifest
20 +++ b/games-fps/urbanterror/Manifest
21 @@ -1,2 +1,3 @@
22 DIST urbanterror-4.3.3_p20180218.tar.gz 10069644 BLAKE2B ef711eee61f18cf2bc15974806d1b0b74c2a2094fbca5a07d70307289ae9eca53d2704b1cabc754c70984133761ff6daa55e00613668c0f0cc2b9a3ad5dac624 SHA512 e7f433b9971f5992efedee96123fe7c7665b6c7fa4a516df281e1f3635a9d56a653310e38f326a8e53640ed0a7d8e3bf6b44c08d70b8378d1ccdd75c05b31dc8
23 DIST urbanterror-4.3.3_p20180410.tar.gz 10070300 BLAKE2B c81b93137b7c528354b3d894d45636195947ab4f7e3e8af031e8c164114fa3db16d500046187ce5ad688a6d6c65844b1b1b1282773c2171b38f59c7093d251dd SHA512 ea9021543c91ef7619f1f15febecd36c1e38a382c4959d5916022c108458a17f3649ac74784da0c06ef2ed738390bd247888ca4ba8d033b8c1121ab9540dcb31
24 +DIST urbanterror-4.3.4_p20180627.tar.gz 10069715 BLAKE2B 179a952d51448af39636560e71c33dba8491fa195dd29d149f3d87d11ca2efff9a50041cdb585df9944361cfef8ac2b9efd2967cb6ffeeceb553fbc6aa17b218 SHA512 8eb314143fb336ff32d5b4a97075e54d5577570f1193c2220648ba7866373c8aa158015efebcb8325ade7964f4622baff8a30d89e889f64141d748bba28712ef
25
26 diff --git a/games-fps/urbanterror/urbanterror-4.3.4_p20180627.ebuild b/games-fps/urbanterror/urbanterror-4.3.4_p20180627.ebuild
27 new file mode 100644
28 index 00000000000..04d4459533e
29 --- /dev/null
30 +++ b/games-fps/urbanterror/urbanterror-4.3.4_p20180627.ebuild
31 @@ -0,0 +1,170 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +
37 +inherit desktop eapi7-ver flag-o-matic toolchain-funcs xdg-utils
38 +
39 +DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine"
40 +HOMEPAGE="https://urbanterror.info https://github.com/mickael9/ioq3"
41 +
42 +if [[ ${PV} == *9999 ]]; then
43 + inherit git-r3
44 + EGIT_REPO_URI="https://github.com/mickael9/ioq3.git"
45 + EGIT_BRANCH="urt"
46 +else
47 + COMMIT_ID="e8c941ec8b753b9ecb4f8c4fcec07e4fe3babc64"
48 + SRC_URI="https://github.com/mickael9/ioq3/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
49 + S="${WORKDIR}/ioq3-${COMMIT_ID}"
50 + KEYWORDS="~amd64 ~x86"
51 +fi
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +IUSE="+altgamma +client +curl debug mumble openal +opus server +skeetshootmod voip vorbis"
56 +REQUIRED_USE="|| ( client server )
57 + voip? ( opus )"
58 +
59 +DOCS=( ChangeLog README.md README.ioq3.md md4-readme.txt )
60 +
61 +PATCHES=(
62 + "${FILESDIR}"/${PN}-4.3-fix-build_system.patch
63 + "${FILESDIR}"/${PN}-4.3.3_p20180218-fix-loop.patch
64 +)
65 +
66 +RDEPEND="
67 + client? (
68 + media-libs/libsdl2:=[X,sound,joystick,opengl,video]
69 + mumble? ( media-sound/mumble:= )
70 + openal? ( media-libs/openal:= )
71 + opus? ( media-libs/opusfile:= )
72 + vorbis? ( media-libs/libvorbis:= )
73 + )
74 + curl? ( net-misc/curl )
75 + ~games-fps/urbanterror-data-4.3.4
76 + sys-libs/zlib:=[minizip]
77 + virtual/jpeg:0
78 +"
79 +
80 +DEPEND="${RDEPEND}"
81 +
82 +pkg_pretend() {
83 + if use client; then
84 + if ! use openal && ! use opus && ! use vorbis; then
85 + ewarn
86 + ewarn "No sound implementation selected. Enable 'openal', 'opus' or 'vorbis' USE flag to get sound!"
87 + fi
88 + fi
89 +}
90 +
91 +src_configure() {
92 + default
93 +
94 + tc-export CC
95 +}
96 +
97 +src_compile() {
98 + # Workaround for used zlib macro, which got renamed in Gentoo
99 + # wrt bug #449510
100 + append-cppflags "-DOF=_Z_OF"
101 +
102 + local myemakeargs=(
103 + ARCH=$(usex amd64 "x86_64" "i686" )
104 + DEFAULT_BASEDIR="/usr/share/urbanterror"
105 + BUILD_CLIENT=$(usex "client" 1 0)
106 + BUILD_SERVER=$(usex "server" 1 0)
107 + BUILD_BASEGAME=1
108 + BUILD_MISSIONPACK=0
109 + BUILD_GAME_SO=0
110 + BUILD_GAME_QVM=0
111 + BUILD_STANDALONE=1
112 + SERVERBIN="Quake3-UrT-Ded"
113 + CLIENTBIN="Quake3-UrT"
114 + USE_RENDERER_DLOPEN=0
115 + USE_YACC=0
116 + BASEGAME="q3ut4"
117 + BASEGAME_CFLAGS="${CFLAGS}"
118 + USE_OPENAL=$(usex "openal" 1 0)
119 + USE_OPENAL_DLOPEN=$(usex "openal" 1 0)
120 + USE_CURL=$(usex "curl" 1 0)
121 + USE_CURL_DLOPEN=$(usex "curl" 1 0)
122 + USE_CODEC_VORBIS=$(usex "vorbis" 1 0)
123 + USE_CODEC_OPUS=$(usex "opus" 1 0)
124 + USE_MUMBLE=$(usex "mumble" 1 0)
125 + USE_SKEETMOD=$(usex "skeetshootmod" 1 0)
126 + USE_VOIP=$(usex "mumble" 1 0)
127 + USE_INTERNAL_LIBS=0
128 + USE_LOCAL_HEADERS=0
129 + USE_ALTGAMMA=$(usex "altgamma" 1 0)
130 + $(usex "debug" "debug" "release")
131 + )
132 + emake "${myemakeargs[@]}"
133 +}
134 +
135 +src_install() {
136 + local myarch=$(usex amd64 "x86_64" "i386")
137 + local myreleasetype=$(usex debug "debug" "release")
138 +
139 + if use client; then
140 + newbin build/${myreleasetype}-linux-${myarch}/Quake3-UrT.${myarch} ${PN}
141 + # Shooter as defined in https://specifications.freedesktop.org/menu-spec/latest/apas02.html
142 + make_desktop_entry ${PN} "UrbanTerror" ${PN}
143 + fi
144 +
145 + if use server && ! use client; then
146 + # dedicated server only
147 + newbin build/${myreleasetype}-linux-${myarch}/Quake3-UrT-Ded.${myarch} ${PN}-ded
148 + fi
149 +
150 + einstalldocs
151 +}
152 +
153 +pkg_postinst() {
154 + use client && xdg_desktop_database_update
155 +
156 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
157 + # ^this is a new installation, so:
158 + if use openal; then
159 + elog ""
160 + elog "You might need to set:"
161 + elog " seta s_useopenal \"1\""
162 + elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work."
163 + fi
164 +
165 + if use altgamma; then
166 + elog ""
167 + elog "You might need to set:"
168 + elog " seta r_altgamma \"1\""
169 + elog "in your ~/.q3a/q3ut4/q3config.cfg for altgamma to work."
170 + elog "Be aware that altgamme works on a global scale, so external"
171 + elog "applications like redshift can cause trouble. Disabling"
172 + elog "these while playing is a usable workaround."
173 + fi
174 +
175 + if ! use altgamma; then
176 + elog ""
177 + elog "If you are using a modesetting graphics driver you might"
178 + elog "consider setting USE=\"altgamma\"."
179 + elog "For details take a look at:"
180 + elog "https://bugs.freedesktop.org/show_bug.cgi?id=27222"
181 + fi
182 +
183 + if ! use client; then
184 + elog ""
185 + elog "You disabled client support. You won't be able to connect"
186 + elog "to any servers and play. If you want to do so, enable"
187 + elog "USE=\"client\"."
188 + fi
189 +
190 + if use skeetshootmod; then
191 + elog ""
192 + elog "You might need to set:"
193 + elog " seta sv_skeetshoot \"1\""
194 + elog "in your ~/.q3a/q3ut4/q3config.cfg to use the skeetshoot mod."
195 + fi
196 + fi
197 +}
198 +
199 +pkg_postrm() {
200 + use client && xdg_desktop_database_update
201 +}