1 |
commit: f7274b22fe2f253bc446933430635e30dd05bc61 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 18 04:04:18 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 05:14:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7274b22 |
7 |
|
8 |
games-rpg/to-the-moon: remove use of ARCH in global scope, tidy |
9 |
|
10 |
Was only used for QA_PREBUILT but is still global variance. |
11 |
|
12 |
Do not own this version of the game, so only doing (hopefully) |
13 |
safe changes. |
14 |
|
15 |
Cleaned up DEPEND (which, at most, should've been BDEPEND). While |
16 |
these deps can make sense on early stage packages, it's a bit much |
17 |
for some standalone game. |
18 |
|
19 |
Also stop calling non-existing gnome2_icon_* in EAPI-7. |
20 |
|
21 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
22 |
|
23 |
games-rpg/to-the-moon/to-the-moon-0-r1.ebuild | 53 +++++++++------------------ |
24 |
1 file changed, 17 insertions(+), 36 deletions(-) |
25 |
|
26 |
diff --git a/games-rpg/to-the-moon/to-the-moon-0-r1.ebuild b/games-rpg/to-the-moon/to-the-moon-0-r1.ebuild |
27 |
index 619cdd02666..a5cc9e2b6f8 100644 |
28 |
--- a/games-rpg/to-the-moon/to-the-moon-0-r1.ebuild |
29 |
+++ b/games-rpg/to-the-moon/to-the-moon-0-r1.ebuild |
30 |
@@ -3,27 +3,25 @@ |
31 |
|
32 |
EAPI=7 |
33 |
|
34 |
-inherit desktop gnome2-utils unpacker wrapper |
35 |
+inherit desktop unpacker wrapper |
36 |
+ |
37 |
+MY_PN="ToTheMoon" |
38 |
|
39 |
-MY_PN=ToTheMoon |
40 |
DESCRIPTION="Two doctors traversing the memories of a dying man to fulfill his last wish" |
41 |
HOMEPAGE="http://freebirdgames.com/games/to-the-moon" |
42 |
SRC_URI="${MY_PN}_linux_1389114090.sh" |
43 |
-S="${WORKDIR}"/data |
44 |
+S="${WORKDIR}/data" |
45 |
|
46 |
LICENSE="all-rights-reserved bundled-libs? ( LGPL-2 LGPL-2.1 ZLIB )" |
47 |
SLOT="0" |
48 |
KEYWORDS="~amd64 ~x86" |
49 |
IUSE="bundled-libs" |
50 |
+RESTRICT="bindist fetch" |
51 |
|
52 |
-RESTRICT="fetch bindist splitdebug" |
53 |
- |
54 |
-QA_PREBUILT="opt/${PN}/${MY_PN}.bin*" |
55 |
-if [[ ${ARCH} == "amd64" ]] ; then |
56 |
- QA_PREBUILT="${QA_PREBUILT} opt/${PN}/lib64/*" |
57 |
-else |
58 |
- QA_PREBUILT="${QA_PREBUILT} opt/${PN}/lib/*" |
59 |
-fi |
60 |
+QA_PREBUILT=" |
61 |
+ opt/${PN}/${MY_PN}.bin* |
62 |
+ opt/${PN}/lib/* |
63 |
+ opt/${PN}/lib64/*" |
64 |
|
65 |
# TODO: unbundling sdl-sound breaks the game |
66 |
RDEPEND=" |
67 |
@@ -37,17 +35,11 @@ RDEPEND=" |
68 |
media-libs/sdl2-ttf |
69 |
) |
70 |
" |
71 |
-DEPEND=" |
72 |
- sys-apps/coreutils |
73 |
- sys-apps/grep |
74 |
-" |
75 |
|
76 |
pkg_nofetch() { |
77 |
- einfo |
78 |
einfo "Please buy & download ${SRC_URI} from:" |
79 |
einfo " ${HOMEPAGE}" |
80 |
einfo "and move/link it to your DISTDIR directory." |
81 |
- einfo |
82 |
} |
83 |
|
84 |
src_unpack() { |
85 |
@@ -64,35 +56,24 @@ src_unpack() { |
86 |
|
87 |
src_install() { |
88 |
local dir=/opt/${PN} |
89 |
- local libsuffix=$(usex amd64 "64" "") |
90 |
- local arch=$(usex amd64 "x86_64" "x86") |
91 |
+ local libsuffix=$(usex amd64 64 '') |
92 |
+ local arch=$(usex amd64 x86_64 x86) |
93 |
|
94 |
- insinto "${dir}" |
95 |
+ insinto ${dir} |
96 |
doins -r noarch/{Audio,Data,Fonts,Graphics,Game.ini,mkxp.conf,ToTheMoon.png} |
97 |
|
98 |
- exeinto "${dir}" |
99 |
+ exeinto ${dir} |
100 |
doexe ${arch}/${MY_PN}.bin.${arch} |
101 |
|
102 |
- exeinto "${dir}/lib${libsuffix}" |
103 |
+ exeinto ${dir}/lib${libsuffix} |
104 |
if use bundled-libs ; then |
105 |
doexe ${arch}/lib${libsuffix}/* |
106 |
else |
107 |
doexe ${arch}/lib${libsuffix}/libSDL_sound-1.0.so.1 |
108 |
fi |
109 |
|
110 |
- make_wrapper ${PN} "./${MY_PN}.bin.${arch}" "${dir}" "${dir}/lib${libsuffix}" |
111 |
- make_desktop_entry ${PN} "To the Moon" |
112 |
- newicon -s 32 noarch/${MY_PN}.png ${PN}.png |
113 |
-} |
114 |
- |
115 |
-pkg_preinst() { |
116 |
- gnome2_icon_savelist |
117 |
-} |
118 |
+ make_wrapper ${PN} ./${MY_PN}.bin.${arch} ${dir}{,/lib${libsuffix}} |
119 |
|
120 |
-pkg_postinst() { |
121 |
- gnome2_icon_cache_update |
122 |
-} |
123 |
- |
124 |
-pkg_postrm() { |
125 |
- gnome2_icon_cache_update |
126 |
+ newicon noarch/${MY_PN}.png ${PN}.png |
127 |
+ make_desktop_entry ${PN} "To the Moon" |
128 |
} |