From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 83F5C138334 for ; Tue, 3 Sep 2019 22:31:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3F7EE0806; Tue, 3 Sep 2019 22:31:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 86E63E0801 for ; Tue, 3 Sep 2019 22:31:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D02B334AB61 for ; Tue, 3 Sep 2019 22:31:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1F2B5784 for ; Tue, 3 Sep 2019 22:31:31 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1567549862.4cccd577d6d5d423f7324d77d895e62037fd2f25.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/shovel-knight/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-arcade/shovel-knight/Manifest games-arcade/shovel-knight/metadata.xml games-arcade/shovel-knight/shovel-knight-3.3.ebuild X-VCS-Directories: games-arcade/shovel-knight/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 4cccd577d6d5d423f7324d77d895e62037fd2f25 X-VCS-Branch: master Date: Tue, 3 Sep 2019 22:31:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d0ba07ee-ea58-44e4-a01b-01ef4f52c375 X-Archives-Hash: c1bb5dcac069b8fe8e1ffd34951d706b commit: 4cccd577d6d5d423f7324d77d895e62037fd2f25 Author: James Le Cuirot gentoo org> AuthorDate: Tue Sep 3 22:21:06 2019 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Tue Sep 3 22:31:02 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cccd577 games-arcade/shovel-knight: New package Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: James Le Cuirot gentoo.org> games-arcade/shovel-knight/Manifest | 1 + games-arcade/shovel-knight/metadata.xml | 8 +++ .../shovel-knight/shovel-knight-3.3.ebuild | 66 ++++++++++++++++++++++ 3 files changed, 75 insertions(+) diff --git a/games-arcade/shovel-knight/Manifest b/games-arcade/shovel-knight/Manifest new file mode 100644 index 00000000000..3eb8934d603 --- /dev/null +++ b/games-arcade/shovel-knight/Manifest @@ -0,0 +1 @@ +DIST shovel_knight_treasure_trove_en_3_3_15418.sh 226753557 BLAKE2B 3103871333f5dec931b109ccc8a8820054f8bd934d01daf97bb5ad84e9dfaebd2c79d1943fb7049468f49c9db87c51dec0e08d38469e364bafb8bc50fbd9d40d SHA512 6832593440cc5059f0df37be991bb2e87c071c7ed566b2c6d0f6cc418190be92c4f793f2c694f620b9378914cde13abf9049eba8cdd90b9dfe961ae9a65dc42a diff --git a/games-arcade/shovel-knight/metadata.xml b/games-arcade/shovel-knight/metadata.xml new file mode 100644 index 00000000000..26079e608be --- /dev/null +++ b/games-arcade/shovel-knight/metadata.xml @@ -0,0 +1,8 @@ + + + + + games@gentoo.org + Gentoo Games Project + + diff --git a/games-arcade/shovel-knight/shovel-knight-3.3.ebuild b/games-arcade/shovel-knight/shovel-knight-3.3.ebuild new file mode 100644 index 00000000000..656b2c15448 --- /dev/null +++ b/games-arcade/shovel-knight/shovel-knight-3.3.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils desktop unpacker xdg-utils + +MY_PN="ShovelKnight" +DESCRIPTION="Sweeping classic action adventure with an 8-bit retro aesthetic" +HOMEPAGE="https://yachtclubgames.com/shovel-knight/" +SRC_URI="${PN//-/_}_treasure_trove_en_3_3_15418.sh" +LICENSE="Yacht-Club-Games-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="bindist fetch splitdebug" + +# I packaged Box2D in the hope of unbundling it but it turns out this +# game uses a custom version. -- Chewi :( + +RDEPEND=" + media-libs/glew:1.10 + media-libs/libsdl2[opengl,sound,video] + virtual/opengl +" + +S="${WORKDIR}/data/noarch/game" + +DIR="/opt/${PN}" +QA_PREBUILT="${DIR#/}/*" + +pkg_nofetch() { + einfo "Please buy and download ${SRC_URI} from:" + einfo " https://www.gog.com/game/${PN//-/_}" + einfo "and move it to your distfiles directory." +} + +src_unpack() { + unpack_zip ${A} +} + +src_install() { + local BITS=$(usex amd64 64 32) LIB= + + exeinto "${DIR}" + doexe ${BITS}/${MY_PN} + make_wrapper ${MY_PN} ./${MY_PN} "${DIR}" + + exeinto "${DIR}"/lib + doexe ${BITS}/lib/lib{Box2D.so.*,fmod*-*.so} + + # The FMOD libraries are duplicated rather than symlinked, which is + # silly, so create our own symlinks. Both sets of names are needed. + for LIB in ${BITS}/lib/libfmod*-*.so; do + LIB=${LIB##*/} + dosym "${LIB}" "${DIR}/lib/${LIB%-*}.so" + done + + insinto "${DIR}" + doins -r data/ + + newicon -s 256 ../support/icon.png ${PN}.png + make_desktop_entry ${MY_PN} "Shovel Knight" +} + +pkg_postinst() { xdg_icon_cache_update; } +pkg_postrm() { xdg_icon_cache_update; }