1 |
commit: d86d81aa8571e93304800169139c30f9122ec3d3 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 28 21:29:15 2020 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Fri Feb 28 21:29:15 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=d86d81aa |
7 |
|
8 |
games-arcade/metalslug3: update to EAPI7 |
9 |
|
10 |
Migrate from deprecated eclass, fixes to build. |
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 |
games-arcade/metalslug3/metadata.xml | 7 +++++ |
16 |
...0140609.ebuild => metalslug3-2014.06.09.ebuild} | 34 +++++++--------------- |
17 |
2 files changed, 17 insertions(+), 24 deletions(-) |
18 |
|
19 |
diff --git a/games-arcade/metalslug3/metadata.xml b/games-arcade/metalslug3/metadata.xml |
20 |
new file mode 100644 |
21 |
index 0000000..ab5b6a0 |
22 |
--- /dev/null |
23 |
+++ b/games-arcade/metalslug3/metadata.xml |
24 |
@@ -0,0 +1,7 @@ |
25 |
+<?xml version="1.0" encoding="UTF-8"?> |
26 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
+<pkgmetadata> |
28 |
+<longdescription lang="en"> |
29 |
+Famous 2D shooting game |
30 |
+</longdescription> |
31 |
+</pkgmetadata> |
32 |
|
33 |
diff --git a/games-arcade/metalslug3/metalslug3-20140609.ebuild b/games-arcade/metalslug3/metalslug3-2014.06.09.ebuild |
34 |
similarity index 67% |
35 |
rename from games-arcade/metalslug3/metalslug3-20140609.ebuild |
36 |
rename to games-arcade/metalslug3/metalslug3-2014.06.09.ebuild |
37 |
index 686fe52..3008584 100644 |
38 |
--- a/games-arcade/metalslug3/metalslug3-20140609.ebuild |
39 |
+++ b/games-arcade/metalslug3/metalslug3-2014.06.09.ebuild |
40 |
@@ -1,27 +1,22 @@ |
41 |
-# Copyright 1999-2012 Gentoo Foundation |
42 |
+# Copyright 1999-2020 Gentoo Authors |
43 |
# Distributed under the terms of the GNU General Public License v2 |
44 |
-# $Header: $ |
45 |
|
46 |
-EAPI="5" |
47 |
+EAPI=7 |
48 |
|
49 |
-inherit eutils games unpacker |
50 |
- |
51 |
-TS="2014-06-09" |
52 |
+inherit eutils unpacker |
53 |
|
54 |
DESCRIPTION="Famous 2D shooting game" |
55 |
HOMEPAGE="http://www.snkplaymore.co.jp/us/games/steam/metalslug3/" |
56 |
-SRC_URI="MetalSlug3-Linux-${TS}.sh" |
57 |
+SRC_URI="MetalSlug3-Linux-$(ver_rs 1-2 -).sh" |
58 |
|
59 |
RESTRICT="fetch strip" |
60 |
-LICENSE="as-is" |
61 |
+LICENSE="all-rights-reserved" |
62 |
|
63 |
SLOT="0" |
64 |
-KEYWORDS="amd64 x86" |
65 |
+KEYWORDS="-* ~amd64 ~x86" |
66 |
IUSE="" |
67 |
|
68 |
-DEPEND=" |
69 |
- app-arch/unzip |
70 |
-" |
71 |
+DEPEND="app-arch/unzip" |
72 |
RDEPEND=" |
73 |
media-libs/libsdl2 |
74 |
media-libs/sdl2-mixer |
75 |
@@ -30,8 +25,6 @@ RDEPEND=" |
76 |
|
77 |
S="${WORKDIR}/data" |
78 |
|
79 |
-GAMEDIR="${GAMES_PREFIX_OPT}/${PN}" |
80 |
- |
81 |
pkg_nofetch() { |
82 |
einfo "" |
83 |
einfo "Please buy and download \"${SRC_URI}\" from" |
84 |
@@ -40,10 +33,6 @@ pkg_nofetch() { |
85 |
einfo "" |
86 |
} |
87 |
|
88 |
-#src_unpack() { |
89 |
-# unpack_zip "${A}"; |
90 |
-#} |
91 |
- |
92 |
src_install() { |
93 |
local arch; |
94 |
|
95 |
@@ -55,16 +44,13 @@ src_install() { |
96 |
rm noarch/README.linux noarch/LICENSES.txt noarch/ARPHICPL.TXT |
97 |
|
98 |
# Install data |
99 |
- insinto "${GAMEDIR}" |
100 |
+ insinto "/opt/${PN}" |
101 |
doins -r noarch/* |
102 |
- exeinto "${GAMEDIR}" |
103 |
+ exeinto "/opt/${PN}" |
104 |
doexe "${arch}/MetalSlug3.bin.${arch}" |
105 |
|
106 |
# Install icon and desktop file |
107 |
newicon "noarch/icon.png" "${PN}.png" |
108 |
make_desktop_entry "${PN}" "Metal Slug 3" "${PN}" |
109 |
- games_make_wrapper "${PN}" "./MetalSlug3.bin.${arch}" "${GAMEDIR}" |
110 |
- |
111 |
- # Setting permissions. |
112 |
- prepgamesdirs |
113 |
+ make_wrapper "${PN}" "./MetalSlug3.bin.${arch}" "/opt/${PN}" |
114 |
} |