commit: 2c881424f75ea76c7e367c6fa727e244a9e1459d Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Tue Sep 2 21:38:56 2025 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Tue Sep 2 21:57:56 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c881424
games-action/supertuxkart: Delete unused code with CMake issues Closes: https://bugs.gentoo.org/957294 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> games-action/supertuxkart/supertuxkart-1.4-r1.ebuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/games-action/supertuxkart/supertuxkart-1.4-r1.ebuild b/games-action/supertuxkart/supertuxkart-1.4-r1.ebuild index a949d5c2b837..25223bfbacc0 100644 --- a/games-action/supertuxkart/supertuxkart-1.4-r1.ebuild +++ b/games-action/supertuxkart/supertuxkart-1.4-r1.ebuild @@ -12,7 +12,7 @@ SRC_URI=" https://github.com/${PN}/stk-code/releases/download/${PV}/${MY_P}.tar.xz mirror://gentoo/${PN}.png " - +S="${WORKDIR}/${MY_P}" LICENSE="GPL-2 GPL-3 CC-BY-SA-3.0 CC-BY-SA-4.0 CC0-1.0 public-domain ZLIB" SLOT="0" KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" @@ -50,8 +50,6 @@ BDEPEND=" virtual/pkgconfig " -S="${WORKDIR}/${MY_P}" - PATCHES=( "${FILESDIR}"/${PN}-1.1-irrlicht-arch-support.patch "${FILESDIR}"/${PN}-1.3-irrlicht-system-libs.patch @@ -61,6 +59,14 @@ PATCHES=( "${FILESDIR}"/${P}-0002-Fixed-cmake-4.0-warnings.patch ) +src_prepare() { + # Delete unused code with CMake issues. + rm -r lib/wiiuse/cmake/{cmake-2.8.0-modules/,DashboardScript.cmake.in,FindOpenHaptics.cmake} \ + lib/shaderc/ switch/ || die + + cmake_src_prepare +} + src_configure() { # -Werror=strict-aliasing # https://bugs.gentoo.org/858521
