commit: ab684ac281002b34d3a1629e7592d9fe9008b9d7 Author: Swagtoy <me <AT> ow <DOT> swag <DOT> toys> AuthorDate: Mon Feb 9 04:27:09 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Feb 10 21:19:43 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab684ac2
games-arcade/supertux: add 0.7.0_beta2 This adds the network use flag, as well as the ability to compile with libepoxy. The git tag install issue has been fixed thankfully--however, the CMake 4 issues still have some nested submodules that are being whined about. I will hack at that a little more before release (and make sure that we get no warnings for sure.) ppc64 has also been tested, so lets start keywording that. Closes: https://bugs.gentoo.org/926960 Signed-off-by: Swagtoy <me <AT> ow.swag.toys> Part-of: https://github.com/gentoo/gentoo/pull/45701 Signed-off-by: Sam James <sam <AT> gentoo.org> games-arcade/supertux/Manifest | 1 + games-arcade/supertux/metadata.xml | 3 + games-arcade/supertux/supertux-0.7.0_beta2.ebuild | 87 +++++++++++++++++++++++ 3 files changed, 91 insertions(+) diff --git a/games-arcade/supertux/Manifest b/games-arcade/supertux/Manifest index e88a09eb7aba..21015044e58d 100644 --- a/games-arcade/supertux/Manifest +++ b/games-arcade/supertux/Manifest @@ -1 +1,2 @@ DIST SuperTux-v0.7.0-beta.1-Source.tar.gz 289516602 BLAKE2B f47fb1614d9b27a20e335d7edccab7c147c247f17b18cba3af9be304f271c390ae0767688e217bc0223856621f5296498b38a8603b5d76dfae80f7f0e480d571 SHA512 589d7abd07e0e5dad48edafad5f8d7d55077f1872a31460956d7e633cc35168ffa3bd6c44dbb2c5e3d6a6ee354a8c4e97b312f8b728fddf8fbd9578ead62c73f +DIST SuperTux-v0.7.0-beta.2-Source.tar.gz 291458506 BLAKE2B 7567d5b91b05cf02c216ce4944bec2f7a90c22850dbaab3e4ad8245624956da240d7390265cc222b082a4927e305c784fa11fe3f7b888985fdabe9462d6d2b24 SHA512 75155b9e491b0fde8103cce287f20903dafe6c46e342da02440c20e7b879cbae78b2e5793e42cdeb3a3206efb461b13e013a8ae4280da523dfbeeb1cd32c356c diff --git a/games-arcade/supertux/metadata.xml b/games-arcade/supertux/metadata.xml index 8e32847ac1dd..63d5a05a9799 100644 --- a/games-arcade/supertux/metadata.xml +++ b/games-arcade/supertux/metadata.xml @@ -9,4 +9,7 @@ <remote-id type="sourceforge">super-tux</remote-id> <remote-id type="github">SuperTux/supertux</remote-id> </upstream> + <use> + <flag name="network">Enable network support (e.g. for downloading add-ons)</flag> + </use> </pkgmetadata> diff --git a/games-arcade/supertux/supertux-0.7.0_beta2.ebuild b/games-arcade/supertux/supertux-0.7.0_beta2.ebuild new file mode 100644 index 000000000000..9728379211fe --- /dev/null +++ b/games-arcade/supertux/supertux-0.7.0_beta2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Hide cmake compatibility warning in external libs for now. Will get +# fixed upstream. +CMAKE_QA_COMPAT_SKIP=1 +inherit cmake xdg + +DESCRIPTION="A run 'n jump platforming game featuring Tux the penguin" +HOMEPAGE="https://www.supertux.org" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/SuperTux/${PN}.git" + MY_PV="${PV}" +else + MY_PV="${PV/_rc/-rc.}" + MY_PV="${MY_PV/_beta/-beta.}" + MY_P="SuperTux-v${MY_PV}-Source" + + SRC_URI="https://github.com/SuperTux/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="GPL-2+ GPL-3+ ZLIB MIT CC-BY-SA-2.0 CC-BY-SA-3.0" +SLOT="0" +IUSE="debug egl +network +opengl test" +RESTRICT="!test? ( test )" + +# libepoxy bindings do not support GLX, so we fall back to GLEW otherwise. +RDEPEND=" + >=dev-games/physfs-3.0 + dev-libs/libfmt + media-libs/freetype + media-libs/libpng:0= + >=media-libs/libsdl2-2.0.1[joystick,video] + media-libs/libvorbis + media-libs/openal + >=media-libs/sdl2-ttf-2.0.15 + >=media-libs/sdl2-image-2.0.0[png,jpeg] + network? ( + >=net-misc/curl-7.21.7 + ) + opengl? ( + egl? ( + media-libs/libepoxy + ) + !egl? ( + media-libs/glew:= + ) + virtual/opengl + ) +" +DEPEND="${RDEPEND} + media-libs/glm" +BDEPEND="virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DINSTALL_SUBDIR_BIN=bin + -DINSTALL_SUBDIR_DOC=share/doc/${PF} + -DINSTALL_SUBDIR_SHARE=share/${PN}2 + -DENABLE_SQDBG="$(usex debug)" + # SuperTux uses its own modified (simple)squirrel fork anyway, so it's + # unlikely that anyone will link with it. It's also prone to a conflict + # if one were to bundle simplesquirrel separately (libsimplesquirrel.so) + -DUSE_STATIC_SIMPLESQUIRREL=ON + -DUSE_SYSTEM_SDL2_TTF=ON + -DIS_SUPERTUX_RELEASE=ON + -DENABLE_OPENGL="$(usex opengl)" + -DENABLE_NETWORKING="$(usex network)" + -DBUILD_TESTING="$(usex test)" + ) + + # This flag is ignored if -opengl + if use egl ; then + mycmakeargs+=( -DUSE_GL_LIBRARY=libepoxy ) + else + mycmakeargs+=( -DUSE_GL_LIBRARY=glew ) + fi + + cmake_src_configure +}
