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 }