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-action/hammerfight/
Date: Sat, 29 Feb 2020 20:11:51
Message-Id: 1583006218.f585379fd4c4342c8f90c207451174191bf1fad8.winterheart@gentoo
1 commit: f585379fd4c4342c8f90c207451174191bf1fad8
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Sat Feb 29 19:56:58 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Sat Feb 29 19:56:58 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=f585379f
7
8 games-action/hammerfight: update package
9
10 Migrate from deprecated eclass.
11
12 Package-Manager: Portage-2.3.89, Repoman-2.3.20
13 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
14
15 .../hammerfight/hammerfight-20110812.ebuild | 26 ++++++++++------------
16 games-action/hammerfight/metadata.xml | 2 +-
17 2 files changed, 13 insertions(+), 15 deletions(-)
18
19 diff --git a/games-action/hammerfight/hammerfight-20110812.ebuild b/games-action/hammerfight/hammerfight-20110812.ebuild
20 index b63181a..e066430 100644
21 --- a/games-action/hammerfight/hammerfight-20110812.ebuild
22 +++ b/games-action/hammerfight/hammerfight-20110812.ebuild
23 @@ -1,19 +1,18 @@
24 -# Copyright 1999-2014 Gentoo Foundation
25 +# Copyright 1999-2020 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: $
28
29 -EAPI=3
30 +EAPI=7
31
32 -inherit eutils games
33 +inherit desktop eutils
34
35 -DESCRIPTION="2D battles of flying machines equipped with various slashing, piercing and blunt weaponry"
36 +DESCRIPTION="2D battles of flying machines equipped with various weaponry"
37 HOMEPAGE="http://www.koshutin.com/"
38 SRC_URI="hf-linux-${PV:4}${PV:0:4}-bin"
39
40 LICENSE="HPND"
41 SLOT="0"
42 KEYWORDS="~amd64 ~x86"
43 -IUSE="linguas_ru"
44 +IUSE="l10n_ru"
45
46 DEPEND="app-arch/unzip"
47 RDEPEND="media-libs/libsdl[joystick,sound,video]
48 @@ -21,8 +20,7 @@ RDEPEND="media-libs/libsdl[joystick,sound,video]
49
50 RESTRICT="fetch"
51
52 -S="${WORKDIR}"/data
53 -dir="${GAMES_PREFIX_OPT}/${PN}"
54 +S="${WORKDIR}/data"
55
56 pkg_nofetch() {
57 ewarn
58 @@ -36,8 +34,10 @@ src_unpack() {
59 }
60
61 src_install() {
62 + local dir="/opt/${PN}"
63 + local exe
64
65 - if use linguas_ru ; then
66 + if use l10n_ru ; then
67 einfo "Russian is chosen for primary language"
68 mv Data/Dialogs/{russian,english}.seria
69 fi
70 @@ -47,17 +47,15 @@ src_install() {
71 || die "doins failed"
72
73 if use amd64 ; then
74 - local exe=Hammerfight-amd64
75 + exe=Hammerfight-amd64
76 fi
77 if use x86 ; then
78 - local exe=Hammerfight-x86
79 + exe=Hammerfight-x86
80 fi
81 exeinto "${dir}"
82 doexe ${exe} || die "doexe failed"
83
84 - games_make_wrapper ${PN} ./${exe} "${dir}" "${dir}"
85 + make_wrapper ${PN} ./${exe} "${dir}" "${dir}"
86 doicon ${PN}.png
87 make_desktop_entry ${PN} "Hammerfight" ${PN}
88 -
89 - prepgamesdirs
90 }
91
92 diff --git a/games-action/hammerfight/metadata.xml b/games-action/hammerfight/metadata.xml
93 index 9a04622..38b700b 100644
94 --- a/games-action/hammerfight/metadata.xml
95 +++ b/games-action/hammerfight/metadata.xml
96 @@ -1,7 +1,7 @@
97 <?xml version="1.0" encoding="UTF-8"?>
98 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
99 <pkgmetadata>
100 -<maintainer>
101 +<maintainer type="person">
102 <email>azamat.hackimov@×××××.com</email>
103 <name>Azamat H. Hackimov</name>
104 </maintainer>