diff --git a/sci-ml/foxi/files/foxi-2021.05.27-cmake.patch b/sci-ml/foxi/files/foxi-2021.05.27-cmake.patch new file mode 100644 index 0000000000000..ed3c07f25d1aa --- /dev/null +++ b/sci-ml/foxi/files/foxi-2021.05.27-cmake.patch @@ -0,0 +1,9 @@ +--- a/CMakeLists.txt 2025-06-16 22:04:30.852811014 +0200 ++++ b/CMakeLists.txt 2025-06-16 22:04:59.804503623 +0200 +@@ -1,5 +1,5 @@ + # Minimum CMake required +-cmake_minimum_required(VERSION 3.1) ++cmake_minimum_required(VERSION 3.5) + # Set default build type + if(NOT CMAKE_BUILD_TYPE) + message(STATUS "Build type not set - defaulting to Release") diff --git a/sci-ml/foxi/foxi-2021.05.27.ebuild b/sci-ml/foxi/foxi-2021.05.27.ebuild index 22aa3350c9bce..a80ac4d0b79c8 100644 --- a/sci-ml/foxi/foxi-2021.05.27.ebuild +++ b/sci-ml/foxi/foxi-2021.05.27.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake +inherit cmake dot-a CommitId=c278588e34e535f0bb8f00df3880d26928038cad @@ -21,4 +21,15 @@ RESTRICT="test" # No test available PATCHES=( "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-cmake.patch ) + +src_configure() { + lto-guarantee-fat + cmake_src_configure +} + +src_install() { + cmake_src_install + strip-lto-bytecode +}