Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/odamex/, games-engines/odamex/files/
Date: Sat, 29 May 2021 14:54:11
Message-Id: 1622300033.da21ab625d36f9b941853ed243a8327be3986703.chewi@gentoo
1 commit: da21ab625d36f9b941853ed243a8327be3986703
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 29 14:53:53 2021 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat May 29 14:53:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da21ab62
7
8 games-engines/odamex: Drop old 0.8.3
9
10 Package-Manager: Portage-3.0.19, Repoman-3.0.3
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 games-engines/odamex/Manifest | 1 -
14 .../odamex/files/odamex-0.8.1-miniupnpc.patch | 48 --------------
15 ...1-on-odalaunch-target-for-wx-3.0.4-and-up.patch | 29 ---------
16 games-engines/odamex/odamex-0.8.3.ebuild | 76 ----------------------
17 4 files changed, 154 deletions(-)
18
19 diff --git a/games-engines/odamex/Manifest b/games-engines/odamex/Manifest
20 index 41281f1f859..e1f1a52559b 100644
21 --- a/games-engines/odamex/Manifest
22 +++ b/games-engines/odamex/Manifest
23 @@ -1,3 +1,2 @@
24 -DIST odamex-0.8.3.tar.bz2 8532510 BLAKE2B 751d65dfe07a4c4c0cb5ff360e76a1291cf4ba289c459f15a0c277aca4d15b1e0989e1606cdc4e0f0bec56d6ae437027046302f5c55efb3b835a42df512fb18f SHA512 01a875973d43c87dde7953464e0e3c37fa088b00b6cc0ecbef1a8b3b9a87257ab24ef4e3c224ebcbc0e38cd3139c7adc56b12a03ae2528b66d6498bb8d84d720
25 DIST odamex-0.9.0.tar.bz2 6644055 BLAKE2B 656a469665783e0a5aa1a39792454a7ec34843b7fa11539f5504463701b5485eed0b5fabcd4f9f39eef3bdad9062f657c0b1d6147bcd41defa4142b51b4096a4 SHA512 f86e61afd5fdd9be6db03554e07fa140fdcc61747ce9312706af2cada8ec88705647abdfff4f221d8cfbd4a53b991e08edf4cbf0025cf6e5a74d2213fc662855
26 DIST odamex-0.9.2.tar.bz2 6657974 BLAKE2B 60bf542806fe9d66711b45211f646607875621b014175fa3c4b9948c1c02d45af36d4a324349f22f4a7a4e11c13f48f2b96c731a9bb5f18c9d43111c56676f18 SHA512 69fb2ecc1d642c9c90da7503712aba628c753534ee56003945e4d267dc38bca0136d155a75695e483b0b4ec739aa331fca8c7493263b39a2521e8abcb378b5e4
27
28 diff --git a/games-engines/odamex/files/odamex-0.8.1-miniupnpc.patch b/games-engines/odamex/files/odamex-0.8.1-miniupnpc.patch
29 deleted file mode 100644
30 index 5fca5815162..00000000000
31 --- a/games-engines/odamex/files/odamex-0.8.1-miniupnpc.patch
32 +++ /dev/null
33 @@ -1,48 +0,0 @@
34 -From 656306d3e68f7f1f1441f03e1765530f34ea2611 Mon Sep 17 00:00:00 2001
35 -From: Julian Ospald <hasufell@g.o>
36 -Date: Thu, 27 Mar 2014 21:16:02 +0000
37 -Subject: [PATCH] unbundle miniupnpc
38 -
39 ----
40 - CMakeLists.txt | 1 -
41 - server/CMakeLists.txt | 5 ++---
42 - 2 files changed, 2 insertions(+), 4 deletions(-)
43 -
44 -diff --git a/CMakeLists.txt b/CMakeLists.txt
45 -index 0cafdbd5..00e033a9 100644
46 ---- a/CMakeLists.txt
47 -+++ b/CMakeLists.txt
48 -@@ -124,7 +124,6 @@ if (USE_MINIUPNP)
49 - set(UPNPC_BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
50 - set(UPNPC_INSTALL OFF CACHE INTERNAL "" FORCE)
51 - mark_as_advanced(FORCE UPNPC_INSTALL)
52 -- add_subdirectory(libraries/libminiupnpc)
53 - endif()
54 -
55 - # Subdirectories for Odamex projects
56 -diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt
57 -index d8e57257..5badceef 100644
58 ---- a/server/CMakeLists.txt
59 -+++ b/server/CMakeLists.txt
60 -@@ -35,8 +35,7 @@ set(JSONCPP_SOURCE ${JSONCPP_DIR}/jsoncpp.cpp)
61 -
62 - # MiniUPnPc
63 - if (USE_MINIUPNP)
64 -- set(MINIUPNPC_DIR ../libraries/libminiupnpc)
65 -- set(MINIUPNPC_STATIC_LIBRARIES upnpc-static)
66 -+ set(MINIUPNPC_DIR /usr/include/miniupnpc)
67 - endif()
68 -
69 - # git describe
70 -@@ -74,7 +73,7 @@ add_executable(odasrv
71 - ${SERVER_WIN32_HEADERS} ${SERVER_WIN32_RESOURCES})
72 -
73 - if (USE_MINIUPNP)
74 -- target_link_libraries(odasrv ${MINIUPNPC_STATIC_LIBRARIES})
75 -+ target_link_libraries(odasrv -lminiupnpc)
76 - endif()
77 -
78 - if(WIN32)
79 ---
80 -2.23.0
81 -
82
83 diff --git a/games-engines/odamex/files/odamex-0.8.3-Use-C-11-on-odalaunch-target-for-wx-3.0.4-and-up.patch b/games-engines/odamex/files/odamex-0.8.3-Use-C-11-on-odalaunch-target-for-wx-3.0.4-and-up.patch
84 deleted file mode 100644
85 index 935d43466c4..00000000000
86 --- a/games-engines/odamex/files/odamex-0.8.3-Use-C-11-on-odalaunch-target-for-wx-3.0.4-and-up.patch
87 +++ /dev/null
88 @@ -1,29 +0,0 @@
89 -From 9e3ae8538475e6f15757ce51e214f5cd29f223e7 Mon Sep 17 00:00:00 2001
90 -From: Michael Wood <mwoodj@××××××××××.org>
91 -Date: Tue, 25 Aug 2020 02:34:37 -0500
92 -Subject: [PATCH] Use C++11 on odalaunch target for wx 3.0.4 and up
93 -
94 -This addresses bug #1311. wxWidgets 3.0.4 requires C++11 support.
95 ----
96 - odalaunch/CMakeLists.txt | 5 +++++
97 - 1 file changed, 5 insertions(+)
98 -
99 -diff --git a/odalaunch/CMakeLists.txt b/odalaunch/CMakeLists.txt
100 -index f68a4d4d..4abbe0d8 100644
101 ---- a/odalaunch/CMakeLists.txt
102 -+++ b/odalaunch/CMakeLists.txt
103 -@@ -32,6 +32,11 @@ endif()
104 -
105 - # Odalaunch target
106 - if(wxWidgets_FOUND)
107 -+ # wxWidgets 3.0.4 requires C++11
108 -+ if(wxWidgets_VERSION_STRING VERSION_GREATER 3.0.3)
109 -+ set(CMAKE_CXX_STANDARD 11)
110 -+ endif()
111 -+
112 - add_custom_command(
113 - OUTPUT ${XRCRES_HEADER}
114 - COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/res
115 ---
116 -2.28.0
117 -
118
119 diff --git a/games-engines/odamex/odamex-0.8.3.ebuild b/games-engines/odamex/odamex-0.8.3.ebuild
120 deleted file mode 100644
121 index ff1b1912857..00000000000
122 --- a/games-engines/odamex/odamex-0.8.3.ebuild
123 +++ /dev/null
124 @@ -1,76 +0,0 @@
125 -# Copyright 1999-2019 Gentoo Authors
126 -# Distributed under the terms of the GNU General Public License v2
127 -
128 -EAPI=7
129 -
130 -WX_GTK_VER="3.0-gtk3"
131 -inherit cmake desktop prefix wxwidgets xdg
132 -
133 -DESCRIPTION="Online multiplayer free software engine for DOOM"
134 -HOMEPAGE="https://odamex.net/"
135 -SRC_URI="mirror://sourceforge/${PN}/Odamex/${PV}/${PN}-src-${PV}.tar.bz2 -> ${P}.tar.bz2"
136 -
137 -LICENSE="GPL-2+ MIT"
138 -SLOT="0"
139 -KEYWORDS="~amd64 ~arm ~x86"
140 -IUSE="+client master +odalaunch portmidi server upnp X"
141 -REQUIRED_USE="|| ( client master server )"
142 -
143 -RDEPEND="
144 - client? (
145 - media-libs/libpng:0=
146 - media-libs/libsdl2[joystick,sound,video]
147 - media-libs/sdl2-mixer
148 - odalaunch? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )
149 - portmidi? ( media-libs/portmidi )
150 - X? ( x11-libs/libX11 )
151 - )
152 - server? (
153 - upnp? ( net-libs/miniupnpc:= )
154 - )"
155 -DEPEND="${RDEPEND}"
156 -BDEPEND="games-util/deutex"
157 -
158 -S="${WORKDIR}/${PN}-src-${PV}"
159 -
160 -PATCHES=(
161 - "${FILESDIR}/${PN}-0.8.1-miniupnpc.patch"
162 - "${FILESDIR}/${P}-Use-C-11-on-odalaunch-target-for-wx-3.0.4-and-up.patch"
163 -)
164 -
165 -src_prepare() {
166 - rm -r libraries/libminiupnpc wad/odamex.wad || die
167 - hprefixify common/d_main.cpp
168 -
169 - use odalaunch && setup-wxwidgets
170 -
171 - cmake_src_prepare
172 -}
173 -
174 -src_configure() {
175 - local mycmakeargs=(
176 - -DCMAKE_DISABLE_FIND_PACKAGE_X11=$(usex !X)
177 - -DBUILD_CLIENT=$(usex client)
178 - -DBUILD_MASTER=$(usex master)
179 - -DBUILD_ODALAUNCH=$(usex odalaunch)
180 - -DBUILD_SERVER=$(usex server)
181 - -DENABLE_PORTMIDI=$(usex portmidi)
182 - -DUSE_MINIUPNP=$(usex upnp)
183 - )
184 -
185 - cmake_src_configure
186 -}
187 -
188 -src_install() {
189 - if use client ; then
190 - newicon -s 128 "${S}/media/icon_${PN}_128.png" "${PN}.png"
191 - make_desktop_entry "${PN}" "Odamex"
192 -
193 - if use odalaunch ; then
194 - newicon -s 128 "${S}/media/icon_odalaunch_128.png" "odalaunch.png"
195 - make_desktop_entry odalaunch "Odamex Launcher" odalaunch
196 - fi
197 - fi
198 -
199 - cmake_src_install
200 -}