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-arcade/capsized/
Date: Sat, 29 Feb 2020 01:15:33 +0000 (UTC)	[thread overview]
Message-ID: <1582930414.03549c3500c11e13773cfb5aa2532ec3b9fd99c0.winterheart@gentoo> (raw)

commit:     03549c3500c11e13773cfb5aa2532ec3b9fd99c0
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Fri Feb 28 22:53:34 2020 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Fri Feb 28 22:53:34 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=03549c35

games-arcade/capsized: update package

Migrate from deprecated eclass.

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

 ...-06102013.ebuild => capsized-2013.10.06.ebuild} | 54 +++++++++-------------
 1 file changed, 22 insertions(+), 32 deletions(-)

diff --git a/games-arcade/capsized/capsized-06102013.ebuild b/games-arcade/capsized/capsized-2013.10.06.ebuild
similarity index 55%
rename from games-arcade/capsized/capsized-06102013.ebuild
rename to games-arcade/capsized/capsized-2013.10.06.ebuild
index c461bc6..3c68caf 100644
--- a/games-arcade/capsized/capsized-06102013.ebuild
+++ b/games-arcade/capsized/capsized-2013.10.06.ebuild
@@ -1,32 +1,32 @@
-# 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 unpacker games multilib
+inherit desktop eutils multilib-minimal unpacker
+
+MY_PN=Capsized
 
 DESCRIPTION="A fast paced 2d platformer, focused on intense action and exploration."
 HOMEPAGE="http://www.capsizedgame.com/"
-SRC_URI="${PN}-${PV}-bin"
+SRC_URI="${PN}-$(ver_cut 3)$(ver_cut 2)$(ver_cut 1)-bin"
 
-LICENSE="as-is"
+LICENSE="all-rights-reserved"
 SLOT="0"
 KEYWORDS="-* ~amd64 ~x86"
-IUSE="linguas_de linguas_es linguas_fr linguas_it"
+IUSE="l10n_de l10n_es l10n_fr l10n_it"
 
 RESTRICT="fetch"
 
 DEPEND="app-arch/zip"
 RDEPEND="
-	${DEPEND}
-	media-libs/libtheora
-	media-libs/libogg
-	media-libs/libvorbis
-	dev-lang/mono
-	media-libs/openal
-	media-libs/libsdl2
-	media-libs/sdl2-mixer
+	media-libs/libtheora[${MULTILIB_USEDEP}]
+	media-libs/libogg[${MULTILIB_USEDEP}]
+	media-libs/libvorbis[${MULTILIB_USEDEP}]
+	dev-lang/mono[${MULTILIB_USEDEP}]
+	media-libs/openal[${MULTILIB_USEDEP}]
+	media-libs/libsdl2[${MULTILIB_USEDEP}]
+	media-libs/sdl2-mixer[${MULTILIB_USEDEP}]
 "
 #	dev-dotnet/monogame # someday
 #	dev-dotnet/monogame-theoraplay # someday
@@ -35,9 +35,6 @@ RDEPEND="
 DOCS=( "Linux.README" )
 
 S="${WORKDIR}/data"
-GAMEDIR="${GAMES_PREFIX_OPT}/${PN}"
-
-MY_PN=Capsized
 
 pkg_nofetch() {
 	einfo "Please download ${A}"
@@ -47,11 +44,12 @@ pkg_nofetch() {
 }
 
 src_unpack() {
-	unpack_zip "${A}"
+	unpack_zip ${A}
 }
 
 src_install() {
-	insinto "${GAMEDIR}"
+	local dir="/opt/${PN}"
+	insinto "${dir}"
 	doins -r Content
 	doins   "${MY_PN}.bmp" \
 		NePlusUltra.exe \
@@ -65,22 +63,14 @@ src_install() {
 		'TheoraPlay#'.dll.config
 
 	for lang in fr it es de; do
-		use "linguas_${lang}" && doins -r "${lang}"
+		use "l10n_${lang}" && doins -r "${lang}"
 	done
 
-	# Installing bundled sdl-mixer-2, since it is still not released as 
-	# tarball [hg only].
-	# btw, can be inserted in ${GAMEDIR} without subdir.
-	#
-	# Also installing bundled theoraplay, since in is no such package in
-	# portage.
-	insinto "${GAMEDIR}/$(get_libdir)"
-#	doins "$(get_libdir)/libSDL2_mixer-2.0.so.0"
+	# Installing bundled theoraplay, since in is no such package in portage.
+	insinto "${dir}/$(get_libdir)"
 	doins "$(get_libdir)/libtheoraplay.so"
 
-	games_make_wrapper "${PN}" "mono ./NePlusUltra.exe" "${GAMEDIR}" "${GAMEDIR}/$(get_libdir)"
+	make_wrapper "${PN}" "mono ./NePlusUltra.exe" "${dir}" "${dir}/$(get_libdir)"
 	doicon "${FILESDIR}/${PN}.png"
 	make_desktop_entry "${PN}" "${MY_PN}" "${PN}"
-
-	prepgamesdirs
 }


             reply	other threads:[~2020-02-29  1:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-29  1:15 Azamat H. Hackimov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-06-14 21:47 [gentoo-commits] proj/gamerlay:master commit in: games-arcade/capsized/ Vadim A. Misbakh-Soloviov
2013-05-31 21:57 Vadim A. Misbakh-Soloviov
2013-05-31 21:45 Vadim A. Misbakh-Soloviov

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=1582930414.03549c3500c11e13773cfb5aa2532ec3b9fd99c0.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