Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/maxr/
Date: Sun, 28 Feb 2021 12:26:44
Message-Id: 1614515171.db8ee6d88fb1f2838180c46ac326473a57ad517a.asturm@gentoo
1 commit: db8ee6d88fb1f2838180c46ac326473a57ad517a
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 20:32:04 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 12:26:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db8ee6d8
7
8 games-strategy/maxr: EAPI-7 bump, switch to cmake.eclass
9
10 Package-Manager: Portage-3.0.16, Repoman-3.0.2
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 games-strategy/maxr/maxr-0.2.9.ebuild | 23 +++++++++++------------
14 1 file changed, 11 insertions(+), 12 deletions(-)
15
16 diff --git a/games-strategy/maxr/maxr-0.2.9.ebuild b/games-strategy/maxr/maxr-0.2.9.ebuild
17 index 4e1287280ad..ad76a5a4f64 100644
18 --- a/games-strategy/maxr/maxr-0.2.9.ebuild
19 +++ b/games-strategy/maxr/maxr-0.2.9.ebuild
20 @@ -1,12 +1,12 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=6
26 +EAPI=7
27
28 -inherit cmake-utils desktop gnome2-utils
29 +inherit cmake desktop xdg-utils
30
31 DESCRIPTION="Mechanized Assault and Exploration Reloaded"
32 -HOMEPAGE="https://www.maxr.org"
33 +HOMEPAGE="https://www.maxr.org/"
34 SRC_URI="https://www.maxr.org/downloads/${P}.tar.gz"
35
36 LICENSE="GPL-2 FDL-1.2+"
37 @@ -14,26 +14,25 @@ SLOT="0"
38 KEYWORDS="~amd64 ~x86"
39 IUSE="dedicated"
40
41 -RDEPEND="media-libs/libsdl2[video]
42 +RDEPEND="
43 + media-libs/libsdl2[video]
44 media-libs/sdl2-mixer[vorbis]
45 media-libs/sdl2-net"
46 DEPEND="${RDEPEND}"
47
48 src_configure() {
49 - mycmakeargs=(
50 + local mycmakeargs=(
51 -DMAXR_BUILD_DEDICATED_SERVER=$(usex dedicated)
52 -DCMAKE_BUILD_TYPE=Release
53 )
54 -
55 - cmake-utils_src_configure
56 + cmake_src_configure
57 }
58
59 src_install() {
60 - cmake-utils_src_install
61 + cmake_src_install
62 doicon -s 128 data/${PN}.png
63 make_desktop_entry ${PN} "Mechanized Assault and Exploration Reloaded"
64 }
65
66 -pkg_preinst() { gnome2_icon_savelist; }
67 -pkg_postinst() { gnome2_icon_cache_update; }
68 -pkg_postrm() { gnome2_icon_cache_update; }
69 +pkg_postinst() { xdg_icon_cache_update; }
70 +pkg_postrm() { xdg_icon_cache_update; }