commit: 493db9e837207c8ad6f997bf23e551125215d52b Author: Swagtoy <me <AT> ow <DOT> swag <DOT> toys> AuthorDate: Wed Dec 31 00:26:56 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Dec 31 01:10:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=493db9e8
games-arcade/supertux: add live ebuild This adds live ebuilds. It's somewhat typical that people like to play the latest release of this game (we call these nightlies) since we release pretty rarely, too. Also elaborates CMAKE_QA_COMPAT_SKIP Signed-off-by: Swagtoy <me <AT> ow.swag.toys> Part-of: https://github.com/gentoo/gentoo/pull/45202 Closes: https://github.com/gentoo/gentoo/pull/45202 Signed-off-by: Sam James <sam <AT> gentoo.org> games-arcade/supertux/supertux-0.7.0_beta1.ebuild | 24 ++++++++++++++++------ ...tux-0.7.0_beta1.ebuild => supertux-9999.ebuild} | 24 ++++++++++++++++------ 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/games-arcade/supertux/supertux-0.7.0_beta1.ebuild b/games-arcade/supertux/supertux-0.7.0_beta1.ebuild index 98f6f4508e7d..c1fe48b131a2 100644 --- a/games-arcade/supertux/supertux-0.7.0_beta1.ebuild +++ b/games-arcade/supertux/supertux-0.7.0_beta1.ebuild @@ -3,19 +3,28 @@ 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" -MY_PV="${PV/_rc/-rc.}" -MY_PV="${MY_PV/_beta/-beta.}" -MY_P="SuperTux-v${MY_PV}-Source" +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 -SRC_URI="https://github.com/SuperTux/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz" -KEYWORDS="~amd64 ~arm64 ~x86" -S="${WORKDIR}/${MY_P}" + 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 ~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" @@ -58,6 +67,9 @@ src_configure() { -DIS_SUPERTUX_RELEASE=ON -DENABLE_OPENGL="$(usex opengl)" -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. diff --git a/games-arcade/supertux/supertux-0.7.0_beta1.ebuild b/games-arcade/supertux/supertux-9999.ebuild similarity index 77% copy from games-arcade/supertux/supertux-0.7.0_beta1.ebuild copy to games-arcade/supertux/supertux-9999.ebuild index 98f6f4508e7d..c1fe48b131a2 100644 --- a/games-arcade/supertux/supertux-0.7.0_beta1.ebuild +++ b/games-arcade/supertux/supertux-9999.ebuild @@ -3,19 +3,28 @@ 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" -MY_PV="${PV/_rc/-rc.}" -MY_PV="${MY_PV/_beta/-beta.}" -MY_P="SuperTux-v${MY_PV}-Source" +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 -SRC_URI="https://github.com/SuperTux/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz" -KEYWORDS="~amd64 ~arm64 ~x86" -S="${WORKDIR}/${MY_P}" + 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 ~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" @@ -58,6 +67,9 @@ src_configure() { -DIS_SUPERTUX_RELEASE=ON -DENABLE_OPENGL="$(usex opengl)" -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.
