1 |
commit: d2547e042d7236d9309057f03b1ca5a744f9e8e9 |
2 |
Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 4 14:03:50 2019 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 7 14:30:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2547e04 |
7 |
|
8 |
games-engines/odamex: Bump to version 0.8.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/680758 |
11 |
Package-Manager: Portage-2.3.73, Repoman-2.3.17 |
12 |
Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/12863 |
14 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
15 |
|
16 |
games-engines/odamex/Manifest | 1 + |
17 |
.../odamex/files/odamex-0.8.1-miniupnpc.patch | 48 +++++++++++++ |
18 |
games-engines/odamex/metadata.xml | 11 +-- |
19 |
games-engines/odamex/odamex-0.8.1.ebuild | 78 ++++++++++++++++++++++ |
20 |
4 files changed, 133 insertions(+), 5 deletions(-) |
21 |
|
22 |
diff --git a/games-engines/odamex/Manifest b/games-engines/odamex/Manifest |
23 |
index 471256adcaf..722a82bbe72 100644 |
24 |
--- a/games-engines/odamex/Manifest |
25 |
+++ b/games-engines/odamex/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST odamex-src-0.7.0.tar.bz2 8435860 BLAKE2B 9720efdf262047074fed593360b0c38864d5d0f9c076a45d6df9aaf362cba35f41eeafab968338be0911681726872c33e3625934176f75068ca4933655876f7b SHA512 410f3c2588e4d57006e5bb50eaa0f6c1a83cf197ce40daabb958667483eb6c85138206ac74b8aee64c4208c4360415ad16d1698534be5c7abec1493a0f91aa8b |
28 |
+DIST odamex-src-0.8.1.tar.bz2 8520197 BLAKE2B 9744460f2a2bff375cbf80416a38212e7576a4ef6874d2647c1371dc66b464666d67dd69ac61c918c51bee6da0150cbb70799eb81fc2fd7ff62edaec332241a5 SHA512 5cdd05df9683c9b26cac5e2947f5365405b0c6239890d89ab962f4ac088788148bb1eabc15e80b0f13fca0dea69bffcd9e80e8aa80c6ac0a5d7e63b0bd983642 |
29 |
|
30 |
diff --git a/games-engines/odamex/files/odamex-0.8.1-miniupnpc.patch b/games-engines/odamex/files/odamex-0.8.1-miniupnpc.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..5fca5815162 |
33 |
--- /dev/null |
34 |
+++ b/games-engines/odamex/files/odamex-0.8.1-miniupnpc.patch |
35 |
@@ -0,0 +1,48 @@ |
36 |
+From 656306d3e68f7f1f1441f03e1765530f34ea2611 Mon Sep 17 00:00:00 2001 |
37 |
+From: Julian Ospald <hasufell@g.o> |
38 |
+Date: Thu, 27 Mar 2014 21:16:02 +0000 |
39 |
+Subject: [PATCH] unbundle miniupnpc |
40 |
+ |
41 |
+--- |
42 |
+ CMakeLists.txt | 1 - |
43 |
+ server/CMakeLists.txt | 5 ++--- |
44 |
+ 2 files changed, 2 insertions(+), 4 deletions(-) |
45 |
+ |
46 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
47 |
+index 0cafdbd5..00e033a9 100644 |
48 |
+--- a/CMakeLists.txt |
49 |
++++ b/CMakeLists.txt |
50 |
+@@ -124,7 +124,6 @@ if (USE_MINIUPNP) |
51 |
+ set(UPNPC_BUILD_TESTS OFF CACHE INTERNAL "" FORCE) |
52 |
+ set(UPNPC_INSTALL OFF CACHE INTERNAL "" FORCE) |
53 |
+ mark_as_advanced(FORCE UPNPC_INSTALL) |
54 |
+- add_subdirectory(libraries/libminiupnpc) |
55 |
+ endif() |
56 |
+ |
57 |
+ # Subdirectories for Odamex projects |
58 |
+diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt |
59 |
+index d8e57257..5badceef 100644 |
60 |
+--- a/server/CMakeLists.txt |
61 |
++++ b/server/CMakeLists.txt |
62 |
+@@ -35,8 +35,7 @@ set(JSONCPP_SOURCE ${JSONCPP_DIR}/jsoncpp.cpp) |
63 |
+ |
64 |
+ # MiniUPnPc |
65 |
+ if (USE_MINIUPNP) |
66 |
+- set(MINIUPNPC_DIR ../libraries/libminiupnpc) |
67 |
+- set(MINIUPNPC_STATIC_LIBRARIES upnpc-static) |
68 |
++ set(MINIUPNPC_DIR /usr/include/miniupnpc) |
69 |
+ endif() |
70 |
+ |
71 |
+ # git describe |
72 |
+@@ -74,7 +73,7 @@ add_executable(odasrv |
73 |
+ ${SERVER_WIN32_HEADERS} ${SERVER_WIN32_RESOURCES}) |
74 |
+ |
75 |
+ if (USE_MINIUPNP) |
76 |
+- target_link_libraries(odasrv ${MINIUPNPC_STATIC_LIBRARIES}) |
77 |
++ target_link_libraries(odasrv -lminiupnpc) |
78 |
+ endif() |
79 |
+ |
80 |
+ if(WIN32) |
81 |
+-- |
82 |
+2.23.0 |
83 |
+ |
84 |
|
85 |
diff --git a/games-engines/odamex/metadata.xml b/games-engines/odamex/metadata.xml |
86 |
index 39562f87b32..608f36b8bc4 100644 |
87 |
--- a/games-engines/odamex/metadata.xml |
88 |
+++ b/games-engines/odamex/metadata.xml |
89 |
@@ -6,18 +6,19 @@ |
90 |
<name>Proxy Maintainers</name> |
91 |
</maintainer> |
92 |
<maintainer type="person"> |
93 |
- <email>mwoodj@×××××××.net</email> |
94 |
- <name>Mike Wood</name> |
95 |
+ <email>vilhelm.gray@×××××.com</email> |
96 |
+ <name>William Breathitt Gray</name> |
97 |
</maintainer> |
98 |
<maintainer type="project"> |
99 |
<email>games@g.o</email> |
100 |
<name>Gentoo Games Project</name> |
101 |
</maintainer> |
102 |
<use> |
103 |
- <flag name="odalaunch">Build the wxwidgets based launcher.</flag> |
104 |
+ <flag name="client">Build client target</flag> |
105 |
<flag name="master">Build master server target (advertises odamex server list)</flag> |
106 |
- <flag name="portmidi">Enable portmidi support.</flag> |
107 |
- <flag name="server">Build server target.</flag> |
108 |
+ <flag name="odalaunch">Build the wxWidgets based launcher</flag> |
109 |
+ <flag name="portmidi">Enable PortMidi support</flag> |
110 |
+ <flag name="server">Build server target</flag> |
111 |
</use> |
112 |
<upstream> |
113 |
<changelog>http://odamex.net/changelog.php</changelog> |
114 |
|
115 |
diff --git a/games-engines/odamex/odamex-0.8.1.ebuild b/games-engines/odamex/odamex-0.8.1.ebuild |
116 |
new file mode 100644 |
117 |
index 00000000000..687e1349aab |
118 |
--- /dev/null |
119 |
+++ b/games-engines/odamex/odamex-0.8.1.ebuild |
120 |
@@ -0,0 +1,78 @@ |
121 |
+# Copyright 1999-2019 Gentoo Authors |
122 |
+# Distributed under the terms of the GNU General Public License v2 |
123 |
+ |
124 |
+EAPI=7 |
125 |
+ |
126 |
+WX_GTK_VER="3.0" |
127 |
+inherit cmake-utils desktop wxwidgets xdg |
128 |
+ |
129 |
+DESCRIPTION="Online multiplayer free software engine for DOOM" |
130 |
+HOMEPAGE="https://odamex.net/" |
131 |
+SRC_URI="mirror://sourceforge/${PN}/Odamex/${PV}/${PN}-src-${PV}.tar.bz2" |
132 |
+ |
133 |
+LICENSE="GPL-2+ MIT" |
134 |
+SLOT="0" |
135 |
+KEYWORDS="~amd64 ~x86" |
136 |
+IUSE="+client master +odalaunch portmidi server upnp X" |
137 |
+REQUIRED_USE="|| ( client master server )" |
138 |
+ |
139 |
+RDEPEND=" |
140 |
+ client? ( |
141 |
+ media-libs/libpng:0= |
142 |
+ media-libs/libsdl2[joystick,sound,video] |
143 |
+ media-libs/sdl2-mixer |
144 |
+ odalaunch? ( x11-libs/wxGTK:${WX_GTK_VER}[X] ) |
145 |
+ portmidi? ( media-libs/portmidi ) |
146 |
+ X? ( x11-libs/libX11 ) |
147 |
+ ) |
148 |
+ server? ( |
149 |
+ upnp? ( net-libs/miniupnpc:= ) |
150 |
+ )" |
151 |
+DEPEND="${RDEPEND}" |
152 |
+BDEPEND="games-util/deutex" |
153 |
+ |
154 |
+S="${WORKDIR}/${PN}-src-${PV}" |
155 |
+ |
156 |
+PATCHES=( |
157 |
+ "${FILESDIR}"/${P}-miniupnpc.patch |
158 |
+) |
159 |
+ |
160 |
+src_prepare() { |
161 |
+ rm -r libraries/libminiupnpc odamex.wad || die |
162 |
+ cmake-utils_src_prepare |
163 |
+} |
164 |
+ |
165 |
+src_configure() { |
166 |
+ local mycmakeargs=( |
167 |
+ -DBUILD_CLIENT=$(usex client) |
168 |
+ -DBUILD_MASTER=$(usex master) |
169 |
+ -DBUILD_ODALAUNCH=$(usex odalaunch) |
170 |
+ -DBUILD_SERVER=$(usex server) |
171 |
+ -DENABLE_PORTMIDI=$(usex portmidi) |
172 |
+ -DUSE_MINIUPNP=$(usex upnp) |
173 |
+ ) |
174 |
+ |
175 |
+ cmake-utils_src_configure |
176 |
+} |
177 |
+ |
178 |
+src_compile() { |
179 |
+ cmake-utils_src_compile |
180 |
+ |
181 |
+ # Build odamex.wad |
182 |
+ cd wad || die "cd failed" |
183 |
+ deutex -rgb 0 255 255 -doom2 bootstrap -build wadinfo.txt ../odamex.wad || die |
184 |
+} |
185 |
+ |
186 |
+src_install() { |
187 |
+ if use client ; then |
188 |
+ newicon -s 128 "${S}/media/icon_${PN}_128.png" "${PN}.png" |
189 |
+ make_desktop_entry "${PN} -waddir /usr/share/doom" "Odamex" |
190 |
+ |
191 |
+ if use odalaunch ; then |
192 |
+ newicon -s 128 "${S}/media/icon_odalaunch_128.png" "odalaunch.png" |
193 |
+ make_desktop_entry odalaunch "Odamex Launcher" odalaunch |
194 |
+ fi |
195 |
+ fi |
196 |
+ |
197 |
+ cmake-utils_src_install |
198 |
+} |