games-action/supertuxkart: Version bump to 1.5

Closes: https://bugs.gentoo.org/965130
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot 2025-11-01 09:42:39 +00:00
parent bd7ac03a3e
commit 76975d05f6
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137
2 changed files with 105 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST SuperTuxKart-1.4-src.tar.xz 650010456 BLAKE2B dc85c77cdf8b8f7377b5771eb3b3edbe20f6949c99f710ca70506c09152e7a846b3d3239f185d23c9fdf0477da417bacc644793b3407aed1e68fc41ced41a71e SHA512 e88f3fb5ccdb38d0ef75e92d73b43c5cc7a1f6c76ac9502033df099a00d6dc3e86b2c5442b806237d2420c44ada7dd23a2c90ecf94785a44d2348c933770a5ab
DIST SuperTuxKart-1.5-src.tar.gz 726171140 BLAKE2B 8becdf6be705c8549f3158ea0798fa46ec116c50f8002ff6a927c412a81534d195aaa40242a4cf68312a6336db559f85bd4bff5074ca4d54c18896f8aa3afddc SHA512 f82824f138aa05d179fe9e4fd197971b24a8488417c4eb340648529afc76a0775e32fee933a055672944436d5c67694e64234fb7282c0a0fef7bc89538b51cf8
DIST supertuxkart.png 4435 BLAKE2B b48b95e1cdebe930837cc784c4c5e9a089a69077e2fcfed15fe5e8c4d649a0f8024769b2f2102bbaea3a94eb21f4b58b5d291b97493266c3c5c8d7335cf69a80 SHA512 a180332f79220431922fa8b351cb476ebc5d9d1df09f20707eb3bdd7002fd264cb027b8190c73c5221050e6e8601beb6758a5809d05aedfb18f0bdb426f47eda

View File

@ -0,0 +1,104 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake desktop flag-o-matic xdg
MY_P="SuperTuxKart-${PV}-src"
DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)"
HOMEPAGE="https://supertuxkart.net/"
SRC_URI="
https://github.com/${PN}/stk-code/releases/download/${PV}/${MY_P}.tar.gz
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"
IUSE="debug nettle recorder sqlite vulkan wiimote"
# - Don't unbundle irrlicht and bullet
# both are modified and system versions will break the game
# https://sourceforge.net/p/irrlicht/feature-requests/138/
RDEPEND="
dev-cpp/libmcpp
dev-libs/angelscript:=
media-libs/freetype:2
media-libs/harfbuzz:=[truetype]
media-libs/libjpeg-turbo:=
media-libs/libpng:=
media-libs/libsdl2[opengl,video]
media-libs/libvorbis
media-libs/openal
net-libs/enet:1.3=
net-misc/curl
sys-libs/zlib
virtual/libintl
nettle? ( dev-libs/nettle:= )
!nettle? ( >=dev-libs/openssl-1.0.1d:= )
recorder? ( media-libs/libopenglrecorder )
sqlite? ( dev-db/sqlite:3 )
vulkan? ( media-libs/shaderc )
wiimote? ( net-wireless/bluez:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
sys-devel/gettext
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-1.1-irrlicht-arch-support.patch
"${FILESDIR}"/${PN}-1.3-irrlicht-system-libs.patch
)
src_prepare() {
# Delete unused code with CMake issues.
rm -r lib/wiiuse/cmake/{cmake-2.8.0-modules/,DashboardScript.cmake.in,FindOpenHaptics.cmake} switch/ || die
cmake_src_prepare
}
src_configure() {
# -Werror=strict-aliasing
# https://bugs.gentoo.org/858521
# https://github.com/supertuxkart/stk-code/issues/5035
#
# The issue is bundled code from sci-physics/bullet which is unlikely to
# be debundled.
#
# Do not trust with LTO either.
append-flags -fno-strict-aliasing
filter-lto
local mycmakeargs=(
-DUSE_SQLITE3=$(usex sqlite)
-DUSE_SYSTEM_ANGELSCRIPT=ON
-DUSE_SYSTEM_ENET=ON
-DUSE_SYSTEM_MCPP=ON
-DUSE_SYSTEM_SQUISH=OFF
-DUSE_SYSTEM_WIIUSE=OFF
-DUSE_IPV6=OFF # not supported by system enet
-DUSE_CRYPTO_OPENSSL=$(usex nettle no yes)
-DBUILD_RECORDER=$(usex recorder)
-DNO_SHADERC=$(usex !vulkan)
-DUSE_WIIUSE=$(usex wiimote)
-DSTK_INSTALL_BINARY_DIR=bin
-DSTK_INSTALL_DATA_DIR=share/${PN}
-DBUILD_SHARED_LIBS=OFF # build bundled libsquish as static library
)
cmake_src_configure
}
src_install() {
cmake_src_install
dodoc CHANGELOG.md
doicon -s 64 "${DISTDIR}"/${PN}.png
if use wiimote; then
# This gets erroneously installed.
rm "${ED}"/usr/$(get_libdir)/libwiiuse.a || die
fi
}