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/dear-esther/
Date: Sun, 18 Jul 2021 05:15:53
Message-Id: 1626585291.441c168b8418a4d482f71df70a371e3f094a464c.ionen@gentoo
1 commit: 441c168b8418a4d482f71df70a371e3f094a464c
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 18 03:57:46 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=441c168b
7
8 games-rpg/dear-esther: hopefully fix install, tidy a bit
9
10 Do not own this game but is known broken because fperms
11 will not take arguments without a leading /
12
13 Also stop calling non-existing gnome2_icon_* in EAPI-7
14
15 Fixes: 2b96c435dc01fed949e8dedf3beb0fe82b32c9f3
16 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
17
18 .../dear-esther/dear-esther-20130608-r1.ebuild | 52 ++++++++--------------
19 1 file changed, 18 insertions(+), 34 deletions(-)
20
21 diff --git a/games-rpg/dear-esther/dear-esther-20130608-r1.ebuild b/games-rpg/dear-esther/dear-esther-20130608-r1.ebuild
22 index b2a07780a45..34dd1adabcd 100644
23 --- a/games-rpg/dear-esther/dear-esther-20130608-r1.ebuild
24 +++ b/games-rpg/dear-esther/dear-esther-20130608-r1.ebuild
25 @@ -3,41 +3,37 @@
26
27 EAPI=7
28
29 -inherit desktop gnome2-utils unpacker wrapper
30 +inherit desktop unpacker wrapper xdg
31 +
32 +MY_TIMESTAMP="${PV:4:2}${PV:6:2}${PV:0:4}"
33
34 -TIMESTAMP="${PV:4:2}${PV:6:2}${PV:0:4}"
35 DESCRIPTION="Ghost story, told using first-person gaming technologies"
36 HOMEPAGE="http://dear-esther.com/"
37 -SRC_URI="dearesther-linux-${TIMESTAMP}-bin"
38 -S="${WORKDIR}"/data
39 +SRC_URI="dearesther-linux-${MY_TIMESTAMP}-bin"
40 +S="${WORKDIR}/data"
41
42 LICENSE="all-rights-reserved"
43 SLOT="0"
44 KEYWORDS="-* ~amd64 ~x86"
45 +RESTRICT="bindist fetch"
46
47 -RESTRICT="bindist fetch splitdebug"
48 -
49 -MYGAMEDIR=opt/${PN}
50 QA_PREBUILT="
51 - ${MYGAMEDIR#/}/dearesther_linux
52 - ${MYGAMEDIR#/}/bin/*.so*
53 -"
54 + opt/${PN}/dearesther_linux
55 + opt/${PN}/bin/*.so*"
56
57 # TODO: unbundle libSDL2
58 RDEPEND="
59 - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
60 - >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
61 - >=media-libs/openal-1.15.1[abi_x86_32(-)]
62 - x11-libs/libX11[abi_x86_32(-)]
63 + media-libs/freetype[abi_x86_32(-)]
64 + media-libs/libsdl[abi_x86_32(-)]
65 + media-libs/openal[abi_x86_32(-)]
66 virtual/opengl[abi_x86_32(-)]
67 -"
68 + x11-libs/libX11[abi_x86_32(-)]"
69 BDEPEND="app-arch/unzip"
70
71 pkg_nofetch() {
72 einfo "Please buy & download ${SRC_URI} from:"
73 einfo " ${HOMEPAGE}"
74 einfo "and move it to your DISTDIR directory."
75 - einfo
76 }
77
78 src_unpack() {
79 @@ -45,26 +41,14 @@ src_unpack() {
80 }
81
82 src_install() {
83 - insinto ${MYGAMEDIR}
84 + insinto /opt/${PN}
85 doins -r bin dearesther platform dearesther_linux
86
87 - doicon -s 256 dearesther.png
88 - make_desktop_entry "${PN}" "Dear Esther" dearesther
89 - make_wrapper ${PN} "./dearesther_linux -game dearesther" "${MYGAMEDIR}" "${MYGAMEDIR}/bin"
90 -
91 - dodoc README-linux.txt
92 -
93 - fperms +x ${MYGAMEDIR}/dearesther_linux
94 -}
95 + fperms +x /opt/${PN}/dearesther_linux
96 + make_wrapper ${PN} "./dearesther_linux -game dearesther" /opt/${PN}{,/bin}
97
98 -pkg_preinst() {
99 - gnome2_icon_savelist
100 -}
101 + newicon dearesther.png ${PN}.png
102 + make_desktop_entry ${PN} "Dear Esther"
103
104 -pkg_postinst() {
105 - gnome2_icon_cache_update
106 -}
107 -
108 -pkg_postrm() {
109 - gnome2_icon_cache_update
110 + dodoc README-linux.txt
111 }