commit: 35b04648a390ebc6b10218d9db0dcfd97bf16078 Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org> AuthorDate: Tue May 13 20:30:56 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu May 22 00:34:53 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35b04648
dev-games/recastnavigation: fix build with cmake 4 Closes: https://bugs.gentoo.org/955845 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org> Part-of: https://github.com/gentoo/gentoo/pull/42078 Closes: https://github.com/gentoo/gentoo/pull/42078 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/recastnavigation-1.6.0-cmake4.patch | 11 +++++++++++ ...vigation-1.6.0.ebuild => recastnavigation-1.6.0-r1.ebuild} | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/dev-games/recastnavigation/files/recastnavigation-1.6.0-cmake4.patch b/dev-games/recastnavigation/files/recastnavigation-1.6.0-cmake4.patch new file mode 100644 index 000000000000..9a756ad06865 --- /dev/null +++ b/dev-games/recastnavigation/files/recastnavigation-1.6.0-cmake4.patch @@ -0,0 +1,11 @@ +https://github.com/recastnavigation/recastnavigation/pull/775 +https://bugs.gentoo.org/955845 + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1) ++cmake_minimum_required(VERSION 3.1...4.0) + + project(RecastNavigation) + diff --git a/dev-games/recastnavigation/recastnavigation-1.6.0.ebuild b/dev-games/recastnavigation/recastnavigation-1.6.0-r1.ebuild similarity index 90% rename from dev-games/recastnavigation/recastnavigation-1.6.0.ebuild rename to dev-games/recastnavigation/recastnavigation-1.6.0-r1.ebuild index 588293ef40f9..478c7deabc27 100644 --- a/dev-games/recastnavigation/recastnavigation-1.6.0.ebuild +++ b/dev-games/recastnavigation/recastnavigation-1.6.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -18,6 +18,10 @@ RESTRICT="!test? ( test )" DEPEND="test? ( dev-cpp/catch:0 )" +PATCHES=( + "${FILESDIR}/${P}-cmake4.patch" +) + src_prepare() { rm -r Tests/Contrib/catch2 || die