sci-ml/foxi: fix cmake and lto

Closes: https://bugs.gentoo.org/958015
Closes: https://bugs.gentoo.org/957395
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2025-06-16 22:13:41 +02:00
parent e5588907f8
commit cc4f7fbe9f
2 changed files with 21 additions and 1 deletions

View File

@@ -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")

View File

@@ -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
}