mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-arcade/supertux: Update live ebuild
Reflecting the beta2 changes. Signed-off-by: Swagtoy <me@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@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user