1 |
commit: 323ec64aab4a3850580e569403e75c5c932f3830 |
2 |
Author: Nils Freydank <holgersson <AT> posteo <DOT> de> |
3 |
AuthorDate: Sun Jul 16 21:00:40 2017 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 16 21:02:31 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=323ec64a |
7 |
|
8 |
games-fps/urbanterror: Bump to v4.3.2_p20170713 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/5111 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
13 |
|
14 |
games-fps/urbanterror/Manifest | 1 + |
15 |
.../urbanterror/urbanterror-4.3.2_p20170713.ebuild | 152 +++++++++++++++++++++ |
16 |
2 files changed, 153 insertions(+) |
17 |
|
18 |
diff --git a/games-fps/urbanterror/Manifest b/games-fps/urbanterror/Manifest |
19 |
index 6264ada02b5..89c3757cd59 100644 |
20 |
--- a/games-fps/urbanterror/Manifest |
21 |
+++ b/games-fps/urbanterror/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST urbanterror-4.3.2_p20170426.tar.gz 10058308 SHA256 8009516332e1f77eae3681b436e099fdd42ffa55d2691694eedc0ca94b194878 SHA512 e8107ab44fdb40bc14a548239185905a01120bbe960b8713e5959df18330fd845761350c5e8e5efd5fbfec10ad62ff9fef68420406cc4cfbe2af69ee66eff1f3 WHIRLPOOL 6aac15e44b0695501195ae172133f4b6788b9dffa5442af20d11626ad27ffd597c7f070c0fb95b0e0e8b8b3d6cf0e1bfc40b0a16abaa27c8f932ee90f19a1824 |
24 |
+DIST urbanterror-4.3.2_p20170713.tar.gz 9984763 SHA256 cf1784a3bd00451fe1bda3267235ea3eee93da65880f15fd13c07681952b4859 SHA512 09fd2232c3cbdde001b8d037f2667a55a584378615f2da10c6815797748028f36b75c899ca4fd1d7d97a33f4b3ddbaa4d271b36b5eabf3bf9e81852ef15864a4 WHIRLPOOL 2bed79adc1dc338d74212263105c03bad51391f8c9e9e543ad54f6d6006cea4a8ebfc0e601400338b941d799dc0f642f71478dc68ad84a50718043f06f042290 |
25 |
|
26 |
diff --git a/games-fps/urbanterror/urbanterror-4.3.2_p20170713.ebuild b/games-fps/urbanterror/urbanterror-4.3.2_p20170713.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..d608be174ef |
29 |
--- /dev/null |
30 |
+++ b/games-fps/urbanterror/urbanterror-4.3.2_p20170713.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" |
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="8eb3e10163c62331b77171a71ca6102d3d63c3e7" |
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 |
+} |