commit:     d86d81aa8571e93304800169139c30f9122ec3d3
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Fri Feb 28 21:29:15 2020 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Fri Feb 28 21:29:15 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=d86d81aa

games-arcade/metalslug3: update to EAPI7

Migrate from deprecated eclass, fixes to build.

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>

 games-arcade/metalslug3/metadata.xml               |  7 +++++
 ...0140609.ebuild => metalslug3-2014.06.09.ebuild} | 34 +++++++---------------
 2 files changed, 17 insertions(+), 24 deletions(-)

diff --git a/games-arcade/metalslug3/metadata.xml 
b/games-arcade/metalslug3/metadata.xml
new file mode 100644
index 0000000..ab5b6a0
--- /dev/null
+++ b/games-arcade/metalslug3/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<longdescription lang="en">
+Famous 2D shooting game
+</longdescription>
+</pkgmetadata>

diff --git a/games-arcade/metalslug3/metalslug3-20140609.ebuild 
b/games-arcade/metalslug3/metalslug3-2014.06.09.ebuild
similarity index 67%
rename from games-arcade/metalslug3/metalslug3-20140609.ebuild
rename to games-arcade/metalslug3/metalslug3-2014.06.09.ebuild
index 686fe52..3008584 100644
--- a/games-arcade/metalslug3/metalslug3-20140609.ebuild
+++ b/games-arcade/metalslug3/metalslug3-2014.06.09.ebuild
@@ -1,27 +1,22 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
-# $Header: $
 
-EAPI="5"
+EAPI=7
 
-inherit eutils games unpacker
-
-TS="2014-06-09"
+inherit eutils unpacker
 
 DESCRIPTION="Famous 2D shooting game"
 HOMEPAGE="http://www.snkplaymore.co.jp/us/games/steam/metalslug3/";
-SRC_URI="MetalSlug3-Linux-${TS}.sh"
+SRC_URI="MetalSlug3-Linux-$(ver_rs 1-2 -).sh"
 
 RESTRICT="fetch strip"
-LICENSE="as-is"
+LICENSE="all-rights-reserved"
 
 SLOT="0"
-KEYWORDS="amd64 x86"
+KEYWORDS="-* ~amd64 ~x86"
 IUSE=""
 
-DEPEND="
-       app-arch/unzip
-"
+DEPEND="app-arch/unzip"
 RDEPEND="
        media-libs/libsdl2
        media-libs/sdl2-mixer
@@ -30,8 +25,6 @@ RDEPEND="
 
 S="${WORKDIR}/data"
 
-GAMEDIR="${GAMES_PREFIX_OPT}/${PN}"
-
 pkg_nofetch() {
        einfo ""
        einfo "Please buy and download \"${SRC_URI}\" from"
@@ -40,10 +33,6 @@ pkg_nofetch() {
        einfo ""
 }
 
-#src_unpack() {
-#      unpack_zip "${A}";
-#}
-
 src_install() {
        local arch;
 
@@ -55,16 +44,13 @@ src_install() {
        rm noarch/README.linux noarch/LICENSES.txt noarch/ARPHICPL.TXT
 
        # Install data
-       insinto "${GAMEDIR}"
+       insinto "/opt/${PN}"
        doins -r noarch/*
-       exeinto "${GAMEDIR}"
+       exeinto "/opt/${PN}"
        doexe "${arch}/MetalSlug3.bin.${arch}"
 
        # Install icon and desktop file
        newicon "noarch/icon.png" "${PN}.png"
        make_desktop_entry "${PN}" "Metal Slug 3" "${PN}"
-       games_make_wrapper "${PN}" "./MetalSlug3.bin.${arch}" "${GAMEDIR}"
-
-       # Setting permissions.
-       prepgamesdirs
+       make_wrapper "${PN}" "./MetalSlug3.bin.${arch}" "/opt/${PN}"
 }

Reply via email to