public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Azamat H. Hackimov" <winterheart@gentoo.ru>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-action/hammerfight/
Date: Sat, 29 Feb 2020 20:11:45 +0000 (UTC)	[thread overview]
Message-ID: <1583006218.f585379fd4c4342c8f90c207451174191bf1fad8.winterheart@gentoo> (raw)

commit:     f585379fd4c4342c8f90c207451174191bf1fad8
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Sat Feb 29 19:56:58 2020 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Sat Feb 29 19:56:58 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=f585379f

games-action/hammerfight: update package

Migrate from deprecated eclass.

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

 .../hammerfight/hammerfight-20110812.ebuild        | 26 ++++++++++------------
 games-action/hammerfight/metadata.xml              |  2 +-
 2 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/games-action/hammerfight/hammerfight-20110812.ebuild b/games-action/hammerfight/hammerfight-20110812.ebuild
index b63181a..e066430 100644
--- a/games-action/hammerfight/hammerfight-20110812.ebuild
+++ b/games-action/hammerfight/hammerfight-20110812.ebuild
@@ -1,19 +1,18 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
-# $Header: $
 
-EAPI=3
+EAPI=7
 
-inherit eutils games
+inherit desktop eutils
 
-DESCRIPTION="2D battles of flying machines equipped with various slashing, piercing and blunt weaponry"
+DESCRIPTION="2D battles of flying machines equipped with various weaponry"
 HOMEPAGE="http://www.koshutin.com/"
 SRC_URI="hf-linux-${PV:4}${PV:0:4}-bin"
 
 LICENSE="HPND"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="linguas_ru"
+IUSE="l10n_ru"
 
 DEPEND="app-arch/unzip"
 RDEPEND="media-libs/libsdl[joystick,sound,video]
@@ -21,8 +20,7 @@ RDEPEND="media-libs/libsdl[joystick,sound,video]
 
 RESTRICT="fetch"
 
-S="${WORKDIR}"/data
-dir="${GAMES_PREFIX_OPT}/${PN}"
+S="${WORKDIR}/data"
 
 pkg_nofetch() {
 	ewarn
@@ -36,8 +34,10 @@ src_unpack() {
 }
 
 src_install() {
+	local dir="/opt/${PN}"
+	local exe
 
-	if use linguas_ru ; then
+	if use l10n_ru ; then
 		einfo "Russian is chosen for primary language"
 		mv Data/Dialogs/{russian,english}.seria
 	fi
@@ -47,17 +47,15 @@ src_install() {
 		|| die "doins failed"
 
 	if use amd64 ; then
-		local exe=Hammerfight-amd64
+		exe=Hammerfight-amd64
 	fi
 	if use x86 ; then
-		local exe=Hammerfight-x86
+		exe=Hammerfight-x86
 	fi
 	exeinto "${dir}"
 	doexe ${exe} || die "doexe failed"
 
-	games_make_wrapper ${PN} ./${exe} "${dir}" "${dir}"
+	make_wrapper ${PN} ./${exe} "${dir}" "${dir}"
 	doicon ${PN}.png
 	make_desktop_entry ${PN} "Hammerfight" ${PN}
-
-	prepgamesdirs
 }

diff --git a/games-action/hammerfight/metadata.xml b/games-action/hammerfight/metadata.xml
index 9a04622..38b700b 100644
--- a/games-action/hammerfight/metadata.xml
+++ b/games-action/hammerfight/metadata.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<maintainer>
+<maintainer type="person">
 <email>azamat.hackimov@gmail.com</email>
 <name>Azamat H. Hackimov</name>
 </maintainer>


             reply	other threads:[~2020-02-29 20:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-29 20:11 Azamat H. Hackimov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-05-16 17:27 [gentoo-commits] proj/gamerlay:master commit in: games-action/hammerfight/ Azamat H. Hackimov
2011-08-18 16:54 Azamat H. Hackimov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1583006218.f585379fd4c4342c8f90c207451174191bf1fad8.winterheart@gentoo \
    --to=winterheart@gentoo.ru \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox