commit:     3974e705f756f850899c5ad3f38aa448059a4987
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 31 21:20:08 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Sep  1 16:28:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3974e705

sci-libs/levmar: update EAPI 7 -> 8, fix build w/ cmake-4

Closes: https://bugs.gentoo.org/962048
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-libs/levmar/files/levmar-2.6-cmake4.patch | 26 ++++++++++++++++++++++++++
 sci-libs/levmar/levmar-2.6-r1.ebuild          | 11 ++++++-----
 2 files changed, 32 insertions(+), 5 deletions(-)

diff --git a/sci-libs/levmar/files/levmar-2.6-cmake4.patch 
b/sci-libs/levmar/files/levmar-2.6-cmake4.patch
new file mode 100644
index 000000000000..dc22c65434b4
--- /dev/null
+++ b/sci-libs/levmar/files/levmar-2.6-cmake4.patch
@@ -0,0 +1,26 @@
+From 1f62addb14438d89c60ebbf28985d46d30520a47 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <[email protected]>
+Date: Sun, 31 Aug 2025 23:17:51 +0200
+Subject: [PATCH] Fix build w/ cmake-4
+
+Signed-off-by: Andreas Sturmlechner <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d138776..ad6b968 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,7 +1,7 @@
+ # levmar CMake file; see http://www.cmake.org and 
+ #                        
http://www.insightsoftwareconsortium.org/wiki/index.php/CMake_Tutorial
+ 
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
+ PROJECT(LEVMAR)
+ 
+ SET(HAVE_LAPACK 1 CACHE BOOL "Do we have LAPACK/BLAS?")
+-- 
+2.51.0
+

diff --git a/sci-libs/levmar/levmar-2.6-r1.ebuild 
b/sci-libs/levmar/levmar-2.6-r1.ebuild
index c1e0151de459..08ffdc464a99 100644
--- a/sci-libs/levmar/levmar-2.6-r1.ebuild
+++ b/sci-libs/levmar/levmar-2.6-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit cmake toolchain-funcs
 
@@ -21,15 +21,16 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
+DOCS=( README.txt )
+
 PATCHES=(
+       "${FILESDIR}"/${P}-cmake4.patch
        "${FILESDIR}"/${P}-shared.patch
        "${FILESDIR}"/${P}-demo-underlinking.patch
 )
 
-DOCS=(README.txt)
-
 src_configure() {
-       local mycmakeargs+=(
+       local mycmakeargs=(
                -DNEED_F2C=OFF
                -DHAVE_LAPACK=ON
                -DLAPACKBLAS_LIB_NAMES="$($(tc-getPKG_CONFIG) --libs blas 
lapack)"

Reply via email to