Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/armagetronad/
Date: Mon, 14 Jun 2021 15:50:01
Message-Id: 1623685669.ad66a3fe06a3fc02c8f76bcdd63f38400f602b0f.ionen@gentoo
1 commit: ad66a3fe06a3fc02c8f76bcdd63f38400f602b0f
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 14 15:28:49 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 14 15:47:49 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad66a3fe
7
8 games-action/armagetronad: restore -j1, fix dedicated, tidy
9
10 j1 was removed for bug #588104, but turns out still needed for
11 install until proper fix (bug #698020).
12
13 No longer attempt to remove desktop/ when USE=dedicated (bug #716442).
14
15 Bug: https://bugs.gentoo.org/588104
16 Closes: https://bugs.gentoo.org/698020
17 Closes: https://bugs.gentoo.org/716442
18 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
19
20 .../armagetronad/armagetronad-0.2.9.1.0.ebuild | 47 +++++++++++-----------
21 1 file changed, 24 insertions(+), 23 deletions(-)
22
23 diff --git a/games-action/armagetronad/armagetronad-0.2.9.1.0.ebuild b/games-action/armagetronad/armagetronad-0.2.9.1.0.ebuild
24 index 53ba592280d..93180672cd3 100644
25 --- a/games-action/armagetronad/armagetronad-0.2.9.1.0.ebuild
26 +++ b/games-action/armagetronad/armagetronad-0.2.9.1.0.ebuild
27 @@ -3,7 +3,7 @@
28
29 EAPI=7
30
31 -inherit autotools desktop xdg-utils
32 +inherit autotools desktop
33
34 DESCRIPTION="Fast-paced 3D lightcycle game based on Tron"
35 HOMEPAGE="http://armagetronad.org/"
36 @@ -24,9 +24,11 @@ RDEPEND="
37 virtual/opengl
38 sound? ( media-libs/sdl-mixer )
39 )"
40 -DEPEND=${RDEPEND}
41 +DEPEND="${RDEPEND}"
42
43 -PATCHES=("${FILESDIR}"/${P}-AR.patch)
44 +PATCHES=(
45 + "${FILESDIR}"/${P}-AR.patch
46 +)
47
48 src_prepare() {
49 default
50 @@ -35,29 +37,28 @@ src_prepare() {
51 }
52
53 src_configure() {
54 - # --enable-games just messes up paths
55 - econf \
56 - $(use_enable dedicated) \
57 - $(use_enable sound music) \
58 - --disable-sysinstall \
59 - --disable-useradd \
60 - --disable-uninstall \
61 + local econfargs=(
62 + $(use_enable dedicated)
63 + $(use_enable sound music)
64 + # following options only mess with paths and users
65 --disable-games
66 + --disable-sysinstall
67 + --disable-uninstall
68 + --disable-useradd
69 + )
70 + econf ${econfargs[@]}
71 }
72
73 src_install() {
74 - default
75 -
76 - # misplaced desktop-file/icons
77 - rm -r "${ED}"/usr/share/${PN}/desktop || die
78 - doicon -s 48 desktop/icons/48x48/armagetronad.png
79 - make_desktop_entry ${PN}
80 -}
81 -
82 -pkg_postinst() {
83 - xdg_icon_cache_update
84 -}
85 + # long history of being broken without -j1 (bug #330705,698020)
86 + # do not remove (again) without a proper fix or extensive tests
87 + emake -j1 DESTDIR="${D}" install
88 + einstalldocs
89
90 -pkg_postrm() {
91 - xdg_icon_cache_update
92 + # handle misplaced .desktop / icons
93 + if ! use dedicated; then
94 + rm -r "${ED}"/usr/share/${PN}/desktop || die
95 + doicon desktop/icons/48x48/armagetronad.png
96 + make_desktop_entry ${PN}
97 + fi
98 }