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