Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: dev-games/netradiant/files/, dev-games/netradiant/
Date: Thu, 21 May 2020 05:18:21
Message-Id: 1590038295.d6568bd4c2730d27f91ccacd716ab00cd82b8fe0.winterheart@gentoo
1 commit: d6568bd4c2730d27f91ccacd716ab00cd82b8fe0
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Thu May 21 05:09:33 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Thu May 21 05:18:15 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=d6568bd4
7
8 dev-games/netradiant: update
9
10 Updated and simplified version of ebuild, based on xonotic works.
11
12 Package-Manager: Portage-2.3.99, Repoman-2.3.22
13 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
14
15 ...adiant-1.5.0_p20200521_DBUILD_SHARED_LIBS.patch | 275 +++++++++++++++++++++
16 dev-games/netradiant/metadata.xml | 35 ++-
17 .../netradiant/netradiant-1.5.0_p20120515.ebuild | 187 --------------
18 .../netradiant/netradiant-1.5.0_p20200521.ebuild | 73 ++++++
19 4 files changed, 362 insertions(+), 208 deletions(-)
20
21 diff --git a/dev-games/netradiant/files/netradiant-1.5.0_p20200521_DBUILD_SHARED_LIBS.patch b/dev-games/netradiant/files/netradiant-1.5.0_p20200521_DBUILD_SHARED_LIBS.patch
22 new file mode 100644
23 index 0000000..d52024e
24 --- /dev/null
25 +++ b/dev-games/netradiant/files/netradiant-1.5.0_p20200521_DBUILD_SHARED_LIBS.patch
26 @@ -0,0 +1,275 @@
27 +From bec73d0fa728f7162e879d8ebcd5ffa697c3a4b8 Mon Sep 17 00:00:00 2001
28 +From: "Azamat H. Hackimov" <azamat.hackimov@×××××.com>
29 +Date: Thu, 21 May 2020 04:08:39 +0300
30 +Subject: [PATCH] Fixing compilation with -DBUILD_SHARED_LIBS=ON
31 +
32 +Libraries under libs should be forced STATIC since there circular
33 +dependencies and implicit linking with external libraries. Otherwise
34 +compilation will fails with underlinking errors.
35 +---
36 + libs/cmdlib/CMakeLists.txt | 2 +-
37 + libs/container/CMakeLists.txt | 2 +-
38 + libs/crnrgba/CMakeLists.txt | 2 +-
39 + libs/ddslib/CMakeLists.txt | 2 +-
40 + libs/debugging/CMakeLists.txt | 2 +-
41 + libs/etclib/CMakeLists.txt | 2 +-
42 + libs/filematch/CMakeLists.txt | 2 +-
43 + libs/generic/CMakeLists.txt | 2 +-
44 + libs/gtkutil/CMakeLists.txt | 2 +-
45 + libs/l_net/CMakeLists.txt | 2 +-
46 + libs/math/CMakeLists.txt | 2 +-
47 + libs/mathlib/CMakeLists.txt | 2 +-
48 + libs/memory/CMakeLists.txt | 2 +-
49 + libs/modulesystem/CMakeLists.txt | 2 +-
50 + libs/os/CMakeLists.txt | 2 +-
51 + libs/picomodel/CMakeLists.txt | 2 +-
52 + libs/profile/CMakeLists.txt | 2 +-
53 + libs/script/CMakeLists.txt | 2 +-
54 + libs/signal/CMakeLists.txt | 2 +-
55 + libs/splines/CMakeLists.txt | 2 +-
56 + libs/stream/CMakeLists.txt | 2 +-
57 + libs/string/CMakeLists.txt | 2 +-
58 + libs/uilib/CMakeLists.txt | 2 +-
59 + libs/xml/CMakeLists.txt | 2 +-
60 + 24 files changed, 24 insertions(+), 24 deletions(-)
61 +
62 +diff --git a/libs/cmdlib/CMakeLists.txt b/libs/cmdlib/CMakeLists.txt
63 +index 5d25ce82..b8c48b01 100644
64 +--- a/libs/cmdlib/CMakeLists.txt
65 ++++ b/libs/cmdlib/CMakeLists.txt
66 +@@ -1,3 +1,3 @@
67 +-add_library(cmdlib
68 ++add_library(cmdlib STATIC
69 + cmdlib.cpp ../cmdlib.h
70 + )
71 +diff --git a/libs/container/CMakeLists.txt b/libs/container/CMakeLists.txt
72 +index 00bfbb4a..028129ba 100644
73 +--- a/libs/container/CMakeLists.txt
74 ++++ b/libs/container/CMakeLists.txt
75 +@@ -1,4 +1,4 @@
76 +-add_library(container
77 ++add_library(container STATIC
78 + array.cpp array.h
79 + cache.h
80 + container.h
81 +diff --git a/libs/crnrgba/CMakeLists.txt b/libs/crnrgba/CMakeLists.txt
82 +index 6e8463dc..a5ec18e3 100644
83 +--- a/libs/crnrgba/CMakeLists.txt
84 ++++ b/libs/crnrgba/CMakeLists.txt
85 +@@ -1,4 +1,4 @@
86 +-add_library(crnrgba
87 ++add_library(crnrgba STATIC
88 + crn_rgba.h
89 + crn_rgba.cpp
90 + ../crunch/inc/crn_decomp.h
91 +diff --git a/libs/ddslib/CMakeLists.txt b/libs/ddslib/CMakeLists.txt
92 +index d4de1a7c..a45ccc7f 100644
93 +--- a/libs/ddslib/CMakeLists.txt
94 ++++ b/libs/ddslib/CMakeLists.txt
95 +@@ -1,3 +1,3 @@
96 +-add_library(ddslib
97 ++add_library(ddslib STATIC
98 + ddslib.c ../ddslib.h
99 + )
100 +diff --git a/libs/debugging/CMakeLists.txt b/libs/debugging/CMakeLists.txt
101 +index e5880de3..0b8f90d8 100644
102 +--- a/libs/debugging/CMakeLists.txt
103 ++++ b/libs/debugging/CMakeLists.txt
104 +@@ -1,3 +1,3 @@
105 +-add_library(debugging
106 ++add_library(debugging STATIC
107 + debugging.cpp debugging.h
108 + )
109 +diff --git a/libs/etclib/CMakeLists.txt b/libs/etclib/CMakeLists.txt
110 +index 8d8fb23a..68a12302 100644
111 +--- a/libs/etclib/CMakeLists.txt
112 ++++ b/libs/etclib/CMakeLists.txt
113 +@@ -1,3 +1,3 @@
114 +-add_library(etclib
115 ++add_library(etclib STATIC
116 + ../etclib.c ../etclib.h
117 + )
118 +diff --git a/libs/filematch/CMakeLists.txt b/libs/filematch/CMakeLists.txt
119 +index c7d8a9ed..fede3eb5 100644
120 +--- a/libs/filematch/CMakeLists.txt
121 ++++ b/libs/filematch/CMakeLists.txt
122 +@@ -1,3 +1,3 @@
123 +-add_library(filematch
124 ++add_library(filematch STATIC
125 + ../filematch.c ../filematch.h
126 + )
127 +diff --git a/libs/generic/CMakeLists.txt b/libs/generic/CMakeLists.txt
128 +index d89f5743..e05637ef 100644
129 +--- a/libs/generic/CMakeLists.txt
130 ++++ b/libs/generic/CMakeLists.txt
131 +@@ -1,4 +1,4 @@
132 +-add_library(generic
133 ++add_library(generic STATIC
134 + arrayrange.h
135 + bitfield.h
136 + callback.cpp callback.h
137 +diff --git a/libs/gtkutil/CMakeLists.txt b/libs/gtkutil/CMakeLists.txt
138 +index b62098c1..80eca88c 100644
139 +--- a/libs/gtkutil/CMakeLists.txt
140 ++++ b/libs/gtkutil/CMakeLists.txt
141 +@@ -1,4 +1,4 @@
142 +-add_library(gtkutil
143 ++add_library(gtkutil STATIC
144 + accelerator.cpp accelerator.h
145 + button.cpp button.h
146 + clipboard.cpp clipboard.h
147 +diff --git a/libs/l_net/CMakeLists.txt b/libs/l_net/CMakeLists.txt
148 +index a0a19a84..c4984b83 100644
149 +--- a/libs/l_net/CMakeLists.txt
150 ++++ b/libs/l_net/CMakeLists.txt
151 +@@ -7,7 +7,7 @@ else ()
152 + list(APPEND L_NETLIST l_net_berkley.c)
153 + endif ()
154 +
155 +-add_library(l_net ${L_NETLIST})
156 ++add_library(l_net STATIC ${L_NETLIST})
157 +
158 + if (WIN32)
159 + target_link_libraries(l_net PRIVATE ws2_32)
160 +diff --git a/libs/math/CMakeLists.txt b/libs/math/CMakeLists.txt
161 +index 6cfedbef..4dc8a8ce 100644
162 +--- a/libs/math/CMakeLists.txt
163 ++++ b/libs/math/CMakeLists.txt
164 +@@ -1,4 +1,4 @@
165 +-add_library(math
166 ++add_library(math STATIC
167 + _.cpp
168 + aabb.h
169 + curve.h
170 +diff --git a/libs/mathlib/CMakeLists.txt b/libs/mathlib/CMakeLists.txt
171 +index 5682a5e1..27b087a8 100644
172 +--- a/libs/mathlib/CMakeLists.txt
173 ++++ b/libs/mathlib/CMakeLists.txt
174 +@@ -1,4 +1,4 @@
175 +-add_library(mathlib
176 ++add_library(mathlib STATIC
177 + bbox.c
178 + line.c
179 + m4x4.c
180 +diff --git a/libs/memory/CMakeLists.txt b/libs/memory/CMakeLists.txt
181 +index 1c345734..bebfc22d 100644
182 +--- a/libs/memory/CMakeLists.txt
183 ++++ b/libs/memory/CMakeLists.txt
184 +@@ -1,3 +1,3 @@
185 +-add_library(memory
186 ++add_library(memory STATIC
187 + allocator.cpp allocator.h
188 + )
189 +diff --git a/libs/modulesystem/CMakeLists.txt b/libs/modulesystem/CMakeLists.txt
190 +index d27aa633..489ee4a5 100644
191 +--- a/libs/modulesystem/CMakeLists.txt
192 ++++ b/libs/modulesystem/CMakeLists.txt
193 +@@ -1,4 +1,4 @@
194 +-add_library(modulesystem
195 ++add_library(modulesystem STATIC
196 + moduleregistry.h
197 + modulesmap.h
198 + singletonmodule.cpp singletonmodule.h
199 +diff --git a/libs/os/CMakeLists.txt b/libs/os/CMakeLists.txt
200 +index 437b506c..a1e47599 100644
201 +--- a/libs/os/CMakeLists.txt
202 ++++ b/libs/os/CMakeLists.txt
203 +@@ -1,4 +1,4 @@
204 +-add_library(os
205 ++add_library(os STATIC
206 + _.cpp
207 + dir.h
208 + file.h
209 +diff --git a/libs/picomodel/CMakeLists.txt b/libs/picomodel/CMakeLists.txt
210 +index 0f1286d0..4800fb46 100644
211 +--- a/libs/picomodel/CMakeLists.txt
212 ++++ b/libs/picomodel/CMakeLists.txt
213 +@@ -1,4 +1,4 @@
214 +-add_library(picomodel
215 ++add_library(picomodel STATIC
216 + lwo/clip.c
217 + lwo/envelope.c
218 + lwo/list.c
219 +diff --git a/libs/profile/CMakeLists.txt b/libs/profile/CMakeLists.txt
220 +index e3822f42..745238f3 100644
221 +--- a/libs/profile/CMakeLists.txt
222 ++++ b/libs/profile/CMakeLists.txt
223 +@@ -1,4 +1,4 @@
224 +-add_library(profile
225 ++add_library(profile STATIC
226 + file.cpp file.h
227 + profile.cpp profile.h
228 + )
229 +diff --git a/libs/script/CMakeLists.txt b/libs/script/CMakeLists.txt
230 +index 6e49527d..0adfd124 100644
231 +--- a/libs/script/CMakeLists.txt
232 ++++ b/libs/script/CMakeLists.txt
233 +@@ -1,4 +1,4 @@
234 +-add_library(script
235 ++add_library(script STATIC
236 + _.cpp
237 + scripttokeniser.h
238 + scripttokenwriter.h
239 +diff --git a/libs/signal/CMakeLists.txt b/libs/signal/CMakeLists.txt
240 +index 499a4838..026c7249 100644
241 +--- a/libs/signal/CMakeLists.txt
242 ++++ b/libs/signal/CMakeLists.txt
243 +@@ -1,4 +1,4 @@
244 +-add_library(signal
245 ++add_library(signal STATIC
246 + isignal.h
247 + signal.cpp signal.h
248 + signalfwd.h
249 +diff --git a/libs/splines/CMakeLists.txt b/libs/splines/CMakeLists.txt
250 +index 3a6b603d..d301f272 100644
251 +--- a/libs/splines/CMakeLists.txt
252 ++++ b/libs/splines/CMakeLists.txt
253 +@@ -1,4 +1,4 @@
254 +-add_library(splines
255 ++add_library(splines STATIC
256 + math_angles.cpp math_angles.h
257 + math_matrix.cpp math_matrix.h
258 + math_quaternion.cpp math_quaternion.h
259 +diff --git a/libs/stream/CMakeLists.txt b/libs/stream/CMakeLists.txt
260 +index 6ce79395..ec1c9ae9 100644
261 +--- a/libs/stream/CMakeLists.txt
262 ++++ b/libs/stream/CMakeLists.txt
263 +@@ -1,4 +1,4 @@
264 +-add_library(stream
265 ++add_library(stream STATIC
266 + _.cpp
267 + filestream.h
268 + memstream.h
269 +diff --git a/libs/string/CMakeLists.txt b/libs/string/CMakeLists.txt
270 +index 4b0720a5..a9c2f471 100644
271 +--- a/libs/string/CMakeLists.txt
272 ++++ b/libs/string/CMakeLists.txt
273 +@@ -1,4 +1,4 @@
274 +-add_library(string
275 ++add_library(string STATIC
276 + pooledstring.cpp pooledstring.h
277 + string.h
278 + stringfwd.h
279 +diff --git a/libs/uilib/CMakeLists.txt b/libs/uilib/CMakeLists.txt
280 +index 080376b1..cfa95758 100644
281 +--- a/libs/uilib/CMakeLists.txt
282 ++++ b/libs/uilib/CMakeLists.txt
283 +@@ -1,4 +1,4 @@
284 +-add_library(uilib
285 ++add_library(uilib STATIC
286 + uilib.cpp
287 + )
288 +
289 +diff --git a/libs/xml/CMakeLists.txt b/libs/xml/CMakeLists.txt
290 +index 96e1e216..cd0b040a 100644
291 +--- a/libs/xml/CMakeLists.txt
292 ++++ b/libs/xml/CMakeLists.txt
293 +@@ -1,4 +1,4 @@
294 +-add_library(xmllib
295 ++add_library(xmllib STATIC
296 + ixml.h
297 + xmlelement.h
298 + xmlparser.h
299 +--
300 +2.26.2
301 +
302
303 diff --git a/dev-games/netradiant/metadata.xml b/dev-games/netradiant/metadata.xml
304 index 2354e25..fcf1f88 100644
305 --- a/dev-games/netradiant/metadata.xml
306 +++ b/dev-games/netradiant/metadata.xml
307 @@ -1,25 +1,18 @@
308 <?xml version="1.0" encoding="UTF-8"?>
309 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
310 <pkgmetadata>
311 - <maintainer type="person">
312 - <email>nikoli@×××××××.com</email>
313 - <name>Nikoli</name>
314 - </maintainer>
315 - <use>
316 - <flag name='h2data'>Install h2data tool</flag>
317 - <flag name='q2map'>Install q2map tool</flag>
318 - <flag name='q3data'>Install q3data tool</flag>
319 - <flag name='q3map2'>Install q3map2 tool</flag>
320 - <flag name='qdata3'>Install qdata3 tool</flag>
321 - <flag name='darkplaces'>Install DarkPlaces pack</flag>
322 - <flag name='nexuiz'>Install Nexuiz pack</flag>
323 - <flag name='openarena'>Install OpenArena non GPL pack</flag>
324 - <flag name='osirion'>Install Osirion pack</flag>
325 - <flag name='quake1'>Install Quake non GPL pack</flag>
326 - <flag name='quake2'>Install Quake2 non GPL pack</flag>
327 - <flag name='quake2world'>Install Quake2World pack</flag>
328 - <flag name='tremulous'>Install Tremulous non GPL pack</flag>
329 - <flag name='warsow'>Install Warsow pack</flag>
330 - <flag name='xonotic'>Install Xonotic pack</flag>
331 - </use>
332 + <maintainer type="person">
333 + <email>nikoli@×××××××.com</email>
334 + <name>Nikoli</name>
335 + </maintainer>
336 + <maintainer type="person">
337 + <email>azamat.hackimov@×××××.com</email>
338 + <name>Azamat H. Hackimov</name>
339 + </maintainer>
340 + <use>
341 + <flag name="tools">Install additional tools</flag>
342 + </use>
343 + <upstream>
344 + <remote-id type="gitlab">xonotic/netradiant</remote-id>
345 + </upstream>
346 </pkgmetadata>
347
348 diff --git a/dev-games/netradiant/netradiant-1.5.0_p20120515.ebuild b/dev-games/netradiant/netradiant-1.5.0_p20120515.ebuild
349 deleted file mode 100644
350 index 94d841c..0000000
351 --- a/dev-games/netradiant/netradiant-1.5.0_p20120515.ebuild
352 +++ /dev/null
353 @@ -1,187 +0,0 @@
354 -# Copyright 1999-2018 Gentoo Authors
355 -# Distributed under the terms of the GNU General Public License v2
356 -
357 -EAPI=4
358 -
359 -inherit eutils multilib toolchain-funcs
360 -
361 -RADIANT_MAJOR_VERSION="5"
362 -RADIANT_MINOR_VERSION="0"
363 -DESCRIPTION="NetRadiant is a fork of map editor for Q3 based games, GtkRadiant 1.5"
364 -HOMEPAGE="http://dev.alientrap.org/projects/netradiant"
365 -BASE_ZIP_URI="http://ingar.satgnu.net/files/gtkradiant/gamepacks/"
366 -SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.xz
367 - osirion? ( ${BASE_ZIP_URI}/OsirionPack.zip )
368 - quake1? ( ${BASE_ZIP_URI}/Quake1Pack.zip )
369 - warsow? ( ${BASE_ZIP_URI}/WarsowPack.zip )
370 - !bindist? (
371 - openarena? ( ${BASE_ZIP_URI}/OpenArenaPack.zip )
372 - quake2? ( ${BASE_ZIP_URI}/Quake2Pack.zip )
373 - tremulous? ( ${BASE_ZIP_URI}/TremulousPack.zip )
374 - )
375 -"
376 -
377 -LICENSE="GPL-2"
378 -SLOT="0"
379 -KEYWORDS="~amd64 ~x86"
380 -RADIANT_GPL_PACKS="darkplaces nexuiz osirion quake2world warsow +xonotic"
381 -RADIANT_NONGPL_PACKS="openarena quake1 quake2 tremulous"
382 -RADIANT_TOOLS="h2data q2map q3data q3map2 qdata3"
383 -RADIANT_PACKS="${RADIANT_GPL_PACKS} ${RADIANT_NONGPL_PACKS}"
384 -RADIANT_BINS=" ${RADIANT_TOOLS} gtk"
385 -IUSE="${RADIANT_PACKS} ${RADIANT_BINS// / +} bindist"
386 -
387 -RDEPEND="
388 - dev-libs/glib:2
389 - dev-libs/libxml2
390 - >=media-libs/libpng-1.2
391 - >=sys-libs/zlib-1.2
392 - gtk? (
393 - >=x11-libs/gtk+-2.4:2
394 - >=x11-libs/gtkglext-1
395 - x11-libs/pango
396 - )
397 - !dev-games/gtkradiant
398 -"
399 -DEPEND="${RDEPEND}
400 - app-arch/xz-utils
401 - dev-vcs/subversion
402 - virtual/pkgconfig
403 - osirion? ( app-arch/unzip )
404 - quake1? ( app-arch/unzip )
405 - warsow? ( app-arch/unzip )
406 - !bindist? (
407 - openarena? ( app-arch/unzip )
408 - quake2? ( app-arch/unzip )
409 - tremulous? ( app-arch/unzip )
410 - )
411 -"
412 -
413 -radiant_zip_unpack() {
414 - if use ${1,,}; then
415 - cd "${WORKDIR}/packs/" || die
416 - unpack "${1}Pack.zip"
417 - mv ${1}Pack ${1,,} || die
418 - fi
419 -}
420 -
421 -pkg_setup() {
422 - targets=""
423 - for i in ${RADIANT_BINS};do
424 - if use $i; then
425 - targets+=" ${i/gtk/radiant}"
426 - fi
427 - done
428 - if [ "x$targets" = "x" ]; then
429 - targets=" q3map2"
430 - ewarn "You disabled all binaries: defaulting to USE=\"q3map2\""
431 - fi
432 -}
433 -
434 -src_unpack() {
435 - unpack ${P}.tar.xz
436 -
437 - if use gtk; then
438 - radiant_zip_unpack Osirion
439 - radiant_zip_unpack Quake1
440 - radiant_zip_unpack Warsow
441 -
442 - if use !bindist; then
443 - MY_RADIANT_PACKS="${RADIANT_GPL_PACKS//+/} ${RADIANT_NONGPL_PACKS}"
444 - radiant_zip_unpack OpenArena
445 - radiant_zip_unpack Quake2
446 - radiant_zip_unpack Tremulous
447 - else
448 - MY_RADIANT_PACKS="${RADIANT_GPL_PACKS//+/}"
449 - for i in ${RADIANT_NONGPL_PACKS}; do
450 - if use ${i}; then
451 - ewarn "USE bindist disables ${i} non GPL pack"
452 - fi
453 - done
454 - fi
455 - fi
456 -}
457 -
458 -src_prepare() {
459 - sed -e '/$(INSTALLDIR)/s,heretic2/h2data,/h2data,' \
460 - -i Makefile || die
461 -}
462 -
463 -src_configure() {
464 - tc-export CC CXX AR RANLIB
465 -
466 - export TEE_STDERR=""
467 -
468 - # dependencies-check wants gtk
469 - if use gtk; then
470 - emake dependencies-check
471 - fi
472 -}
473 -
474 -src_compile() {
475 - emake ${targets// / binaries-}
476 -}
477 -
478 -src_install() {
479 - insinto /usr/$(get_libdir)/${PN}
480 - doins \
481 - setup/data/tools/q3data.qdt
482 -
483 - dodoc ChangeLog ChangeLog.idsoftware CONTRIBUTORS tools/quake3/q3map2/changelog.q3map{1,2.txt}
484 -
485 - pushd install || die
486 - exeinto /usr/$(get_libdir)/${PN}
487 - for i in ${targets}; do
488 - doexe ${i}.x86
489 - dosym /usr/$(get_libdir)/${PN}/${i}.x86 /usr/bin/${i}
490 - done
491 -
492 - # radiant
493 - if use gtk; then
494 - dosym /usr/$(get_libdir)/${PN}/radiant.x86 /usr/bin/${PN}
495 -
496 - newicon "${S}"/icons/radiant-src.png ${PN}.png
497 - make_desktop_entry ${PN} NetRadiant ${PN} "Development;GTK;"
498 -
499 - # modules
500 - insinto /usr/$(get_libdir)/${PN}/modules
501 - doins modules/*.so
502 -
503 - # plugins
504 - insinto /usr/$(get_libdir)/${PN}/plugins
505 - doins plugins/*.so
506 -
507 - # data
508 - popd || die
509 - echo "$RADIANT_MINOR_VERSION" > RADIANT_MINOR || die
510 - echo "$RADIANT_MAJOR_VERSION" > RADIANT_MAJOR || die
511 - insinto /usr/$(get_libdir)/${PN}
512 - doins -r \
513 - RADIANT_MAJOR \
514 - RADIANT_MINOR \
515 - setup/data/tools/bitmaps \
516 - setup/data/tools/gl \
517 - setup/data/tools/global.xlink \
518 - setup/data/tools/plugins \
519 - docs
520 -
521 - # packs
522 - for x in ${MY_RADIANT_PACKS//+/}; do
523 - if use $x; then
524 - cd "${WORKDIR}"/packs/${x} || die
525 - # USE and dir names differ
526 - n="$(echo $x | sed \
527 - -e 's/^quake/q/' \
528 - -e 's/2world$/2w/' \
529 - -e 's/^openarena/oa/' \
530 - -e 's/^tremulous/trem/' \
531 - )"
532 - insinto /usr/$(get_libdir)/${PN}
533 - doins -r ${n}.game
534 -
535 - insinto /usr/$(get_libdir)/${PN}/games
536 - doins games/${n}.game
537 - fi
538 - done
539 - fi
540 -}
541
542 diff --git a/dev-games/netradiant/netradiant-1.5.0_p20200521.ebuild b/dev-games/netradiant/netradiant-1.5.0_p20200521.ebuild
543 new file mode 100644
544 index 0000000..fd3045c
545 --- /dev/null
546 +++ b/dev-games/netradiant/netradiant-1.5.0_p20200521.ebuild
547 @@ -0,0 +1,73 @@
548 +# Copyright 1999-2020 Gentoo Authors
549 +# Distributed under the terms of the GNU General Public License v2
550 +
551 +EAPI=7
552 +
553 +inherit cmake
554 +
555 +GIT_TAG="458a91b4539ea68ae6a02f5ad93c6fbc93a725a0"
556 +
557 +DESCRIPTION="NetRadiant is a fork of map editor for Q3 based games, GtkRadiant 1.5"
558 +HOMEPAGE="https://netradiant.gitlab.io/"
559 +BASE_ZIP_URI="http://ingar.intranifty.net/files/netradiant/gamepacks/"
560 +SRC_URI="https://gitlab.com/xonotic/netradiant/-/archive/${GIT_TAG}/netradiant-${GIT_TAG}.tar.bz2 -> ${P}.tar.bz2"
561 +
562 +LICENSE="GPL-2"
563 +SLOT="0"
564 +KEYWORDS="~amd64 ~x86"
565 +
566 +IUSE="+gui tools"
567 +REQUIRED_USE="|| ( gui tools )"
568 +
569 +RDEPEND="
570 + gui? (
571 + dev-games/netradiant-gamepacks
572 + x11-libs/gtk+:2
573 + x11-libs/gtkglext
574 + x11-libs/pango
575 + )
576 + dev-libs/glib
577 + dev-libs/libxml2
578 + media-libs/libpng:=
579 + media-libs/libwebp:=
580 + sys-libs/zlib:=[minizip]
581 + virtual/jpeg
582 + virtual/opengl
583 +"
584 +
585 +DEPEND="${RDEPEND}
586 + virtual/pkgconfig
587 + "
588 +
589 +S="${WORKDIR}/${PN}-${GIT_TAG}"
590 +
591 +PATCHES=(
592 + "${FILESDIR}/${P}_DBUILD_SHARED_LIBS.patch"
593 +)
594 +
595 +src_configure() {
596 + local mycmakeargs=(
597 + -DBUILD_RADIANT=$(usex gui)
598 + -DBUILD_TOOLS=$(usex tools)
599 + -DBUILD_DAEMONMAP=OFF
600 + -DBUILD_CRUNCH=OFF
601 + -DBUNDLE_LIBRARIES=OFF
602 + -DDOWNLOAD_GAMEPACKS=OFF
603 + -DFHS_INSTALL=ON
604 + )
605 + cmake_src_configure
606 +}
607 +
608 +src_install() {
609 + cmake_src_install
610 +}
611 +
612 +pkg_postinst() {
613 + xdg_desktop_database_update
614 + xdg_mimeinfo_database_update
615 +}
616 +
617 +pkg_postrm() {
618 + xdg_desktop_database_update
619 + xdg_mimeinfo_database_update
620 +}