Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/0ad/
Date: Sun, 28 Feb 2021 23:04:47
Message-Id: 1614553469.a18c2bdc043ce8926cf9f247189c8d42f32d0efe.sam@gentoo
1 commit: a18c2bdc043ce8926cf9f247189c8d42f32d0efe
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 22:27:03 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 23:04:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a18c2bdc
7
8 games-strategy/0ad: remove old broken versions
9
10 Keep 0.0.24_alpha_pre20210116040036-r2 temporarily just
11 in case.
12
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 games-strategy/0ad/0ad-0.0.23_alpha.ebuild | 147 ------------------
16 games-strategy/0ad/0ad-0.0.23b_alpha.ebuild | 148 ------------------
17 .../0ad-0.0.24_alpha_pre20210116040036-r1.ebuild | 170 ---------------------
18 games-strategy/0ad/Manifest | 4 +-
19 4 files changed, 2 insertions(+), 467 deletions(-)
20
21 diff --git a/games-strategy/0ad/0ad-0.0.23_alpha.ebuild b/games-strategy/0ad/0ad-0.0.23_alpha.ebuild
22 deleted file mode 100644
23 index 0e44c4e36fb..00000000000
24 --- a/games-strategy/0ad/0ad-0.0.23_alpha.ebuild
25 +++ /dev/null
26 @@ -1,147 +0,0 @@
27 -# Copyright 1999-2018 Gentoo Foundation
28 -# Distributed under the terms of the GNU General Public License v2
29 -
30 -EAPI=6
31 -
32 -WX_GTK_VER="3.0"
33 -
34 -PYTHON_COMPAT=( python2_7 )
35 -PYTHON_REQ_USE="threads,ssl"
36 -
37 -inherit eutils wxwidgets toolchain-funcs gnome2-utils python-any-r1
38 -
39 -MY_P=0ad-${PV/_/-}
40 -DESCRIPTION="A free, real-time strategy game"
41 -HOMEPAGE="https://play0ad.com/"
42 -SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-build.tar.xz"
43 -
44 -LICENSE="GPL-2 LGPL-2.1 MIT CC-BY-SA-3.0 ZLIB"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~x86"
47 -IUSE="editor +lobby nvtt pch test"
48 -RESTRICT="test"
49 -
50 -RDEPEND="
51 - dev-libs/boost:=
52 - dev-libs/icu:=
53 - dev-libs/libsodium
54 - dev-libs/libxml2
55 - dev-libs/nspr
56 - ~games-strategy/0ad-data-${PV}
57 - media-libs/libpng:0
58 - media-libs/libsdl2[X,opengl,video]
59 - media-libs/libvorbis
60 - media-libs/openal
61 - net-libs/enet:1.3
62 - net-libs/miniupnpc:=
63 - net-misc/curl
64 - sys-libs/zlib
65 - virtual/jpeg:0
66 - virtual/opengl
67 - x11-libs/libX11
68 - x11-libs/libXcursor
69 - editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
70 - lobby? ( >=net-libs/gloox-1.0.20 )
71 - nvtt? ( media-gfx/nvidia-texture-tools )"
72 -DEPEND="${RDEPEND}
73 - ${PYTHON_DEPS}
74 - virtual/pkgconfig
75 - test? ( dev-lang/perl )"
76 -
77 -S="${WORKDIR}/${MY_P}"
78 -
79 -pkg_setup() {
80 - python-any-r1_pkg_setup
81 - use editor && setup-wxwidgets
82 -}
83 -
84 -PATCHES=(
85 - "${FILESDIR}"/${PN}-0.0.21_alpha-gentoo.patch
86 -)
87 -
88 -src_configure() {
89 - local myconf=(
90 - --with-system-nvtt
91 - --with-system-miniupnpc
92 - --minimal-flags
93 - $(usex nvtt "" "--without-nvtt")
94 - $(usex pch "" "--without-pch")
95 - $(usex test "" "--without-tests")
96 - $(usex editor "--atlas" "")
97 - $(usex lobby "" "--without-lobby")
98 - --collada
99 - --bindir="/usr/bin"
100 - --libdir="/usr/$(get_libdir)"/${PN}
101 - --datadir="/usr/share/${PN}"
102 - )
103 -
104 - # stock premake4 does not work, use the shipped one
105 - emake -C "${S}"/build/premake/premake4/build/gmake.unix
106 -
107 - # regenerate scripts.c so our patch applies
108 - cd "${S}"/build/premake/premake4 || die
109 - "${S}"/build/premake/premake4/bin/release/premake4 embed || die
110 -
111 - # rebuild premake again... this is the most stupid build system
112 - emake -C "${S}"/build/premake/premake4/build/gmake.unix clean
113 - emake -C "${S}"/build/premake/premake4/build/gmake.unix
114 -
115 - # run premake to create build scripts
116 - cd "${S}"/build/premake || die
117 - "${S}"/build/premake/premake4/bin/release/premake4 \
118 - --file="premake4.lua" \
119 - --outpath="../workspaces/gcc/" \
120 - --platform=$(usex amd64 "x64" "x32") \
121 - --os=linux \
122 - "${myconf[@]}" \
123 - gmake || die "Premake failed"
124 -}
125 -
126 -src_compile() {
127 - tc-export AR
128 -
129 - # build bundled and patched spidermonkey
130 - cd libraries/source/spidermonkey || die
131 - JOBS="${MAKEOPTS}" ./build.sh || die
132 - cd "${S}" || die
133 -
134 - # build 3rd party fcollada
135 - emake -C libraries/source/fcollada/src
136 -
137 - # build 0ad
138 - emake -C build/workspaces/gcc verbose=1
139 -}
140 -
141 -src_test() {
142 - cd binaries/system || die
143 - ./test -libdir "${S}/binaries/system" || die "test phase failed"
144 -}
145 -
146 -src_install() {
147 - newbin binaries/system/pyrogenesis 0ad
148 - use editor && newbin binaries/system/ActorEditor 0ad-ActorEditor
149 -
150 - insinto /usr/share/${PN}
151 - doins -r binaries/data/l10n
152 -
153 - exeinto /usr/$(get_libdir)/${PN}
154 - doexe binaries/system/libCollada.so
155 - doexe libraries/source/spidermonkey/lib/*.so
156 - use editor && doexe binaries/system/libAtlasUI.so
157 -
158 - dodoc binaries/system/readme.txt
159 - doicon -s 128 build/resources/${PN}.png
160 - make_desktop_entry ${PN}
161 -}
162 -
163 -pkg_preinst() {
164 - gnome2_icon_savelist
165 -}
166 -
167 -pkg_postinst() {
168 - gnome2_icon_cache_update
169 -}
170 -
171 -pkg_postrm() {
172 - gnome2_icon_cache_update
173 -}
174
175 diff --git a/games-strategy/0ad/0ad-0.0.23b_alpha.ebuild b/games-strategy/0ad/0ad-0.0.23b_alpha.ebuild
176 deleted file mode 100644
177 index 174ce6ff0cd..00000000000
178 --- a/games-strategy/0ad/0ad-0.0.23b_alpha.ebuild
179 +++ /dev/null
180 @@ -1,148 +0,0 @@
181 -# Copyright 1999-2020 Gentoo Authors
182 -# Distributed under the terms of the GNU General Public License v2
183 -
184 -EAPI=6
185 -
186 -WX_GTK_VER="3.0"
187 -
188 -PYTHON_COMPAT=( python2_7 )
189 -PYTHON_REQ_USE="threads,ssl"
190 -
191 -inherit eutils wxwidgets toolchain-funcs gnome2-utils python-any-r1
192 -
193 -MY_P=0ad-${PV/_/-}
194 -DESCRIPTION="A free, real-time strategy game"
195 -HOMEPAGE="https://play0ad.com/"
196 -SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-build.tar.xz"
197 -
198 -LICENSE="GPL-2 LGPL-2.1 MIT CC-BY-SA-3.0 ZLIB"
199 -SLOT="0"
200 -KEYWORDS="~amd64 ~arm64 ~x86"
201 -IUSE="editor +lobby nvtt pch test"
202 -RESTRICT="test"
203 -
204 -RDEPEND="
205 - dev-libs/boost:=
206 - dev-libs/icu:=
207 - dev-libs/libsodium
208 - dev-libs/libxml2
209 - dev-libs/nspr
210 - ~games-strategy/0ad-data-${PV}
211 - media-libs/libpng:0
212 - media-libs/libsdl2[X,opengl,video]
213 - media-libs/libvorbis
214 - media-libs/openal
215 - net-libs/enet:1.3
216 - net-libs/miniupnpc:=
217 - net-misc/curl
218 - sys-libs/zlib
219 - virtual/jpeg:0
220 - virtual/opengl
221 - x11-libs/libX11
222 - x11-libs/libXcursor
223 - editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
224 - lobby? ( >=net-libs/gloox-1.0.20 )
225 - nvtt? ( media-gfx/nvidia-texture-tools )"
226 -DEPEND="${RDEPEND}
227 - ${PYTHON_DEPS}
228 - virtual/pkgconfig
229 - test? ( dev-lang/perl )"
230 -
231 -S="${WORKDIR}/${MY_P}"
232 -
233 -pkg_setup() {
234 - python-any-r1_pkg_setup
235 - use editor && setup-wxwidgets
236 -}
237 -
238 -PATCHES=(
239 - "${FILESDIR}"/${PN}-0.0.21_alpha-gentoo.patch
240 - "${FILESDIR}"/${PN}-0.0.23b-header_includes_fix.patch
241 -)
242 -
243 -src_configure() {
244 - local myconf=(
245 - --with-system-nvtt
246 - --with-system-miniupnpc
247 - --minimal-flags
248 - $(usex nvtt "" "--without-nvtt")
249 - $(usex pch "" "--without-pch")
250 - $(usex test "" "--without-tests")
251 - $(usex editor "--atlas" "")
252 - $(usex lobby "" "--without-lobby")
253 - --collada
254 - --bindir="/usr/bin"
255 - --libdir="/usr/$(get_libdir)"/${PN}
256 - --datadir="/usr/share/${PN}"
257 - )
258 -
259 - # stock premake4 does not work, use the shipped one
260 - emake -C "${S}"/build/premake/premake4/build/gmake.unix
261 -
262 - # regenerate scripts.c so our patch applies
263 - cd "${S}"/build/premake/premake4 || die
264 - "${S}"/build/premake/premake4/bin/release/premake4 embed || die
265 -
266 - # rebuild premake again... this is the most stupid build system
267 - emake -C "${S}"/build/premake/premake4/build/gmake.unix clean
268 - emake -C "${S}"/build/premake/premake4/build/gmake.unix
269 -
270 - # run premake to create build scripts
271 - cd "${S}"/build/premake || die
272 - "${S}"/build/premake/premake4/bin/release/premake4 \
273 - --file="premake4.lua" \
274 - --outpath="../workspaces/gcc/" \
275 - --platform=$(usex amd64 "x64" "x32") \
276 - --os=linux \
277 - "${myconf[@]}" \
278 - gmake || die "Premake failed"
279 -}
280 -
281 -src_compile() {
282 - tc-export AR
283 -
284 - # build bundled and patched spidermonkey
285 - cd libraries/source/spidermonkey || die
286 - JOBS="${MAKEOPTS}" ./build.sh || die
287 - cd "${S}" || die
288 -
289 - # build 3rd party fcollada
290 - emake -C libraries/source/fcollada/src
291 -
292 - # build 0ad
293 - emake -C build/workspaces/gcc verbose=1
294 -}
295 -
296 -src_test() {
297 - cd binaries/system || die
298 - ./test -libdir "${S}/binaries/system" || die "test phase failed"
299 -}
300 -
301 -src_install() {
302 - newbin binaries/system/pyrogenesis 0ad
303 - use editor && newbin binaries/system/ActorEditor 0ad-ActorEditor
304 -
305 - insinto /usr/share/${PN}
306 - doins -r binaries/data/l10n
307 -
308 - exeinto /usr/$(get_libdir)/${PN}
309 - doexe binaries/system/libCollada.so
310 - doexe libraries/source/spidermonkey/lib/*.so
311 - use editor && doexe binaries/system/libAtlasUI.so
312 -
313 - dodoc binaries/system/readme.txt
314 - doicon -s 128 build/resources/${PN}.png
315 - make_desktop_entry ${PN}
316 -}
317 -
318 -pkg_preinst() {
319 - gnome2_icon_savelist
320 -}
321 -
322 -pkg_postinst() {
323 - gnome2_icon_cache_update
324 -}
325 -
326 -pkg_postrm() {
327 - gnome2_icon_cache_update
328 -}
329
330 diff --git a/games-strategy/0ad/0ad-0.0.24_alpha_pre20210116040036-r1.ebuild b/games-strategy/0ad/0ad-0.0.24_alpha_pre20210116040036-r1.ebuild
331 deleted file mode 100644
332 index a138651fac2..00000000000
333 --- a/games-strategy/0ad/0ad-0.0.24_alpha_pre20210116040036-r1.ebuild
334 +++ /dev/null
335 @@ -1,170 +0,0 @@
336 -# Copyright 2014-2021 Gentoo Authors
337 -# Distributed under the terms of the GNU General Public License v2
338 -
339 -EAPI=7
340 -
341 -WX_GTK_VER="3.0-gtk3"
342 -inherit desktop toolchain-funcs wxwidgets xdg
343 -
344 -if [[ ${PV} == 9999 ]]; then
345 - inherit git-r3
346 -
347 - EGIT_REPO_URI="https://github.com/0ad/0ad"
348 - ZEROAD_GIT_REVISION=""
349 -elif [[ ${PV} == *_pre* ]]; then
350 - ZEROAD_GIT_REVISION="c7d07d3979f969b969211a5e5748fa775f6768a7"
351 -else
352 - MY_P="0ad-${PV/_/-}"
353 -fi
354 -
355 -DESCRIPTION="A free, real-time strategy game"
356 -HOMEPAGE="https://play0ad.com/"
357 -if [[ ${PV} == 9999 ]]; then
358 - SRC_URI=""
359 -elif [[ ${PV} == *_pre* ]]; then
360 - SRC_URI="https://github.com/0ad/0ad/archive/${ZEROAD_GIT_REVISION}.tar.gz -> ${P}.tar.gz"
361 -else
362 - SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-build.tar.xz"
363 -fi
364 -
365 -LICENSE="CC-BY-SA-3.0 GPL-2 LGPL-2.1 MIT ZLIB"
366 -SLOT="0"
367 -KEYWORDS="~amd64 ~x86"
368 -IUSE="editor +lobby nvtt pch test"
369 -RESTRICT="test"
370 -
371 -BDEPEND="virtual/pkgconfig
372 - test? ( dev-lang/perl )"
373 -DEPEND="
374 - dev-libs/boost:=
375 - dev-libs/icu:=
376 - dev-libs/libfmt:0=
377 - dev-libs/libsodium
378 - dev-libs/libxml2
379 - media-libs/libpng:0
380 - media-libs/libsdl2[X,opengl,video]
381 - media-libs/libvorbis
382 - media-libs/openal
383 - net-libs/enet:1.3
384 - net-libs/miniupnpc:=
385 - net-misc/curl
386 - sys-libs/zlib
387 - virtual/opengl
388 - x11-libs/libX11
389 - editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
390 - lobby? ( >=net-libs/gloox-1.0.20 )
391 - nvtt? ( >=media-gfx/nvidia-texture-tools-2.1.0 )"
392 -
393 -RDEPEND="${DEPEND}"
394 -PDEPEND="~games-strategy/0ad-data-${PV}"
395 -
396 -if [[ ${PV} == 9999 ]]; then
397 - S="${WORKDIR}/${P}"
398 -elif [[ ${PV} == *_pre* ]]; then
399 - S="${WORKDIR}/${PN}-${ZEROAD_GIT_REVISION}"
400 -else
401 - S="${WORKDIR}/${MY_P}"
402 -fi
403 -
404 -PATCHES=(
405 - "${FILESDIR}/${PN}-0.0.24_alpha_pre20210116040036-build.patch"
406 -)
407 -
408 -pkg_setup() {
409 - use editor && setup-wxwidgets
410 -}
411 -
412 -src_prepare() {
413 - default
414 -
415 - sed -i -e "/--build/d" libraries/source/spidermonkey/build.sh || die
416 -}
417 -
418 -src_configure() {
419 - local myconf=(
420 - --minimal-flags
421 - $(usex nvtt "" "--without-nvtt")
422 - $(usex pch "" "--without-pch")
423 - $(usex test "" "--without-tests")
424 - $(usex editor "--atlas" "")
425 - $(usex lobby "" "--without-lobby")
426 - --bindir="/usr/bin"
427 - --libdir="/usr/$(get_libdir)"/${PN}
428 - --datadir="/usr/share/${PN}"
429 - )
430 -
431 - tc-export CC CXX
432 -
433 - # stock premake5 does not work, use the shipped one
434 - emake -C "${S}"/build/premake/premake5/build/gmake2.unix
435 -
436 - # regenerate scripts.c so our patch applies
437 - cd "${S}"/build/premake/premake5 || die
438 - "${S}"/build/premake/premake5/bin/release/premake5 embed || die
439 -
440 - # rebuild premake again... this is the most stupid build system
441 - emake -C "${S}"/build/premake/premake5/build/gmake2.unix clean
442 - emake -C "${S}"/build/premake/premake5/build/gmake2.unix
443 -
444 - # run premake to create build scripts
445 - cd "${S}"/build/premake || die
446 - "${S}"/build/premake/premake5/bin/release/premake5 \
447 - --file="premake5.lua" \
448 - --outpath="../workspaces/gcc/" \
449 - --os=linux \
450 - "${myconf[@]}" \
451 - gmake2 || die "Premake failed"
452 -}
453 -
454 -src_compile() {
455 - tc-export AR
456 -
457 - # build 3rd party fcollada
458 - einfo "Building bundled fcollada"
459 - emake -C libraries/source/fcollada/src
460 -
461 - # build bundled nvtt
462 - # nvtt is abandoned upstream and 0ad have forked it
463 - # and added fixes. Use their copy.
464 - # bug #768930
465 - if use nvtt ; then
466 - cd libraries/source/nvtt || die
467 - elog "Building bundled nvtt (bug #768930)"
468 - ./build.sh || die "Failed to build bundled nvtt"
469 - cd "${S}" || die
470 - fi
471 -
472 - # build bundled spidermonkey
473 - # We genuinely can't use the system SpiderMonkey right now.
474 - # Breakages occur even on minor bumps in upstream SM,
475 - # e.g. bug #768840.
476 - cd libraries/source/spidermonkey || die
477 - elog "Building bundled SpiderMonkey (bug #768840)"
478 - XARGS="${EPREFIX}/usr/bin/xargs" ./build.sh || die "Failed to build bundled SpiderMonkey"
479 - cd "${S}" || die
480 -
481 - # build 0ad
482 - elog "Building 0ad"
483 - emake -C build/workspaces/gcc verbose=1
484 -}
485 -
486 -src_test() {
487 - cd binaries/system || die
488 - ./test -libdir "${S}/binaries/system" || die "test phase failed"
489 -}
490 -
491 -src_install() {
492 - newbin binaries/system/pyrogenesis 0ad
493 - use editor && newbin binaries/system/ActorEditor 0ad-ActorEditor
494 -
495 - insinto /usr/share/${PN}
496 - doins -r binaries/data/l10n
497 -
498 - exeinto /usr/$(get_libdir)/${PN}
499 - doexe binaries/system/libCollada.so
500 - use editor && doexe binaries/system/libAtlasUI.so
501 -
502 - dodoc binaries/system/readme.txt
503 - doicon -s 128 build/resources/${PN}.png
504 - make_desktop_entry ${PN}
505 -}
506
507 diff --git a/games-strategy/0ad/Manifest b/games-strategy/0ad/Manifest
508 index de55f565987..5d2ea27d724 100644
509 --- a/games-strategy/0ad/Manifest
510 +++ b/games-strategy/0ad/Manifest
511 @@ -1,3 +1,3 @@
512 -DIST 0ad-0.0.23-alpha-unix-build.tar.xz 31907988 BLAKE2B 567b9e1b5cd653206194e042f4f0859cd4f9afe75d52d3f480a328b76fdcdd746254502fbf284f790b4932c912ff31453bbc8c986c879ad76baa3d2a5db802c9 SHA512 4a1c86b19e0d8ec7d9b8bf75428df0255f95e7f991f419734f9b6ddc288a537405a34c5d7081f1a97475155c49013af85dee5c0265c35c7dbc003b46637a03d7
513 -DIST 0ad-0.0.23b-alpha-unix-build.tar.xz 31922812 BLAKE2B db7d6bf1a2bb084870b914cf974bfdb19812ff6f9391e5bc5213ae215fc670b77bd4508a5432aa3e47bf327bd37d4bb14961ab3332b165b53327c3f01a935ac1 SHA512 82934313c46c4fd89e3841d5bbf901904abbd2108e9749529d7282bd24ac53b9e6878681c06e6019f4d8ec0e425c28300b0aafc9610a66a331777ffb58ed6135
514 DIST 0ad-0.0.24_alpha_pre20210116040036.tar.gz 2562395684 BLAKE2B 03d6655f7aa1f2f91a87536a7f2afa465585856c4209ddc05e666e1e5596416883596331118ac4257ff314b04d8a5c08821eaa6ae76e5d3095146ab04f8c79ed SHA512 e1239a56b184a87708c87fc03ca41190a16d813e495c5d81ee073df98761f1524a23902e5d03a21a1b1f657b496fce6eeee4a5ef22eee30f70fbe3b0dbd44510
515 +DIST 0ad-0.0.24b-alpha-unix-build.tar.xz 75546740 BLAKE2B a724abba6bed4b580670588e9dcfe0f75f6cef0fbde6ad666356e96213c685932edd0a1daafb5dd04206870c2c8222340c9c51e83076ec2911cbb5377ca00666 SHA512 8173d393eb1bc57c38bef0076ba973ef46c877c06644365189c0887cd3152adba51d26b553e42221fd14343e9830a3a275bfcd9b28f66281e282ea3f247730ea
516 +DIST 0ad-0.0.24b-alpha-unix-data.tar.xz 828553992 BLAKE2B 2081225d88d475ed0899648994a900677bc3280bb2ba6cf92354ece82b90ddcefddb48458fa23e2de97100e58f4db8db408d4b50d0306a8c3efe47d263064bf0 SHA512 d7804d25ddf376028f230a31c6fc1201dfa366b3d5434569a1a7852bb4c400fb14e5c8934c5d6c6295320cf2e62c64be83b1e3c4c27fd116115bfe7d01106726