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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4AC0A1581EC for ; Thu, 21 Nov 2024 21:24:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C92CE07C9; Thu, 21 Nov 2024 21:24:41 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5BC72E07B3 for ; Thu, 21 Nov 2024 21:24:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 556BD342F9F for ; Thu, 21 Nov 2024 21:24:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E2C0318C4 for ; Thu, 21 Nov 2024 21:24:38 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1732223823.a2c6c6fe94bc135c5a9ac1ab2aa620e6ac4b28cc.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: games-rpg/snoot-game/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-rpg/snoot-game/snoot-game-1.11.1-r1.ebuild games-rpg/snoot-game/snoot-game-1.11.1.ebuild X-VCS-Directories: games-rpg/snoot-game/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: a2c6c6fe94bc135c5a9ac1ab2aa620e6ac4b28cc X-VCS-Branch: master Date: Thu, 21 Nov 2024 21:24:38 +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: 3665619a-ed50-46e0-953e-7e94d9a5f209 X-Archives-Hash: 7eb1fb51c871de61f4fc62cad527290b commit: a2c6c6fe94bc135c5a9ac1ab2aa620e6ac4b28cc Author: Seth M. Price aol com> AuthorDate: Thu Nov 21 21:16:22 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Thu Nov 21 21:17:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a2c6c6fe games-rpg/snoot-game: remove unused libs Closes: https://bugs.gentoo.org/942973 Signed-off-by: Seth M. Price aol.com> ...e-1.11.1.ebuild => snoot-game-1.11.1-r1.ebuild} | 28 +++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/games-rpg/snoot-game/snoot-game-1.11.1.ebuild b/games-rpg/snoot-game/snoot-game-1.11.1-r1.ebuild similarity index 61% rename from games-rpg/snoot-game/snoot-game-1.11.1.ebuild rename to games-rpg/snoot-game/snoot-game-1.11.1-r1.ebuild index f75c1fa01..963935720 100644 --- a/games-rpg/snoot-game/snoot-game-1.11.1.ebuild +++ b/games-rpg/snoot-game/snoot-game-1.11.1-r1.ebuild @@ -26,13 +26,39 @@ BDEPEND="${RDEPEND}" QA_PREBUILT="*" +src_prepare() { + default + + MY_ARCH="$(uname -m)" + + # Remove executables for other architectures + # (I tried using arrays but it was too much pain) + case "$MY_ARCH" in + aarch64) + rm -r "lib/py3-linux-armv7l" + rm -r "lib/py3-linux-x86_64" + ;; + armv7l) + rm -r "lib/py3-linux-aarch64" + rm -r "lib/py3-linux-x86_64" + ;; + x86_64) + rm -r "lib/py3-linux-aarch64" + rm -r "lib/py3-linux-armv7l" + ;; + *) + die "unsupported architecture: $MY_ARCH" + ;; + esac +} + src_install() { local dir=/opt/${PN} insinto "${dir}" doins -r "${S}/." - fperms +x ${dir}/lib/py3-linux-x86_64/SnootGame + fperms +x ${dir}/lib/py3-linux-${MY_ARCH}/SnootGame fperms +x ${dir}/SnootGame.sh make_wrapper ${PN} "./SnootGame.sh" "${dir}" "${dir}"