Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/urbanterror/
Date: Mon, 02 Oct 2017 22:25:16
Message-Id: 1506983107.8f73dfd5fa475072fd6843d4f3d232d54aa7968f.monsieurp@gentoo
1 commit: 8f73dfd5fa475072fd6843d4f3d232d54aa7968f
2 Author: Nils Freydank <holgersson <AT> posteo <DOT> de>
3 AuthorDate: Thu Sep 21 18:38:00 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 2 22:25:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f73dfd5
7
8 games-fps/urbanterror: version bump to 4.3.2_p20170915.
9
10 Package-Manager: Portage-2.3.10, Repoman-2.3.3
11 Closes: https://github.com/gentoo/gentoo/pull/5759
12
13 games-fps/urbanterror/Manifest | 1 +
14 .../urbanterror/urbanterror-4.3.2_p20170915.ebuild | 152 +++++++++++++++++++++
15 2 files changed, 153 insertions(+)
16
17 diff --git a/games-fps/urbanterror/Manifest b/games-fps/urbanterror/Manifest
18 index 89c3757cd59..fee14dee34b 100644
19 --- a/games-fps/urbanterror/Manifest
20 +++ b/games-fps/urbanterror/Manifest
21 @@ -1,2 +1,3 @@
22 DIST urbanterror-4.3.2_p20170426.tar.gz 10058308 SHA256 8009516332e1f77eae3681b436e099fdd42ffa55d2691694eedc0ca94b194878 SHA512 e8107ab44fdb40bc14a548239185905a01120bbe960b8713e5959df18330fd845761350c5e8e5efd5fbfec10ad62ff9fef68420406cc4cfbe2af69ee66eff1f3 WHIRLPOOL 6aac15e44b0695501195ae172133f4b6788b9dffa5442af20d11626ad27ffd597c7f070c0fb95b0e0e8b8b3d6cf0e1bfc40b0a16abaa27c8f932ee90f19a1824
23 DIST urbanterror-4.3.2_p20170713.tar.gz 9984763 SHA256 cf1784a3bd00451fe1bda3267235ea3eee93da65880f15fd13c07681952b4859 SHA512 09fd2232c3cbdde001b8d037f2667a55a584378615f2da10c6815797748028f36b75c899ca4fd1d7d97a33f4b3ddbaa4d271b36b5eabf3bf9e81852ef15864a4 WHIRLPOOL 2bed79adc1dc338d74212263105c03bad51391f8c9e9e543ad54f6d6006cea4a8ebfc0e601400338b941d799dc0f642f71478dc68ad84a50718043f06f042290
24 +DIST urbanterror-4.3.2_p20170915.tar.gz 10061394 SHA256 fe37df609d763247a0bfaa7dedb33ca45a8aa523467b16f1a585ca8a08b03078 SHA512 d22bc3a0d8d191f797f5b1e7a0671424ca6dafbe5a3bd7fbfcd0e7249b9b4b6e790a64cdf7c93690d032b38f92aee703e9e302701084703d7a79d8f60cc2433e WHIRLPOOL 912201a55822dcf8423f77023f01882339739984dc9e9bdb5dca55763271c56158b47fd137da83d6e56c7625e49df8b5fc5299af646e91104e1f53cad9a50fcb
25
26 diff --git a/games-fps/urbanterror/urbanterror-4.3.2_p20170915.ebuild b/games-fps/urbanterror/urbanterror-4.3.2_p20170915.ebuild
27 new file mode 100644
28 index 00000000000..6265e8c10cd
29 --- /dev/null
30 +++ b/games-fps/urbanterror/urbanterror-4.3.2_p20170915.ebuild
31 @@ -0,0 +1,152 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +inherit flag-o-matic gnome2-utils
37 +
38 +DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine"
39 +HOMEPAGE="http://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="0b3e62a00bd05d337f2ab6dad2cdb311a5d76464"
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 +
51 +fi
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +IUSE="+altgamma +client +curl debug mumble openal +opus server voip vorbis"
56 +REQUIRED_USE=" || ( client server )"
57 +
58 +PATCHES=( "${FILESDIR}"/${PN}-4.3-respect_CFLAGS.patch )
59 +
60 +RDEPEND="
61 + client? (
62 + media-libs/libsdl2[X,sound,joystick,opengl,video]
63 + mumble? ( media-sound/mumble )
64 + openal? ( media-libs/openal )
65 + opus? ( media-libs/opusfile )
66 + vorbis? (
67 + media-libs/libogg
68 + media-libs/libvorbis
69 + )
70 + )
71 + curl? ( net-misc/curl )
72 + ~games-fps/urbanterror-data-4.3.2
73 + sys-libs/zlib[minizip]
74 + virtual/jpeg:0
75 +"
76 +
77 +DEPEND="${RDEPEND}"
78 +
79 +pkg_pretend() {
80 + if use client; then
81 + if ! use openal && ! use opus && ! use vorbis; then
82 + ewarn
83 + ewarn "No sound implementation selected. Enable 'openal', 'opus' or 'vorbis' USE flag to get sound!"
84 + fi
85 + fi
86 +}
87 +
88 +src_compile() {
89 + buildit() { use $1 && echo 1 || echo 0 ; }
90 + nobuildit() { use $1 && echo 0 || echo 1 ; }
91 +
92 + # Workaround for used zlib macro, wrt bug #44951
93 + append-flags "-DOF=_Z_OF"
94 +
95 + emake \
96 + ARCH=$(usex amd64 "x86_64" "i386") \
97 + DEFAULT_BASEDIR="/usr/share/urbanterror" \
98 + BUILD_CLIENT=$(buildit client) \
99 + BUILD_SERVER=$(buildit server) \
100 + BUILD_BASEGAME=1 \
101 + BUILD_MISSIONPACK=0 \
102 + BUILD_GAME_SO=0 \
103 + BUILD_GAME_QVM=0 \
104 + BUILD_STANDALONE=1 \
105 + SERVERBIN="Quake3-UrT-Ded" \
106 + CLIENTBIN="Quake3-UrT" \
107 + USE_RENDERER_DLOPEN=0 \
108 + USE_YACC=0 \
109 + BASEGAME="q3ut4"\
110 + BASEGAME_CFLAGS="${CFLAGS}" \
111 + USE_OPENAL=$(buildit openal) \
112 + USE_OPENAL_DLOPEN=$(buildit openal) \
113 + USE_CURL=$(buildit curl) \
114 + USE_CURL_DLOPEN=$(buildit curl) \
115 + USE_CODEC_VORBIS=$(buildit vorbis) \
116 + USE_CODEC_OPUS=$(buildit opus) \
117 + USE_MUMBLE=$(buildit mumble) \
118 + USE_VOIP=$(buildit voip) \
119 + USE_INTERNAL_LIBS=0 \
120 + USE_LOCAL_HEADERS=0 \
121 + USE_ALTGAMMA=$(buildit altgamma)
122 +}
123 +
124 +src_install() {
125 + local my_arch=$(usex amd64 "x86_64" "i386")
126 +
127 + # docs from ioq3, not from UrbanTerror ZIP file
128 + dodoc ChangeLog README.md README.ioq3.md md4-readme.txt
129 +
130 + if use client; then
131 + newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT.${my_arch} ${PN}
132 + # Shooter as defined in https://specifications.freedesktop.org/menu-spec/latest/apas02.html
133 + make_desktop_entry ${PN} "UrbanTerror" ${PN}
134 + fi
135 +
136 + if use server && ! use client; then
137 + # dedicated server only
138 + newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT-Ded.${my_arch} ${PN}-ded
139 + fi
140 +}
141 +
142 +pkg_preinst() {
143 + use client && gnome2_icon_savelist
144 +}
145 +
146 +pkg_postinst() {
147 + use client && gnome2_icon_cache_update
148 +
149 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
150 + # This is a new installation
151 + if use openal; then
152 + elog ""
153 + elog "You might need to set:"
154 + elog " seta s_useopenal \"1\""
155 + elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work."
156 + fi
157 +
158 + if use altgamma; then
159 + elog ""
160 + elog "You might need to set:"
161 + elog " seta r_altgamma \"1\""
162 + elog "in your ~/.q3a/q3ut4/q3config.cfg for altgamma to work."
163 + fi
164 +
165 + if ! use altgamma; then
166 + elog ""
167 + elog "If you are using a modesetting graphics driver you might"
168 + elog "consider setting USE=\"altgamma\"."
169 + elog "For details take a look at:"
170 + elog "https://bugs.freedesktop.org/show_bug.cgi?id=27222"
171 + fi
172 + if ! use client; then
173 + elog ""
174 + elog "You disabled client support. You won't be able to connect"
175 + elog "to any servers and play. If you want to do so, enable"
176 + elog "USE=\"client\"."
177 + fi
178 + fi
179 +}
180 +
181 +pkg_postrm() {
182 + use client && gnome2_icon_cache_update
183 +}