commit: 7fc78b63a26b36d501c28f86943436b0449519b8 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Sun Mar 23 10:37:40 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Mar 25 04:23:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fc78b63
games-strategy/megaglest-data: update EAPI 7 -> 8, bump minimum CMake version Closes: https://bugs.gentoo.org/951889 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/41234 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/megaglest-data-3.13.0-cmake4.patch | 24 ++++++++++++++++ .../megaglest-data/megaglest-data-3.13.0-r1.ebuild | 33 ++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/games-strategy/megaglest-data/files/megaglest-data-3.13.0-cmake4.patch b/games-strategy/megaglest-data/files/megaglest-data-3.13.0-cmake4.patch new file mode 100644 index 000000000000..f5408771b9be --- /dev/null +++ b/games-strategy/megaglest-data/files/megaglest-data-3.13.0-cmake4.patch @@ -0,0 +1,24 @@ +Fix build with CMake 4 +https://github.com/MegaGlest/megaglest-data/commit/df2ae0a5f6300a4a9d16efa024e177fbe7b6ff9a +https://bugs.gentoo.org/951889 +From df2ae0a5f6300a4a9d16efa024e177fbe7b6ff9a Mon Sep 17 00:00:00 2001 +From: Jammyjamjamman <[email protected]> +Date: Sat, 4 Mar 2023 21:25:45 +0000 +Subject: [PATCH] Bump minimum cmake + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 58e57263..1e860c4c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,6 +1,6 @@ + ################################################################################## + # Game data +-CMAKE_MINIMUM_REQUIRED( VERSION 2.8.2 ) ++CMAKE_MINIMUM_REQUIRED( VERSION 3.10 ) + PROJECT( MegaGlest ) + + OPTION(WANT_INSTALL_DATA "Install MegaGlest's data" ON) diff --git a/games-strategy/megaglest-data/megaglest-data-3.13.0-r1.ebuild b/games-strategy/megaglest-data/megaglest-data-3.13.0-r1.ebuild new file mode 100644 index 000000000000..aa28f68ba941 --- /dev/null +++ b/games-strategy/megaglest-data/megaglest-data-3.13.0-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Data files for the cross-platform 3D realtime strategy game MegaGlest" +HOMEPAGE="https://www.megaglest.org/" +SRC_URI="https://github.com/MegaGlest/megaglest-data/releases/download/${PV}/${P}.tar.xz" +S="${WORKDIR}/megaglest-${PV}" + +LICENSE="CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc" + +PATCHES=( "${FILESDIR}/${P}-cmake4.patch" ) + +src_configure() { + local mycmakeargs=( + -DMEGAGLEST_APPDATA_INSTALL_PATH="${EPREFIX}"/usr/share/metainfo #709450 + ) + + cmake_src_configure +} + +src_install() { + local DOCS=( docs/{AUTHORS.data,CHANGELOG,README}.txt ) + use doc && local HTML_DOCS=( docs/glest_factions ) + + cmake_src_install +}
