Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-arcade/edge/
Date: Sat, 29 Feb 2020 01:15:45
Message-Id: 1582937689.3671ad51f7324cb19cb53f20badf308b831d01f8.winterheart@gentoo
1 commit: 3671ad51f7324cb19cb53f20badf308b831d01f8
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Sat Feb 29 00:54:49 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Sat Feb 29 00:54:49 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=3671ad51
7
8 games-arcade/edge: update package
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 games-arcade/edge/edge-20130703.ebuild | 24 ++++++++++++------------
16 games-arcade/edge/metadata.xml | 4 ++++
17 2 files changed, 16 insertions(+), 12 deletions(-)
18
19 diff --git a/games-arcade/edge/edge-20130703.ebuild b/games-arcade/edge/edge-20130703.ebuild
20 index 6184fba..5b39dbb 100644
21 --- a/games-arcade/edge/edge-20130703.ebuild
22 +++ b/games-arcade/edge/edge-20130703.ebuild
23 @@ -1,6 +1,9 @@
24 -EAPI="5"
25 +# Copyright 1999-2020 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27
28 -inherit base games unpacker-nixstaller
29 +EAPI=7
30 +
31 +inherit eutils desktop unpacker-nixstaller
32
33 MY_PN="${PN^^}"
34 TS="1372878397"
35 @@ -11,13 +14,12 @@ HOMEPAGE="http://mobigame.net/"
36 SRC_URI="${MY_P}.sh"
37 RESTRICT="fetch"
38
39 -LICENSE="as-is"
40 +LICENSE="all-rights-reserved"
41 SLOT="0"
42 KEYWORDS="-* ~amd64 ~x86"
43 IUSE=""
44
45 -DEPEND=""
46 -RDEPEND="${DEPEND}
47 +RDEPEND="
48 media-libs/libsdl2
49 media-libs/openal
50 sys-libs/zlib
51 @@ -34,21 +36,22 @@ S="${WORKDIR}"
52 DOCS=( "README.linux" )
53
54 src_unpack() {
55 - local arch=x86
56 + local arch
57 use amd64 && arch=x86_64
58 + use x86 && arch=x86
59 nixstaller_unpack "instarchive_all" "instarchive_all_${arch}"
60 }
61
62 src_install() {
63 - local dir="${GAMES_PREFIX_OPT}/${PN}"
64 - local arch=x86
65 + local dir="/opt/${PN}"
66 use amd64 && arch=x86_64
67 + use x86 && arch=x86
68
69 exeinto "${dir}"
70 insinto "${dir}"
71
72 make_desktop_entry "${PN}" "${MY_PN}" "${PN}"
73 - games_make_wrapper "${PN}" "./${PN}" "${dir}"
74 + make_wrapper "${PN}" "./${PN}" "${dir}"
75
76 newexe "${MY_PN}.bin.${arch}" "${PN}"
77 newicon "${MY_PN}.png" "${PN}.png"
78 @@ -68,8 +71,5 @@ src_install() {
79 "music" \
80 "sprites" \
81 "textures"
82 -
83 - prepgamesdirs
84 -
85 base_src_install_docs
86 }
87
88 diff --git a/games-arcade/edge/metadata.xml b/games-arcade/edge/metadata.xml
89 new file mode 100644
90 index 0000000..097975e
91 --- /dev/null
92 +++ b/games-arcade/edge/metadata.xml
93 @@ -0,0 +1,4 @@
94 +<?xml version="1.0" encoding="UTF-8"?>
95 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
96 +<pkgmetadata>
97 +</pkgmetadata>