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