From 35b04648a390ebc6b10218d9db0dcfd97bf16078 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Tue, 13 May 2025 21:30:56 +0100 Subject: [PATCH] dev-games/recastnavigation: fix build with cmake 4 Closes: https://bugs.gentoo.org/955845 Signed-off-by: Alexey Sokolov Part-of: https://github.com/gentoo/gentoo/pull/42078 Closes: https://github.com/gentoo/gentoo/pull/42078 Signed-off-by: Sam James --- .../files/recastnavigation-1.6.0-cmake4.patch | 11 +++++++++++ ...-1.6.0.ebuild => recastnavigation-1.6.0-r1.ebuild} | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 dev-games/recastnavigation/files/recastnavigation-1.6.0-cmake4.patch rename dev-games/recastnavigation/{recastnavigation-1.6.0.ebuild => recastnavigation-1.6.0-r1.ebuild} (90%) 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 0000000000000..9a756ad06865f --- /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 588293ef40f92..478c7deabc276 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