1 |
commit: 27b2aca82659aaf2920a76a30d93f27bf022e444 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 28 22:35:59 2020 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Fri Feb 28 22:35:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=27b2aca8 |
7 |
|
8 |
games-arcade/sleepwalker: update ebuild |
9 |
|
10 |
Migrate from deprecated eclass. |
11 |
|
12 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
13 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
14 |
|
15 |
.../sleepwalker/sleepwalker-20130613.ebuild | 54 ++++++++-------------- |
16 |
1 file changed, 20 insertions(+), 34 deletions(-) |
17 |
|
18 |
diff --git a/games-arcade/sleepwalker/sleepwalker-20130613.ebuild b/games-arcade/sleepwalker/sleepwalker-20130613.ebuild |
19 |
index 4d7a04e..832020d 100644 |
20 |
--- a/games-arcade/sleepwalker/sleepwalker-20130613.ebuild |
21 |
+++ b/games-arcade/sleepwalker/sleepwalker-20130613.ebuild |
22 |
@@ -1,50 +1,39 @@ |
23 |
-# Copyright 1999-2012 Gentoo Foundation |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
-# $Header: $ |
27 |
|
28 |
-EAPI="5" |
29 |
+EAPI=7 |
30 |
|
31 |
-inherit unpacker games |
32 |
+inherit desktop eutils multilib-minimal unpacker |
33 |
|
34 |
-DESCRIPTION="Guide a hero safely through various traps, clear obstructions from his path, and shift his surroundings to create a safe passage to the cozy bed." |
35 |
+DESCRIPTION="Guide a hero safely through various traps, clear obstructions from his path." |
36 |
HOMEPAGE="http://www.11bitstudios.com/games/12/sleepwalker-s-journey" |
37 |
# Is it non-HiB distfile? |
38 |
SRC_URI="Sleepwalker-lin_1371139237-Installer" |
39 |
RESTRICT="fetch strip" |
40 |
-LICENSE="as-is" |
41 |
+LICENSE="all-rights-reserved" |
42 |
SLOT="0" |
43 |
KEYWORDS="-* ~amd64 ~x86" |
44 |
IUSE="multilib" |
45 |
|
46 |
-DEPEND="" |
47 |
+DEPEND="app-arch/unzip" |
48 |
RDEPEND=" |
49 |
- x86? ( |
50 |
- media-libs/openal |
51 |
- x11-libs/libdrm |
52 |
- x11-libs/libX11 |
53 |
- x11-libs/libXau |
54 |
- x11-libs/libxcb |
55 |
- x11-libs/libXdamage |
56 |
- x11-libs/libXdmcp |
57 |
- x11-libs/libXext |
58 |
- x11-libs/libXfixes |
59 |
- x11-libs/libXxf86vm |
60 |
- ) |
61 |
- amd64? ( |
62 |
- app-emulation/emul-linux-x86-xlibs |
63 |
- app-emulation/emul-linux-x86-opengl |
64 |
- app-emulation/emul-linux-x86-sdl |
65 |
- ) |
66 |
+ media-libs/openal[${MULTILIB_USEDEP}] |
67 |
+ x11-libs/libdrm[${MULTILIB_USEDEP}] |
68 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
69 |
+ x11-libs/libXau[${MULTILIB_USEDEP}] |
70 |
+ x11-libs/libxcb[${MULTILIB_USEDEP}] |
71 |
+ x11-libs/libXdamage[${MULTILIB_USEDEP}] |
72 |
+ x11-libs/libXdmcp[${MULTILIB_USEDEP}] |
73 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
74 |
+ x11-libs/libXfixes[${MULTILIB_USEDEP}] |
75 |
+ x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
76 |
virtual/opengl |
77 |
- app-arch/unzip |
78 |
" |
79 |
|
80 |
-REQUIRED_USE="amd64? ( multilib )" |
81 |
- |
82 |
-S="${WORKDIR}" |
83 |
+S="${WORKDIR}/data" |
84 |
|
85 |
src_unpack() { |
86 |
- unpack_zip "${A}" |
87 |
+ unpack_zip ${A} |
88 |
} |
89 |
|
90 |
pkg_nofetch() { |
91 |
@@ -54,12 +43,11 @@ pkg_nofetch() { |
92 |
} |
93 |
|
94 |
src_install() { |
95 |
- cd "${S}/data" |
96 |
- local dir="${GAMES_PREFIX_OPT}/${PN}" |
97 |
+ local dir="/opt/${PN}" |
98 |
|
99 |
newicon "icon.png" "${PN}.png" |
100 |
make_desktop_entry "${PN}" "Sleepwalker" "${PN}" |
101 |
- games_make_wrapper "${PN}" "./Sleepwalker" "${dir}" |
102 |
+ make_wrapper "${PN}" "./Sleepwalker" "${dir}" |
103 |
dodoc README |
104 |
exeinto "${dir}" |
105 |
doexe "Sleepwalker" |
106 |
@@ -73,6 +61,4 @@ src_install() { |
107 |
"Copyright license Xpm" |
108 |
insinto "${dir}" |
109 |
doins -r . |
110 |
- |
111 |
- prepgamesdirs |
112 |
} |