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-rpg/zsxd/
Date: Sun, 28 Feb 2021 12:26:43
Message-Id: 1614515170.732804afb7917f14b586ff122d189d9439f30840.asturm@gentoo
1 commit: 732804afb7917f14b586ff122d189d9439f30840
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 09:00:53 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 12:26:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=732804af
7
8 games-rpg/zsxd: cmake.eclass, xdg.eclass, https, fix tarball SRC_URI
9
10 Need to set CMAKE_MAKEFILE_GENERATOR=emake, otherwise ninja fails with:
11 ninja: error: build.ninja:125: bad $-escape (literal $ must be written as $$)
12
13 Closes: https://bugs.gentoo.org/691358
14 Package-Manager: Portage-3.0.16, Repoman-3.0.2
15 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
16
17 games-rpg/zsxd/Manifest | 2 +-
18 games-rpg/zsxd/zsxd-1.9.0-r1.ebuild | 42 +++++++++++++++----------------------
19 2 files changed, 18 insertions(+), 26 deletions(-)
20
21 diff --git a/games-rpg/zsxd/Manifest b/games-rpg/zsxd/Manifest
22 index aad1e550b8c..5e3a5f7c19a 100644
23 --- a/games-rpg/zsxd/Manifest
24 +++ b/games-rpg/zsxd/Manifest
25 @@ -1 +1 @@
26 -DIST zsxd-1.9.0.tar.gz 3706125 BLAKE2B 3d83fff945bfecc387b79126628e3d1f45a461ae7b58b702dbe0c0f1799d6b57c53ecd4b1bfeb7a9ccebd279a3b299da8c328a2aca3126bea09f4865e1bfea1e SHA512 cecb8b4ff40b7129bb516cf71e9bbbc92e10ace944c735eb2885dbf0e0b8adef80491c1874ee91efb2c9779b819d0217639fe85f9e3a085c980af6a2972e571e
27 +DIST zsxd-zsxd-1.9.0.tar.gz 3690390 BLAKE2B c5b6a671c5b5f8ba702ba23f447c0858aa870730a752761f65092b8e1f4a0879f2877fabf0e52a71be380ff25628f0be94f01f6a02009bfe4f7d1952f50ba5f4 SHA512 a457374adc7a8f4b7872b6f6693051d1499320f4349d55009e581132b62f5eebd6e35cc80c1ac14c5c80b74145fb7ac26b312f3f329df71c36e71d9a38383f05
28
29 diff --git a/games-rpg/zsxd/zsxd-1.9.0-r1.ebuild b/games-rpg/zsxd/zsxd-1.9.0-r1.ebuild
30 index 76a8fc0fe7f..b8e0195e468 100644
31 --- a/games-rpg/zsxd/zsxd-1.9.0-r1.ebuild
32 +++ b/games-rpg/zsxd/zsxd-1.9.0-r1.ebuild
33 @@ -1,13 +1,15 @@
34 -# Copyright 1999-2016 Gentoo Foundation
35 +# Copyright 1999-2021 Gentoo Authors
36 # Distributed under the terms of the GNU General Public License v2
37
38 -EAPI=6
39 +EAPI=7
40
41 -inherit eutils gnome2-utils cmake-utils
42 +CMAKE_MAKEFILE_GENERATOR=emake
43 +inherit cmake desktop xdg
44
45 -DESCRIPTION="A free 2D Zelda fangame parody"
46 -HOMEPAGE="http://www.solarus-games.org/"
47 -SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}.tar.gz"
48 +DESCRIPTION="Free 2D Zelda fangame parody"
49 +HOMEPAGE="https://www.solarus-games.org/"
50 +SRC_URI="https://gitlab.com/solarus-games/${PN}/-/archive/${PN}-${PV}/${PN}-${PN}-${PV}.tar.gz"
51 +S="${WORKDIR}/${PN}-${PN}-${PV}"
52
53 LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3"
54 SLOT="0"
55 @@ -15,14 +17,16 @@ KEYWORDS="~amd64 ~x86"
56 IUSE=""
57 RESTRICT="mirror bindist"
58
59 -RDEPEND=">=games-engines/solarus-1.3.1-r1
60 - <games-engines/solarus-1.4.0"
61 +RDEPEND="
62 + >=games-engines/solarus-1.3.1-r1
63 + <games-engines/solarus-1.4.0
64 +"
65 DEPEND="app-arch/zip"
66
67 DOCS=( ChangeLog readme.txt )
68
69 src_prepare() {
70 - cmake-utils_src_prepare
71 + cmake_src_prepare
72 }
73
74 src_configure() {
75 @@ -30,29 +34,17 @@ src_configure() {
76 -DSOLARUS_INSTALL_DATAROOTDIR="/usr/share"
77 -DSOLARUS_INSTALL_BINDIR="/usr/bin"
78 )
79 - cmake-utils_src_configure
80 -}
81 -
82 -src_compile() {
83 - cmake-utils_src_compile
84 + cmake_src_configure
85 }
86
87 src_install() {
88 - cmake-utils_src_install
89 + cmake_src_install
90 newicon -s 48 build/icons/${PN}_icon_48.png ${PN}.png
91 newicon -s 256 build/icons/${PN}_icon_256.png ${PN}.png
92
93 # install proper wrapper script
94 - rm -f "${ED%/}/usr/bin/${PN}
95 - make_wrapper ${PN} "solarus \"/usr/share/solarus/${PN}\"
96 + rm "${ED}"/usr/bin/${PN} || die
97 + make_wrapper ${PN} "solarus \"/usr/share/solarus/${PN}\""
98
99 make_desktop_entry "${PN}" "Zelda: Mystery of Solarus XD"
100 }
101 -
102 -pkg_preinst() {
103 - gnome2_icon_savelist
104 -}
105 -
106 -pkg_postinst() {
107 - gnome2_icon_cache_update
108 -}