commit:     bd85ba49f147fb42c64ae635fbc1a927039f8603
Author:     Swagtoy <me <AT> ow <DOT> swag <DOT> toys>
AuthorDate: Mon Feb  9 04:32:16 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=bd85ba49

games-arcade/supertux: Update live ebuild

Reflecting the beta2 changes.

Signed-off-by: Swagtoy <me <AT> ow.swag.toys>
Part-of: https://github.com/gentoo/gentoo/pull/45701
Closes: https://github.com/gentoo/gentoo/pull/45701
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-arcade/supertux/supertux-9999.ebuild | 36 +++++++++++++++++-------------
 1 file changed, 21 insertions(+), 15 deletions(-)

diff --git a/games-arcade/supertux/supertux-9999.ebuild 
b/games-arcade/supertux/supertux-9999.ebuild
index c1fe48b131a2..9728379211fe 100644
--- a/games-arcade/supertux/supertux-9999.ebuild
+++ b/games-arcade/supertux/supertux-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -8,7 +8,7 @@ EAPI=8
 CMAKE_QA_COMPAT_SKIP=1
 inherit cmake xdg
 
-DESCRIPTION="A run n' jump platforming game featuring Tux the penguin"
+DESCRIPTION="A run 'n jump platforming game featuring Tux the penguin"
 HOMEPAGE="https://www.supertux.org";
 
 if [[ "${PV}" == *9999* ]] ; then
@@ -22,17 +22,16 @@ else
        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 ~x86"
+       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 +opengl test"
+IUSE="debug egl +network +opengl test"
 RESTRICT="!test? ( test )"
 
-# NOTE: curl is not a required dependency, but there is no compile option
-# at the moment to turn it off. Should hopefully be in by beta.2/release.
+# libepoxy bindings do not support GLX, so we fall back to GLEW otherwise.
 RDEPEND="
        >=dev-games/physfs-3.0
        dev-libs/libfmt
@@ -43,9 +42,16 @@ RDEPEND="
        media-libs/openal
        >=media-libs/sdl2-ttf-2.0.15
        >=media-libs/sdl2-image-2.0.0[png,jpeg]
-       >=net-misc/curl-7.21.7
+       network? (
+               >=net-misc/curl-7.21.7
+       )
        opengl? (
-               media-libs/glew:=
+               egl? (
+                       media-libs/libepoxy
+               )
+               !egl? (
+                       media-libs/glew:=
+               )
                virtual/opengl
        )
 "
@@ -66,16 +72,16 @@ src_configure() {
                -DUSE_SYSTEM_SDL2_TTF=ON
                -DIS_SUPERTUX_RELEASE=ON
                -DENABLE_OPENGL="$(usex opengl)"
+               -DENABLE_NETWORKING="$(usex network)"
                -DBUILD_TESTING="$(usex test)"
        )
 
-       [[ "${PV}" != *9999* ]] && mycmakeargs+=(
-               # CMake croaks due to missing .git on the beta sources (yes), so
-               # just manually set the version, as it would do otherwise anyway
-               # from the git tag.
-               -DSUPERTUX_PACKAGE_VERSION="v${MY_PV}"
-               -DSUPERTUX_VERSION_STRING="v${MY_PV}"
-       )
+       # 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
 }

Reply via email to