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-rpg/grimrock/
Date: Sun, 18 Jul 2021 05:15:54
Message-Id: 1626585291.c5b6ce931d4492e25dd8eb6ef062e576db2b8586.ionen@gentoo
1 commit: c5b6ce931d4492e25dd8eb6ef062e576db2b8586
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 18 03:37:54 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 18 05:14:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5b6ce93
7
8 games-rpg/grimrock: EAPI 6->7, tidy a bit
9
10 Do not own this version of the game, so trying safe changes.
11
12 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
13
14 games-rpg/grimrock/grimrock-20150707.ebuild | 48 +++++++++++++----------------
15 1 file changed, 22 insertions(+), 26 deletions(-)
16
17 diff --git a/games-rpg/grimrock/grimrock-20150707.ebuild b/games-rpg/grimrock/grimrock-20150707.ebuild
18 index 03275c50c9a..e0950dd5bc0 100644
19 --- a/games-rpg/grimrock/grimrock-20150707.ebuild
20 +++ b/games-rpg/grimrock/grimrock-20150707.ebuild
21 @@ -1,36 +1,35 @@
22 -# Copyright 1999-2018 Gentoo Foundation
23 +# Copyright 1999-2021 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 -EAPI=6
27 +EAPI=7
28
29 -inherit desktop gnome2-utils unpacker
30 +inherit desktop unpacker xdg
31
32 -TIMESTAMP="${PV:0:4}-${PV:4:2}-${PV:6:2}"
33 MY_PN="Grimrock"
34 +MY_TIMESTAMP="${PV:0:4}-${PV:4:2}-${PV:6:2}"
35 +
36 DESCRIPTION="Legend of Grimrock: The ultimate dungeon crawling RPG + modding engine"
37 HOMEPAGE="http://www.grimrock.net/"
38 -SRC_URI="Grimrock-Linux-${TIMESTAMP}.sh"
39 +SRC_URI="Grimrock-Linux-${MY_TIMESTAMP}.sh"
40 +S="${WORKDIR}"
41
42 -SLOT="0"
43 LICENSE="all-rights-reserved"
44 +SLOT="0"
45 KEYWORDS="-* ~amd64 ~x86"
46 -RESTRICT="fetch bindist splitdebug"
47 +RESTRICT="bindist fetch"
48
49 -QA_PREBUILT="/opt/${PN}/${MY_PN}.bin"
50 +QA_PREBUILT="opt/${PN}/${MY_PN}.bin"
51
52 -RDEPEND="media-libs/freeimage
53 +RDEPEND="
54 + media-libs/freeimage
55 media-libs/freetype:2
56 - media-libs/openal
57 media-libs/libsdl2[opengl,sound,video]
58 media-libs/libvorbis
59 + media-libs/openal
60 sys-libs/zlib[minizip]
61 virtual/opengl
62 x11-libs/libX11"
63
64 -DEPEND="app-arch/xz-utils"
65 -
66 -S="${WORKDIR}"
67 -
68 pkg_nofetch() {
69 einfo "Please buy and download ${SRC_URI} from:"
70 einfo " ${HOMEPAGE}"
71 @@ -38,25 +37,26 @@ pkg_nofetch() {
72 }
73
74 src_unpack() {
75 - myarch=$(usex amd64 x86_64 x86)
76 + MY_ARCH=$(usex amd64 x86_64 x86)
77 +
78 unpack_makeself
79
80 local i
81 - for i in subarch instarchive_all instarchive_linux_${myarch}; do
82 - ln -snf "${i}" "${i}.tar.xz" || die
83 - unpack ./"${i}.tar.xz"
84 + for i in subarch instarchive_all instarchive_linux_${MY_ARCH}; do
85 + ln -snf ${i} ${i}.tar.xz || die
86 + unpack ./${i}.tar.xz
87 done
88 }
89
90 src_install() {
91 local dir=/opt/${PN}
92
93 - insinto "${dir}"
94 + insinto ${dir}
95 doins ${PN}.{dat,png}
96
97 - exeinto "${dir}"
98 - newexe ${MY_PN}.bin{.${myarch},}
99 - dosym "../..${dir}"/${MY_PN}.bin /usr/bin/${PN}
100 + exeinto ${dir}
101 + newexe ${MY_PN}.bin{.${MY_ARCH},}
102 + dosym ../..${dir}/${MY_PN}.bin /usr/bin/${PN}
103
104 doicon -s 256 ${PN}.png
105 newicon -s 64 ${MY_PN}.png ${PN}.png
106 @@ -64,7 +64,3 @@ src_install() {
107
108 dodoc README.linux
109 }
110 -
111 -pkg_preinst() { gnome2_icon_savelist; }
112 -pkg_postinst() { gnome2_icon_cache_update; }
113 -pkg_postrm() { gnome2_icon_cache_update; }