summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2020-03-04 01:39:00 +0300
committerAzamat H. Hackimov <azamat.hackimov@gmail.com>2020-03-04 01:39:00 +0300
commitda7f59bd1e805cf7edfa1146a56ce6a601d7aec4 (patch)
tree0969a276f148ba473ee00d974bc61d58c83e7968
parentgames-strategy/anomaly-mobilecampaign: update package (diff)
downloadgamerlay-da7f59bd1e805cf7edfa1146a56ce6a601d7aec4.tar.gz
gamerlay-da7f59bd1e805cf7edfa1146a56ce6a601d7aec4.tar.bz2
gamerlay-da7f59bd1e805cf7edfa1146a56ce6a601d7aec4.zip
games-strategy/worms-reloaded: update package
Migrate from deprecated eclass. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
-rw-r--r--games-strategy/worms-reloaded/metadata.xml4
-rw-r--r--games-strategy/worms-reloaded/worms-reloaded-20131016-r1.ebuild (renamed from games-strategy/worms-reloaded/worms-reloaded-20131016.ebuild)33
2 files changed, 17 insertions, 20 deletions
diff --git a/games-strategy/worms-reloaded/metadata.xml b/games-strategy/worms-reloaded/metadata.xml
new file mode 100644
index 0000000..097975e
--- /dev/null
+++ b/games-strategy/worms-reloaded/metadata.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+</pkgmetadata>
diff --git a/games-strategy/worms-reloaded/worms-reloaded-20131016.ebuild b/games-strategy/worms-reloaded/worms-reloaded-20131016-r1.ebuild
index 2c5f317..c1d070b 100644
--- a/games-strategy/worms-reloaded/worms-reloaded-20131016.ebuild
+++ b/games-strategy/worms-reloaded/worms-reloaded-20131016-r1.ebuild
@@ -1,40 +1,33 @@
-# 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
+inherit desktop eutils multilib-minimal
TS="1381858841"
-DESCRIPTION="Legendary Worms™ Game. SinglePlayer-only."
+DESCRIPTION="Legendary Worms Game. SinglePlayer-only."
HOMEPAGE="http://www.team17.com/games/worms/worms-reloaded/"
SRC_URI="WormsReloaded_Linux_${TS}.sh"
RESTRICT="fetch strip"
-LICENSE="as-is"
+LICENSE="all-rights-reserved"
SLOT="0"
-KEYWORDS="amd64 x86"
+KEYWORDS="-* ~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="
- amd64? (
- app-emulation/emul-linux-x86-baselibs
- app-emulation/emul-linux-x86-sdl
- )
- x86? (
- media-libs/libsdl2
- media-libs/openal
- sys-libs/zlib
- )
+ media-libs/libsdl2[${MULTILIB_USEDEP}]
+ media-libs/openal[${MULTILIB_USEDEP}]
+ sys-libs/zlib[${MULTILIB_USEDEP}]
"
S="${WORKDIR}/data"
-GAMEDIR="${GAMES_PREFIX_OPT}/${PN}"
+GAMEDIR="/opt/${PN}"
pkg_nofetch() {
einfo ""
@@ -45,10 +38,11 @@ pkg_nofetch() {
}
src_unpack() {
- unpack_zip "${A}";
+ unpack_zip ${A}
}
src_prepare() {
+ default
rm -r "${S}/x86/lib/libopenal.so.1"
}
@@ -66,8 +60,7 @@ src_install() {
# Install icon and desktop file
newicon "x86/WormsReloaded.png" "${PN}.png"
make_desktop_entry "${PN}" "Worms Reloaded" "${PN}"
- games_make_wrapper "${PN}" "./WormsReloaded.bin.x86" "${GAMEDIR}" "${GAMEDIR}/lib"
+ make_wrapper "${PN}" "./WormsReloaded.bin.x86" "${GAMEDIR}" "${GAMEDIR}/lib"
# Setting permissions.
- prepgamesdirs
}