summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-action/hammerfight/hammerfight-20110812.ebuild')
-rw-r--r--games-action/hammerfight/hammerfight-20110812.ebuild26
1 files changed, 12 insertions, 14 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
}