1 |
commit: 9bf87bcd475d577af388c9a60389c12714bd2f39 |
2 |
Author: Nils Freydank <holgersson <AT> posteo <DOT> de> |
3 |
AuthorDate: Sat Dec 9 10:48:42 2017 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 10 20:39:05 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bf87bcd |
7 |
|
8 |
games-fps/urbanterror: Version bump to 4.3.2_p20171208. |
9 |
|
10 |
Package-Manager: Portage-2.3.17, Repoman-2.3.6 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/6488 |
12 |
|
13 |
games-fps/urbanterror/Manifest | 1 + |
14 |
.../urbanterror/urbanterror-4.3.2_p20171208.ebuild | 163 +++++++++++++++++++++ |
15 |
2 files changed, 164 insertions(+) |
16 |
|
17 |
diff --git a/games-fps/urbanterror/Manifest b/games-fps/urbanterror/Manifest |
18 |
index f9031204037..e6931427297 100644 |
19 |
--- a/games-fps/urbanterror/Manifest |
20 |
+++ b/games-fps/urbanterror/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST urbanterror-4.3.2_p20170713.tar.gz 9984763 BLAKE2B 4771e5ecf997334d33ae4b20 |
22 |
DIST urbanterror-4.3.2_p20170915.tar.gz 10061394 BLAKE2B 9e42de663b1ae0ae9e16a279233c88eb419f424c3db0b4d14276cbb9ab59fba3f32b43593f5901e0a6299ef8c2e4fe1d39a789d107a7bd9c15422a3acf553cea SHA512 d22bc3a0d8d191f797f5b1e7a0671424ca6dafbe5a3bd7fbfcd0e7249b9b4b6e790a64cdf7c93690d032b38f92aee703e9e302701084703d7a79d8f60cc2433e |
23 |
DIST urbanterror-4.3.2_p20171016.tar.gz 10061989 BLAKE2B 12cc4cd40f85c8d15c93fbafa5cc0c5fe2b8c2d35962aa6a24e8878525b262bab47a5f8cfef6e7a4e4d506c47a5d56fb22db99e341efac06cd1b16e1d845027b SHA512 b35bd08f6058d73eecd48304609f7064637e9f1fcad7b22a93a9fdb43f003b93c3c52f3e9a7fc4c468d70fed4ba687bcdcfa0c8749252a12d2eab1cf3ab956ea |
24 |
DIST urbanterror-4.3.2_p20171105.tar.gz 10067127 BLAKE2B e843623976ad1d2379121bb834eabac634d57185c0b15ee298cf900474a7879ba0d2f45e1e6eb002d963fa83d895f8962110dc7f5dc5a209cde1aee3a9a8234a SHA512 7a9ac15a0508706c17a390a5105badbaaba3b3c0e7e23b3ab9dd16751b1d946c108febba5c2f6af3046d5431fd1c5978a2abc267a740eca1d89d77d7172b41ad |
25 |
+DIST urbanterror-4.3.2_p20171208.tar.gz 10072373 BLAKE2B 9934317fb649e652628639f9ea35cdaa0466363b52ea7325198aaaa6360e07e41ec590342cd35fa1bb352ff35ba5994e9152caaf308aa0e0d8c3c2d94ea36a91 SHA512 1dd3affa8fe23f8cca4ee3c90a8d6fc86f5df2122e0121d57263be745d0af13f52cb47802636a22cb09b1bae8a100b491dc8cc0c81c413dd9cbb2ad29a69039a |
26 |
|
27 |
diff --git a/games-fps/urbanterror/urbanterror-4.3.2_p20171208.ebuild b/games-fps/urbanterror/urbanterror-4.3.2_p20171208.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..32cf683aeac |
30 |
--- /dev/null |
31 |
+++ b/games-fps/urbanterror/urbanterror-4.3.2_p20171208.ebuild |
32 |
@@ -0,0 +1,163 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="6" |
37 |
+inherit eapi7-ver flag-o-matic toolchain-funcs xdg-utils |
38 |
+ |
39 |
+DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine" |
40 |
+HOMEPAGE="http://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="e3bc50248c9d6c319d4822ca23caa5d46fc118ab" |
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 |
+ |
58 |
+PATCHES=( "${FILESDIR}"/${PN}-4.3-fix-build_system.patch ) |
59 |
+RDEPEND=" |
60 |
+ client? ( |
61 |
+ media-libs/libsdl2:=[X,sound,joystick,opengl,video] |
62 |
+ mumble? ( media-sound/mumble:= ) |
63 |
+ openal? ( media-libs/openal:= ) |
64 |
+ opus? ( media-libs/opusfile:= ) |
65 |
+ vorbis? ( |
66 |
+ media-libs/libogg:= |
67 |
+ media-libs/libvorbis:= |
68 |
+ ) |
69 |
+ ) |
70 |
+ curl? ( net-misc/curl ) |
71 |
+ ~games-fps/urbanterror-data-4.3.2 |
72 |
+ sys-libs/zlib:=[minizip] |
73 |
+ virtual/jpeg:0 |
74 |
+" |
75 |
+ |
76 |
+DEPEND="${RDEPEND}" |
77 |
+ |
78 |
+pkg_pretend() { |
79 |
+ if use client; then |
80 |
+ if ! use openal && ! use opus && ! use vorbis; then |
81 |
+ ewarn |
82 |
+ ewarn "No sound implementation selected. Enable 'openal', 'opus' or 'vorbis' USE flag to get sound!" |
83 |
+ fi |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ default |
89 |
+ |
90 |
+ tc-export CC |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ # Workaround for used zlib macro, which got renamed in Gentoo |
95 |
+ # wrt bug #449510 |
96 |
+ append-cppflags "-DOF=_Z_OF" |
97 |
+ |
98 |
+ local my_arch=$(usex amd64 "x86_64" "i386") |
99 |
+ |
100 |
+ emake \ |
101 |
+ ARCH=${my_arch} \ |
102 |
+ DEFAULT_BASEDIR="/usr/share/urbanterror" \ |
103 |
+ BUILD_CLIENT=$(usex "client" 1 0) \ |
104 |
+ BUILD_SERVER=$(usex "server" 1 0) \ |
105 |
+ BUILD_BASEGAME=1 \ |
106 |
+ BUILD_MISSIONPACK=0 \ |
107 |
+ BUILD_GAME_SO=0 \ |
108 |
+ BUILD_GAME_QVM=0 \ |
109 |
+ BUILD_STANDALONE=1 \ |
110 |
+ SERVERBIN="Quake3-UrT-Ded" \ |
111 |
+ CLIENTBIN="Quake3-UrT" \ |
112 |
+ USE_RENDERER_DLOPEN=0 \ |
113 |
+ USE_YACC=0 \ |
114 |
+ BASEGAME="q3ut4"\ |
115 |
+ BASEGAME_CFLAGS="${CFLAGS}" \ |
116 |
+ USE_OPENAL=$(usex "openal" 1 0) \ |
117 |
+ USE_OPENAL_DLOPEN=$(usex "openal" 1 0) \ |
118 |
+ USE_CURL=$(usex "curl" 1 0) \ |
119 |
+ USE_CURL_DLOPEN=$(usex "curl" 1 0) \ |
120 |
+ USE_CODEC_VORBIS=$(usex "vorbis" 1 0) \ |
121 |
+ USE_CODEC_OPUS=$(usex "opus" 1 0) \ |
122 |
+ USE_MUMBLE=$(usex "mumble" 1 0) \ |
123 |
+ USE_SKEETMOD=$(usex "skeetshootmod" 1 0) \ |
124 |
+ USE_VOIP=$(usex "mumble" 1 0) \ |
125 |
+ USE_INTERNAL_LIBS=0 \ |
126 |
+ USE_LOCAL_HEADERS=0 \ |
127 |
+ USE_ALTGAMMA=$(usex "altgamma" 1 0) |
128 |
+} |
129 |
+ |
130 |
+src_install() { |
131 |
+ local my_arch=$(usex amd64 "x86_64" "i386") |
132 |
+ # docs from ioq3, not from UrbanTerror ZIP file |
133 |
+ dodoc ChangeLog README.md README.ioq3.md md4-readme.txt |
134 |
+ |
135 |
+ if use client; then |
136 |
+ newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT.${my_arch} ${PN} |
137 |
+ # Shooter as defined in https://specifications.freedesktop.org/menu-spec/latest/apas02.html |
138 |
+ make_desktop_entry ${PN} "UrbanTerror" ${PN} |
139 |
+ fi |
140 |
+ |
141 |
+ if use server && ! use client; then |
142 |
+ # dedicated server only |
143 |
+ newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT-Ded.${my_arch} ${PN}-ded |
144 |
+ fi |
145 |
+} |
146 |
+ |
147 |
+pkg_postinst() { |
148 |
+ use client && xdg_desktop_database_update |
149 |
+ |
150 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
151 |
+ # This is a new installation |
152 |
+ if use openal; then |
153 |
+ elog "" |
154 |
+ elog "You might need to set:" |
155 |
+ elog " seta s_useopenal \"1\"" |
156 |
+ elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work." |
157 |
+ fi |
158 |
+ |
159 |
+ if use altgamma; then |
160 |
+ elog "" |
161 |
+ elog "You might need to set:" |
162 |
+ elog " seta r_altgamma \"1\"" |
163 |
+ elog "in your ~/.q3a/q3ut4/q3config.cfg for altgamma to work." |
164 |
+ fi |
165 |
+ |
166 |
+ if ! use altgamma; then |
167 |
+ elog "" |
168 |
+ elog "If you are using a modesetting graphics driver you might" |
169 |
+ elog "consider setting USE=\"altgamma\"." |
170 |
+ elog "For details take a look at:" |
171 |
+ elog "https://bugs.freedesktop.org/show_bug.cgi?id=27222" |
172 |
+ fi |
173 |
+ |
174 |
+ if ! use client; then |
175 |
+ elog "" |
176 |
+ elog "You disabled client support. You won't be able to connect" |
177 |
+ elog "to any servers and play. If you want to do so, enable" |
178 |
+ elog "USE=\"client\"." |
179 |
+ fi |
180 |
+ fi |
181 |
+ |
182 |
+ if ver_test -ge 4.3.2_p20171105; then |
183 |
+ # Yippee, new features! |
184 |
+ if use skeetshootmod; then |
185 |
+ elog "" |
186 |
+ elog "You might need to set:" |
187 |
+ elog " seta sv_skeetshoot \"1\"" |
188 |
+ elog "in your ~/.q3a/q3ut4/q3config.cfg to use the skeetshoot mod." |
189 |
+ fi |
190 |
+ fi |
191 |
+} |
192 |
+ |
193 |
+pkg_postrm() { |
194 |
+ use client && xdg_desktop_database_update |
195 |
+} |