Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/armagetronad/files/, games-action/armagetronad/
Date: Sun, 02 May 2021 19:32:45
Message-Id: 1619983956.df09de6882ee27954b1ec0da8291f8e2972afce6.slyfox@gentoo
1 commit: df09de6882ee27954b1ec0da8291f8e2972afce6
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 2 19:32:18 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun May 2 19:32:36 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df09de68
7
8 games-action/armagetronad: bump up to 0.2.9.1.0
9
10 Fix-by: Alan Swanson
11 Closes: https://bugs.gentoo.org/764983
12 Closes: https://bugs.gentoo.org/739070
13 Package-Manager: Portage-3.0.18, Repoman-3.0.3
14 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
15
16 games-action/armagetronad/Manifest | 1 +
17 .../armagetronad/armagetronad-0.2.9.1.0.ebuild | 63 ++++++++++++++++++++++
18 .../files/armagetronad-0.2.9.1.0-AR.patch | 10 ++++
19 3 files changed, 74 insertions(+)
20
21 diff --git a/games-action/armagetronad/Manifest b/games-action/armagetronad/Manifest
22 index d162f158f53..f5e1a88d326 100644
23 --- a/games-action/armagetronad/Manifest
24 +++ b/games-action/armagetronad/Manifest
25 @@ -1 +1,2 @@
26 DIST armagetronad-0.2.8.3.3.src.tar.bz2 1857868 BLAKE2B 60a8fffe61903cb1fa4b188ae6c72ad842e5395b8a37276a6b84018e5393e1294e6ef5438fc7e029d02bfd7172eb81973781e7fbb670c3c7fbacae46d19de409 SHA512 05dd7db10efdac0e681133d07384b0e3c2edea328433f1d906e36b5f70960bf502df8d496967981b6bd67e1a119af9a5bbd71b0c824f790921deb3165165dc3f
27 +DIST armagetronad-0.2.9.1.0.tbz 1943758 BLAKE2B ed4ecef19125d69faf402829b88288124dd364eafc836be3848727c2bfbd87ca29e18b48448dc868fb995947b2daae150c3b9f5dcf048d0d90d442f5bcf425f0 SHA512 8c2b9cba7d480dec6d7d60984327a5d45c8c87b968fb81a1e192973e6826ddb66c8d41ca82bb04d80da5c6fa2152d19dd890957dabc6cc5ce2d4dffbc45d1f65
28
29 diff --git a/games-action/armagetronad/armagetronad-0.2.9.1.0.ebuild b/games-action/armagetronad/armagetronad-0.2.9.1.0.ebuild
30 new file mode 100644
31 index 00000000000..53ba592280d
32 --- /dev/null
33 +++ b/games-action/armagetronad/armagetronad-0.2.9.1.0.ebuild
34 @@ -0,0 +1,63 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit autotools desktop xdg-utils
41 +
42 +DESCRIPTION="Fast-paced 3D lightcycle game based on Tron"
43 +HOMEPAGE="http://armagetronad.org/"
44 +SRC_URI="https://launchpad.net/armagetronad/$(ver_cut 1-3)/${PV}/+download/armagetronad-${PV}.tbz"
45 +
46 +LICENSE="GPL-2+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="dedicated sound"
50 +
51 +RDEPEND="
52 + dev-libs/libxml2
53 + !dedicated? (
54 + media-libs/libpng:0=
55 + media-libs/libsdl[X,opengl,video,sound?]
56 + media-libs/sdl-image[jpeg,png]
57 + virtual/glu
58 + virtual/opengl
59 + sound? ( media-libs/sdl-mixer )
60 + )"
61 +DEPEND=${RDEPEND}
62 +
63 +PATCHES=("${FILESDIR}"/${P}-AR.patch)
64 +
65 +src_prepare() {
66 + default
67 +
68 + eautoreconf
69 +}
70 +
71 +src_configure() {
72 + # --enable-games just messes up paths
73 + econf \
74 + $(use_enable dedicated) \
75 + $(use_enable sound music) \
76 + --disable-sysinstall \
77 + --disable-useradd \
78 + --disable-uninstall \
79 + --disable-games
80 +}
81 +
82 +src_install() {
83 + default
84 +
85 + # misplaced desktop-file/icons
86 + rm -r "${ED}"/usr/share/${PN}/desktop || die
87 + doicon -s 48 desktop/icons/48x48/armagetronad.png
88 + make_desktop_entry ${PN}
89 +}
90 +
91 +pkg_postinst() {
92 + xdg_icon_cache_update
93 +}
94 +
95 +pkg_postrm() {
96 + xdg_icon_cache_update
97 +}
98
99 diff --git a/games-action/armagetronad/files/armagetronad-0.2.9.1.0-AR.patch b/games-action/armagetronad/files/armagetronad-0.2.9.1.0-AR.patch
100 new file mode 100644
101 index 00000000000..5f48ded3f7d
102 --- /dev/null
103 +++ b/games-action/armagetronad/files/armagetronad-0.2.9.1.0-AR.patch
104 @@ -0,0 +1,10 @@
105 +--- a/configure.ac
106 ++++ b/configure.ac
107 +@@ -28,6 +28,7 @@ dnl those two are apparently included in AC_CANONICAL_TARGET
108 + dnl AC_CANONICAL_BUILD
109 + dnl AC_CANONICAL_HOST
110 +
111 ++AM_PROG_AR
112 + AC_PROG_RANLIB
113 + AM_INIT_AUTOMAKE([subdir-objects tar-ustar])
114 +