summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2020-05-21 08:09:33 +0300
committerAzamat H. Hackimov <azamat.hackimov@gmail.com>2020-05-21 08:18:15 +0300
commitd6568bd4c2730d27f91ccacd716ab00cd82b8fe0 (patch)
tree3c2655c8018be4fc863275caf100a648942abf34
parentdev-games/netradiant-gamepacks: new package (diff)
downloadgamerlay-d6568bd4c2730d27f91ccacd716ab00cd82b8fe0.tar.gz
gamerlay-d6568bd4c2730d27f91ccacd716ab00cd82b8fe0.tar.bz2
gamerlay-d6568bd4c2730d27f91ccacd716ab00cd82b8fe0.zip
dev-games/netradiant: update
Updated and simplified version of ebuild, based on xonotic works. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
-rw-r--r--dev-games/netradiant/Manifest28
-rw-r--r--dev-games/netradiant/files/netradiant-1.5.0_p20200521_DBUILD_SHARED_LIBS.patch275
-rw-r--r--dev-games/netradiant/metadata.xml35
-rw-r--r--dev-games/netradiant/netradiant-1.5.0_p20120515.ebuild187
-rw-r--r--dev-games/netradiant/netradiant-1.5.0_p20200521.ebuild73
5 files changed, 363 insertions, 235 deletions
diff --git a/dev-games/netradiant/Manifest b/dev-games/netradiant/Manifest
index 1c786f8..4cc0b07 100644
--- a/dev-games/netradiant/Manifest
+++ b/dev-games/netradiant/Manifest
@@ -1,27 +1 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
-DIST OpenArenaPack.zip 46745 SHA256 fd05fe0534a724db58dd326c401696c76c8f17caeafc5b8c1cb10238bce9b8bc SHA512 d8aafcf9ec387aaf77d5a9117e6cf24d4718ac81fabef8d5ef748a6e53f8b5a7042caded4848d5ed045ff14d9e74a3d270c1eeed917342e3a64e875548177a4f WHIRLPOOL a8c49b3b203552e0f4423f13f559eab0c92668729e66abd82c0eb81ee953759d11946b002c6bc9e56c3fb8c4274583949cfc7e86a7b87f14b184088fa0635e2a
-DIST OsirionPack.zip 3710 SHA256 1a999f97c82c471e9ab50e8c766b8599e64b111e3e4089d05872d5b510fa6800 SHA512 744226c921397f378b4af26f0139ab1fce6bdc42cdf5454a94bd63367bbce48c8c53d17e78bafe8b43356f1c9516430982453a1282a3008f2e5cfbab26cc9a2d WHIRLPOOL d8d8c511bfa9cbf99bc2df8ede2e0cf10f39843162977778a486bd61739237624b2959a9df711377342c21fc2dfe64e7a0a2afb792cf16dc235d995781edbf9c
-DIST Quake1Pack.zip 16463 SHA256 d6ddfe7670362751a4c284156342d0acb92a83b09d81df6acfb7936fba53c60a SHA512 e9fc711dce6f0aa31c2f5a538d03237d5854c7daba435b153f6f5c8c7bc91f4ca2c79e0dcd90e2747a5ba290580e37eabd1760c4b4fb03def8f242fe7c6d84bf WHIRLPOOL 824bcf81684e3966a23bf31db045c632c416a02289fdda5313722616ad5de39f7a0c20659c1513ca531e2218177d710d6e2ffe3fcf622104eccd7b707815721c
-DIST Quake2Pack.zip 10878 SHA256 a5abf101b6b0ca7e13c883c7746ed1219dbfbb535c51cf3c9f2ff123e743a4b9 SHA512 0dbf6c0045a62e981e1ccdb1b7994859886f637691ea1623b3800cab577b0bd25f2c6b0205077dfd1da7c36035ebd913eafb660301052b63bb6e8756ff0e1a9d WHIRLPOOL 9673a2ae29b22708838c792a49cb80175dab8b5d948ad489ca4d997b4cc0239af011ff68b6d0b92c38f5fc9c53b2b60d447b8f0a377027130b716068cd7578cf
-DIST TremulousPack.zip 17153 SHA256 0af4312d2f9a33e206d1660394c3a4c4a47a26498bb0d6b1c78892628721e4ab SHA512 0d20376b23a5d5fef7df35c156bfdf67f741146d50c16118ec4acdda24174a286b8bdff3c9c27bd0412837b5c6841193fde753ed9c543708485ad294554ffeb7 WHIRLPOOL f656fcc3a337a322cf1c59a3e5b3a6d59d4ca1448784e5a3f598ab31c70975563edc5fe4f4520be37b3f2f482dade8f7623157ad3e2f30e83faf646154653b7b
-DIST WarsowPack.zip 17855 SHA256 4e2fa7606e0f4a23e2b78fff1affb7444e9e107196c563cac04a0591f5f8c8f0 SHA512 4dae952fe712a57d83e291ff9e15f0171f87f65d0bfed7357e168165afa196a4ff0848942c0229f6ce505826b0ce6b8309e68966030f08a67502f942fdd7cf76 WHIRLPOOL 4eb7db9dd2f882124083966c2fbff38dfd724287f7a6e5c952d8d68bfa8db63747a23611b0970e2daeb8ef1c120c171067fa060d0bc55d9a538c4aa81becc668
-DIST netradiant-1.5.0_p20120515.tar.xz 2079592 SHA256 fc5e4ef7be013ce0acc31958a7a4a4dce61fcf0258232d7d5a912c238cc0d470 SHA512 a3c9f2264691feaf9915d825b9e1437c4a0e87638e4579b707f2ba9458521e15e1a4c1e7b5b2b84afd2d486f6cf997952d68b179f4ba3c0b9c5c10b0ef537468 WHIRLPOOL 86c81057f6b48db5f4cf04a41fde1919b973929c99d332b6b10285db8988774c584bfee7c3da861645dd756dab846de0f0a611ebe54f9ad317ae6b13ae4dc34f
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iQIcBAEBCAAGBQJQlghZAAoJECZQPTSbOzNL0B0QALsY/Khek5CkWFZOI84OYufd
-aKMaQvIvAjXeL2KgkLwxuRM2htjoZ/l+xgS47YubTgLrF/7sg8u5yZJo63BMJy0V
-rY32OpaB4NpvFkSEemD8WrB7DUlgEkl/2edlyME+xBs6PCenKPCSsyer80jzWx4k
-9ICpzTz7TO4ICuREpnbJGvy1woi6O5xo3YFaTjnyLuIgeV9Qxn14zWlzFPYpzk8B
-gL5HuFiefdcPEqOOz90IlVVOxdsT5QiFPShxiymmrNHoYxmey/1qHKs1YbAbBkJt
-Eq0NZMfPYPSAKk3Y7T3OrsRtsQ8oQnjdmcTvFRzUlqXh27BHgcXyPnDpXtJ5syqR
-j9lTMgbr4scvF21IDepNhn/tmQt/SzRjDfDP1wVCXDI3EILvxWtzoJZZ+SEJenk9
-EEz8ZeamYm6WdnRK20rHi5R2d2A04q+frDDznFEiM/QDmezBWhzfSH2JhKnoJ4vx
-hzHM4Y2u+yCtVmd0PzjbO2PmqISAbXdoKkxqk6DbjNBAFwzPPQPFbq7Sb7PSWNah
-GRIZQDIpCbJ5SXI47dNGRJBwslyO2JS4APJXSYFUbrvEX0t4OIOdk9QZQyfu24XA
-ZwPMLkL93BU8byourjBSaBeCJn0f9Cir55zsPk78VzY22nnftlgdwAMOurO+KIP6
-SkZMlfMt5QjBgB4vH3mw
-=RXol
------END PGP SIGNATURE-----
+DIST netradiant-1.5.0_p20200521.tar.bz2 2508793 SHA256 2719ef6a64f3a5f4d2ee47bba96a84287d950aeabf7d1d285701090b4db98ef7 SHA512 b1bedfa67cc94072f4b264fbbbf6581f878d80a3d3143545e5d4ee2080088472ed57d2439a06c8396811e062281d38e3fec0230d1aa31ea251835e4b81d49396 WHIRLPOOL 74d13499270287d5448999a03dd68136761bafd0da841c86cfadadf201f1f5c0cdfcbeb4eaab60ecc12e0ec2830b579091a847d2830964924c3c9453df7ef1df
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
new file mode 100644
index 0000000..d52024e
--- /dev/null
+++ b/dev-games/netradiant/files/netradiant-1.5.0_p20200521_DBUILD_SHARED_LIBS.patch
@@ -0,0 +1,275 @@
+From bec73d0fa728f7162e879d8ebcd5ffa697c3a4b8 Mon Sep 17 00:00:00 2001
+From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
+Date: Thu, 21 May 2020 04:08:39 +0300
+Subject: [PATCH] Fixing compilation with -DBUILD_SHARED_LIBS=ON
+
+Libraries under libs should be forced STATIC since there circular
+dependencies and implicit linking with external libraries. Otherwise
+compilation will fails with underlinking errors.
+---
+ libs/cmdlib/CMakeLists.txt | 2 +-
+ libs/container/CMakeLists.txt | 2 +-
+ libs/crnrgba/CMakeLists.txt | 2 +-
+ libs/ddslib/CMakeLists.txt | 2 +-
+ libs/debugging/CMakeLists.txt | 2 +-
+ libs/etclib/CMakeLists.txt | 2 +-
+ libs/filematch/CMakeLists.txt | 2 +-
+ libs/generic/CMakeLists.txt | 2 +-
+ libs/gtkutil/CMakeLists.txt | 2 +-
+ libs/l_net/CMakeLists.txt | 2 +-
+ libs/math/CMakeLists.txt | 2 +-
+ libs/mathlib/CMakeLists.txt | 2 +-
+ libs/memory/CMakeLists.txt | 2 +-
+ libs/modulesystem/CMakeLists.txt | 2 +-
+ libs/os/CMakeLists.txt | 2 +-
+ libs/picomodel/CMakeLists.txt | 2 +-
+ libs/profile/CMakeLists.txt | 2 +-
+ libs/script/CMakeLists.txt | 2 +-
+ libs/signal/CMakeLists.txt | 2 +-
+ libs/splines/CMakeLists.txt | 2 +-
+ libs/stream/CMakeLists.txt | 2 +-
+ libs/string/CMakeLists.txt | 2 +-
+ libs/uilib/CMakeLists.txt | 2 +-
+ libs/xml/CMakeLists.txt | 2 +-
+ 24 files changed, 24 insertions(+), 24 deletions(-)
+
+diff --git a/libs/cmdlib/CMakeLists.txt b/libs/cmdlib/CMakeLists.txt
+index 5d25ce82..b8c48b01 100644
+--- a/libs/cmdlib/CMakeLists.txt
++++ b/libs/cmdlib/CMakeLists.txt
+@@ -1,3 +1,3 @@
+-add_library(cmdlib
++add_library(cmdlib STATIC
+ cmdlib.cpp ../cmdlib.h
+ )
+diff --git a/libs/container/CMakeLists.txt b/libs/container/CMakeLists.txt
+index 00bfbb4a..028129ba 100644
+--- a/libs/container/CMakeLists.txt
++++ b/libs/container/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(container
++add_library(container STATIC
+ array.cpp array.h
+ cache.h
+ container.h
+diff --git a/libs/crnrgba/CMakeLists.txt b/libs/crnrgba/CMakeLists.txt
+index 6e8463dc..a5ec18e3 100644
+--- a/libs/crnrgba/CMakeLists.txt
++++ b/libs/crnrgba/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(crnrgba
++add_library(crnrgba STATIC
+ crn_rgba.h
+ crn_rgba.cpp
+ ../crunch/inc/crn_decomp.h
+diff --git a/libs/ddslib/CMakeLists.txt b/libs/ddslib/CMakeLists.txt
+index d4de1a7c..a45ccc7f 100644
+--- a/libs/ddslib/CMakeLists.txt
++++ b/libs/ddslib/CMakeLists.txt
+@@ -1,3 +1,3 @@
+-add_library(ddslib
++add_library(ddslib STATIC
+ ddslib.c ../ddslib.h
+ )
+diff --git a/libs/debugging/CMakeLists.txt b/libs/debugging/CMakeLists.txt
+index e5880de3..0b8f90d8 100644
+--- a/libs/debugging/CMakeLists.txt
++++ b/libs/debugging/CMakeLists.txt
+@@ -1,3 +1,3 @@
+-add_library(debugging
++add_library(debugging STATIC
+ debugging.cpp debugging.h
+ )
+diff --git a/libs/etclib/CMakeLists.txt b/libs/etclib/CMakeLists.txt
+index 8d8fb23a..68a12302 100644
+--- a/libs/etclib/CMakeLists.txt
++++ b/libs/etclib/CMakeLists.txt
+@@ -1,3 +1,3 @@
+-add_library(etclib
++add_library(etclib STATIC
+ ../etclib.c ../etclib.h
+ )
+diff --git a/libs/filematch/CMakeLists.txt b/libs/filematch/CMakeLists.txt
+index c7d8a9ed..fede3eb5 100644
+--- a/libs/filematch/CMakeLists.txt
++++ b/libs/filematch/CMakeLists.txt
+@@ -1,3 +1,3 @@
+-add_library(filematch
++add_library(filematch STATIC
+ ../filematch.c ../filematch.h
+ )
+diff --git a/libs/generic/CMakeLists.txt b/libs/generic/CMakeLists.txt
+index d89f5743..e05637ef 100644
+--- a/libs/generic/CMakeLists.txt
++++ b/libs/generic/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(generic
++add_library(generic STATIC
+ arrayrange.h
+ bitfield.h
+ callback.cpp callback.h
+diff --git a/libs/gtkutil/CMakeLists.txt b/libs/gtkutil/CMakeLists.txt
+index b62098c1..80eca88c 100644
+--- a/libs/gtkutil/CMakeLists.txt
++++ b/libs/gtkutil/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(gtkutil
++add_library(gtkutil STATIC
+ accelerator.cpp accelerator.h
+ button.cpp button.h
+ clipboard.cpp clipboard.h
+diff --git a/libs/l_net/CMakeLists.txt b/libs/l_net/CMakeLists.txt
+index a0a19a84..c4984b83 100644
+--- a/libs/l_net/CMakeLists.txt
++++ b/libs/l_net/CMakeLists.txt
+@@ -7,7 +7,7 @@ else ()
+ list(APPEND L_NETLIST l_net_berkley.c)
+ endif ()
+
+-add_library(l_net ${L_NETLIST})
++add_library(l_net STATIC ${L_NETLIST})
+
+ if (WIN32)
+ target_link_libraries(l_net PRIVATE ws2_32)
+diff --git a/libs/math/CMakeLists.txt b/libs/math/CMakeLists.txt
+index 6cfedbef..4dc8a8ce 100644
+--- a/libs/math/CMakeLists.txt
++++ b/libs/math/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(math
++add_library(math STATIC
+ _.cpp
+ aabb.h
+ curve.h
+diff --git a/libs/mathlib/CMakeLists.txt b/libs/mathlib/CMakeLists.txt
+index 5682a5e1..27b087a8 100644
+--- a/libs/mathlib/CMakeLists.txt
++++ b/libs/mathlib/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(mathlib
++add_library(mathlib STATIC
+ bbox.c
+ line.c
+ m4x4.c
+diff --git a/libs/memory/CMakeLists.txt b/libs/memory/CMakeLists.txt
+index 1c345734..bebfc22d 100644
+--- a/libs/memory/CMakeLists.txt
++++ b/libs/memory/CMakeLists.txt
+@@ -1,3 +1,3 @@
+-add_library(memory
++add_library(memory STATIC
+ allocator.cpp allocator.h
+ )
+diff --git a/libs/modulesystem/CMakeLists.txt b/libs/modulesystem/CMakeLists.txt
+index d27aa633..489ee4a5 100644
+--- a/libs/modulesystem/CMakeLists.txt
++++ b/libs/modulesystem/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(modulesystem
++add_library(modulesystem STATIC
+ moduleregistry.h
+ modulesmap.h
+ singletonmodule.cpp singletonmodule.h
+diff --git a/libs/os/CMakeLists.txt b/libs/os/CMakeLists.txt
+index 437b506c..a1e47599 100644
+--- a/libs/os/CMakeLists.txt
++++ b/libs/os/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(os
++add_library(os STATIC
+ _.cpp
+ dir.h
+ file.h
+diff --git a/libs/picomodel/CMakeLists.txt b/libs/picomodel/CMakeLists.txt
+index 0f1286d0..4800fb46 100644
+--- a/libs/picomodel/CMakeLists.txt
++++ b/libs/picomodel/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(picomodel
++add_library(picomodel STATIC
+ lwo/clip.c
+ lwo/envelope.c
+ lwo/list.c
+diff --git a/libs/profile/CMakeLists.txt b/libs/profile/CMakeLists.txt
+index e3822f42..745238f3 100644
+--- a/libs/profile/CMakeLists.txt
++++ b/libs/profile/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(profile
++add_library(profile STATIC
+ file.cpp file.h
+ profile.cpp profile.h
+ )
+diff --git a/libs/script/CMakeLists.txt b/libs/script/CMakeLists.txt
+index 6e49527d..0adfd124 100644
+--- a/libs/script/CMakeLists.txt
++++ b/libs/script/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(script
++add_library(script STATIC
+ _.cpp
+ scripttokeniser.h
+ scripttokenwriter.h
+diff --git a/libs/signal/CMakeLists.txt b/libs/signal/CMakeLists.txt
+index 499a4838..026c7249 100644
+--- a/libs/signal/CMakeLists.txt
++++ b/libs/signal/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(signal
++add_library(signal STATIC
+ isignal.h
+ signal.cpp signal.h
+ signalfwd.h
+diff --git a/libs/splines/CMakeLists.txt b/libs/splines/CMakeLists.txt
+index 3a6b603d..d301f272 100644
+--- a/libs/splines/CMakeLists.txt
++++ b/libs/splines/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(splines
++add_library(splines STATIC
+ math_angles.cpp math_angles.h
+ math_matrix.cpp math_matrix.h
+ math_quaternion.cpp math_quaternion.h
+diff --git a/libs/stream/CMakeLists.txt b/libs/stream/CMakeLists.txt
+index 6ce79395..ec1c9ae9 100644
+--- a/libs/stream/CMakeLists.txt
++++ b/libs/stream/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(stream
++add_library(stream STATIC
+ _.cpp
+ filestream.h
+ memstream.h
+diff --git a/libs/string/CMakeLists.txt b/libs/string/CMakeLists.txt
+index 4b0720a5..a9c2f471 100644
+--- a/libs/string/CMakeLists.txt
++++ b/libs/string/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(string
++add_library(string STATIC
+ pooledstring.cpp pooledstring.h
+ string.h
+ stringfwd.h
+diff --git a/libs/uilib/CMakeLists.txt b/libs/uilib/CMakeLists.txt
+index 080376b1..cfa95758 100644
+--- a/libs/uilib/CMakeLists.txt
++++ b/libs/uilib/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(uilib
++add_library(uilib STATIC
+ uilib.cpp
+ )
+
+diff --git a/libs/xml/CMakeLists.txt b/libs/xml/CMakeLists.txt
+index 96e1e216..cd0b040a 100644
+--- a/libs/xml/CMakeLists.txt
++++ b/libs/xml/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-add_library(xmllib
++add_library(xmllib STATIC
+ ixml.h
+ xmlelement.h
+ xmlparser.h
+--
+2.26.2
+
diff --git a/dev-games/netradiant/metadata.xml b/dev-games/netradiant/metadata.xml
index 2354e25..fcf1f88 100644
--- a/dev-games/netradiant/metadata.xml
+++ b/dev-games/netradiant/metadata.xml
@@ -1,25 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person">
- <email>nikoli@lavabit.com</email>
- <name>Nikoli</name>
- </maintainer>
- <use>
- <flag name='h2data'>Install h2data tool</flag>
- <flag name='q2map'>Install q2map tool</flag>
- <flag name='q3data'>Install q3data tool</flag>
- <flag name='q3map2'>Install q3map2 tool</flag>
- <flag name='qdata3'>Install qdata3 tool</flag>
- <flag name='darkplaces'>Install DarkPlaces pack</flag>
- <flag name='nexuiz'>Install Nexuiz pack</flag>
- <flag name='openarena'>Install OpenArena non GPL pack</flag>
- <flag name='osirion'>Install Osirion pack</flag>
- <flag name='quake1'>Install Quake non GPL pack</flag>
- <flag name='quake2'>Install Quake2 non GPL pack</flag>
- <flag name='quake2world'>Install Quake2World pack</flag>
- <flag name='tremulous'>Install Tremulous non GPL pack</flag>
- <flag name='warsow'>Install Warsow pack</flag>
- <flag name='xonotic'>Install Xonotic pack</flag>
- </use>
+ <maintainer type="person">
+ <email>nikoli@lavabit.com</email>
+ <name>Nikoli</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>azamat.hackimov@gmail.com</email>
+ <name>Azamat H. Hackimov</name>
+ </maintainer>
+ <use>
+ <flag name="tools">Install additional tools</flag>
+ </use>
+ <upstream>
+ <remote-id type="gitlab">xonotic/netradiant</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-games/netradiant/netradiant-1.5.0_p20120515.ebuild b/dev-games/netradiant/netradiant-1.5.0_p20120515.ebuild
deleted file mode 100644
index 94d841c..0000000
--- a/dev-games/netradiant/netradiant-1.5.0_p20120515.ebuild
+++ /dev/null
@@ -1,187 +0,0 @@
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit eutils multilib toolchain-funcs
-
-RADIANT_MAJOR_VERSION="5"
-RADIANT_MINOR_VERSION="0"
-DESCRIPTION="NetRadiant is a fork of map editor for Q3 based games, GtkRadiant 1.5"
-HOMEPAGE="http://dev.alientrap.org/projects/netradiant"
-BASE_ZIP_URI="http://ingar.satgnu.net/files/gtkradiant/gamepacks/"
-SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.xz
- osirion? ( ${BASE_ZIP_URI}/OsirionPack.zip )
- quake1? ( ${BASE_ZIP_URI}/Quake1Pack.zip )
- warsow? ( ${BASE_ZIP_URI}/WarsowPack.zip )
- !bindist? (
- openarena? ( ${BASE_ZIP_URI}/OpenArenaPack.zip )
- quake2? ( ${BASE_ZIP_URI}/Quake2Pack.zip )
- tremulous? ( ${BASE_ZIP_URI}/TremulousPack.zip )
- )
-"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-RADIANT_GPL_PACKS="darkplaces nexuiz osirion quake2world warsow +xonotic"
-RADIANT_NONGPL_PACKS="openarena quake1 quake2 tremulous"
-RADIANT_TOOLS="h2data q2map q3data q3map2 qdata3"
-RADIANT_PACKS="${RADIANT_GPL_PACKS} ${RADIANT_NONGPL_PACKS}"
-RADIANT_BINS=" ${RADIANT_TOOLS} gtk"
-IUSE="${RADIANT_PACKS} ${RADIANT_BINS// / +} bindist"
-
-RDEPEND="
- dev-libs/glib:2
- dev-libs/libxml2
- >=media-libs/libpng-1.2
- >=sys-libs/zlib-1.2
- gtk? (
- >=x11-libs/gtk+-2.4:2
- >=x11-libs/gtkglext-1
- x11-libs/pango
- )
- !dev-games/gtkradiant
-"
-DEPEND="${RDEPEND}
- app-arch/xz-utils
- dev-vcs/subversion
- virtual/pkgconfig
- osirion? ( app-arch/unzip )
- quake1? ( app-arch/unzip )
- warsow? ( app-arch/unzip )
- !bindist? (
- openarena? ( app-arch/unzip )
- quake2? ( app-arch/unzip )
- tremulous? ( app-arch/unzip )
- )
-"
-
-radiant_zip_unpack() {
- if use ${1,,}; then
- cd "${WORKDIR}/packs/" || die
- unpack "${1}Pack.zip"
- mv ${1}Pack ${1,,} || die
- fi
-}
-
-pkg_setup() {
- targets=""
- for i in ${RADIANT_BINS};do
- if use $i; then
- targets+=" ${i/gtk/radiant}"
- fi
- done
- if [ "x$targets" = "x" ]; then
- targets=" q3map2"
- ewarn "You disabled all binaries: defaulting to USE=\"q3map2\""
- fi
-}
-
-src_unpack() {
- unpack ${P}.tar.xz
-
- if use gtk; then
- radiant_zip_unpack Osirion
- radiant_zip_unpack Quake1
- radiant_zip_unpack Warsow
-
- if use !bindist; then
- MY_RADIANT_PACKS="${RADIANT_GPL_PACKS//+/} ${RADIANT_NONGPL_PACKS}"
- radiant_zip_unpack OpenArena
- radiant_zip_unpack Quake2
- radiant_zip_unpack Tremulous
- else
- MY_RADIANT_PACKS="${RADIANT_GPL_PACKS//+/}"
- for i in ${RADIANT_NONGPL_PACKS}; do
- if use ${i}; then
- ewarn "USE bindist disables ${i} non GPL pack"
- fi
- done
- fi
- fi
-}
-
-src_prepare() {
- sed -e '/$(INSTALLDIR)/s,heretic2/h2data,/h2data,' \
- -i Makefile || die
-}
-
-src_configure() {
- tc-export CC CXX AR RANLIB
-
- export TEE_STDERR=""
-
- # dependencies-check wants gtk
- if use gtk; then
- emake dependencies-check
- fi
-}
-
-src_compile() {
- emake ${targets// / binaries-}
-}
-
-src_install() {
- insinto /usr/$(get_libdir)/${PN}
- doins \
- setup/data/tools/q3data.qdt
-
- dodoc ChangeLog ChangeLog.idsoftware CONTRIBUTORS tools/quake3/q3map2/changelog.q3map{1,2.txt}
-
- pushd install || die
- exeinto /usr/$(get_libdir)/${PN}
- for i in ${targets}; do
- doexe ${i}.x86
- dosym /usr/$(get_libdir)/${PN}/${i}.x86 /usr/bin/${i}
- done
-
- # radiant
- if use gtk; then
- dosym /usr/$(get_libdir)/${PN}/radiant.x86 /usr/bin/${PN}
-
- newicon "${S}"/icons/radiant-src.png ${PN}.png
- make_desktop_entry ${PN} NetRadiant ${PN} "Development;GTK;"
-
- # modules
- insinto /usr/$(get_libdir)/${PN}/modules
- doins modules/*.so
-
- # plugins
- insinto /usr/$(get_libdir)/${PN}/plugins
- doins plugins/*.so
-
- # data
- popd || die
- echo "$RADIANT_MINOR_VERSION" > RADIANT_MINOR || die
- echo "$RADIANT_MAJOR_VERSION" > RADIANT_MAJOR || die
- insinto /usr/$(get_libdir)/${PN}
- doins -r \
- RADIANT_MAJOR \
- RADIANT_MINOR \
- setup/data/tools/bitmaps \
- setup/data/tools/gl \
- setup/data/tools/global.xlink \
- setup/data/tools/plugins \
- docs
-
- # packs
- for x in ${MY_RADIANT_PACKS//+/}; do
- if use $x; then
- cd "${WORKDIR}"/packs/${x} || die
- # USE and dir names differ
- n="$(echo $x | sed \
- -e 's/^quake/q/' \
- -e 's/2world$/2w/' \
- -e 's/^openarena/oa/' \
- -e 's/^tremulous/trem/' \
- )"
- insinto /usr/$(get_libdir)/${PN}
- doins -r ${n}.game
-
- insinto /usr/$(get_libdir)/${PN}/games
- doins games/${n}.game
- fi
- done
- fi
-}
diff --git a/dev-games/netradiant/netradiant-1.5.0_p20200521.ebuild b/dev-games/netradiant/netradiant-1.5.0_p20200521.ebuild
new file mode 100644
index 0000000..fd3045c
--- /dev/null
+++ b/dev-games/netradiant/netradiant-1.5.0_p20200521.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+GIT_TAG="458a91b4539ea68ae6a02f5ad93c6fbc93a725a0"
+
+DESCRIPTION="NetRadiant is a fork of map editor for Q3 based games, GtkRadiant 1.5"
+HOMEPAGE="https://netradiant.gitlab.io/"
+BASE_ZIP_URI="http://ingar.intranifty.net/files/netradiant/gamepacks/"
+SRC_URI="https://gitlab.com/xonotic/netradiant/-/archive/${GIT_TAG}/netradiant-${GIT_TAG}.tar.bz2 -> ${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="+gui tools"
+REQUIRED_USE="|| ( gui tools )"
+
+RDEPEND="
+ gui? (
+ dev-games/netradiant-gamepacks
+ x11-libs/gtk+:2
+ x11-libs/gtkglext
+ x11-libs/pango
+ )
+ dev-libs/glib
+ dev-libs/libxml2
+ media-libs/libpng:=
+ media-libs/libwebp:=
+ sys-libs/zlib:=[minizip]
+ virtual/jpeg
+ virtual/opengl
+"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ "
+
+S="${WORKDIR}/${PN}-${GIT_TAG}"
+
+PATCHES=(
+ "${FILESDIR}/${P}_DBUILD_SHARED_LIBS.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_RADIANT=$(usex gui)
+ -DBUILD_TOOLS=$(usex tools)
+ -DBUILD_DAEMONMAP=OFF
+ -DBUILD_CRUNCH=OFF
+ -DBUNDLE_LIBRARIES=OFF
+ -DDOWNLOAD_GAMEPACKS=OFF
+ -DFHS_INSTALL=ON
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}