pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/eigen2



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Aug 17 12:25:02 UTC 2025

Modified Files:
        pkgsrc/math/eigen2: Makefile distinfo
Added Files:
        pkgsrc/math/eigen2/patches: patch-doc_examples_CMakeLists.txt
            patch-doc_snippets_CMakeLists.txt

Log Message:
eigen2: fix build with cmake 4


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/math/eigen2/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/math/eigen2/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/math/eigen2/patches/patch-doc_examples_CMakeLists.txt \
    pkgsrc/math/eigen2/patches/patch-doc_snippets_CMakeLists.txt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/eigen2/Makefile
diff -u pkgsrc/math/eigen2/Makefile:1.11 pkgsrc/math/eigen2/Makefile:1.12
--- pkgsrc/math/eigen2/Makefile:1.11    Mon Sep  9 12:05:01 2019
+++ pkgsrc/math/eigen2/Makefile Sun Aug 17 12:25:01 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2019/09/09 12:05:01 maya Exp $
+# $NetBSD: Makefile,v 1.12 2025/08/17 12:25:01 wiz Exp $
 
 DISTNAME=      2.0.17
 PKGNAME=       eigen-2.0.17
@@ -17,4 +17,6 @@ USE_LANGUAGES+=       c c++
 USE_CMAKE=     yes
 WRKSRC=                ${WRKDIR}/eigen-eigen-b23437e61a07
 
+CMAKE_CONFIGURE_ARGS+= -DCMAKE_POLICY_VERSION_MINIMUM=3.5
+
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/math/eigen2/distinfo
diff -u pkgsrc/math/eigen2/distinfo:1.12 pkgsrc/math/eigen2/distinfo:1.13
--- pkgsrc/math/eigen2/distinfo:1.12    Tue Oct 26 10:55:38 2021
+++ pkgsrc/math/eigen2/distinfo Sun Aug 17 12:25:01 2025
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.12 2021/10/26 10:55:38 nia Exp $
+$NetBSD: distinfo,v 1.13 2025/08/17 12:25:01 wiz Exp $
 
 BLAKE2s (eigen2/2.0.17.tar.bz2) = 19b56719c342bfa41d37a2790453b539dd66f730a1016d4c18c3194807adb2db
 SHA512 (eigen2/2.0.17.tar.bz2) = 8fa0e4507864f61c30de14e3b29d963eb8b777d1a6bb04192d53e1f4c9db323b9fab2ddcedb63bf2af243fe0e26dcd717e97eb72216b6a1d444e455520192c72
 Size (eigen2/2.0.17.tar.bz2) = 367890 bytes
 SHA1 (patch-Eigen_src_Sparse_AmbiVector.h) = 0f98d635b975c67c92a02078fa563759566513df
+SHA1 (patch-doc_examples_CMakeLists.txt) = c0a2c951ab27832b367fe9251d28b3c044cc8608
+SHA1 (patch-doc_snippets_CMakeLists.txt) = 6c1fd33dfc24002afd25ce7af782cd397ad77c79

Added files:

Index: pkgsrc/math/eigen2/patches/patch-doc_examples_CMakeLists.txt
diff -u /dev/null pkgsrc/math/eigen2/patches/patch-doc_examples_CMakeLists.txt:1.1
--- /dev/null   Sun Aug 17 12:25:02 2025
+++ pkgsrc/math/eigen2/patches/patch-doc_examples_CMakeLists.txt        Sun Aug 17 12:25:01 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-doc_examples_CMakeLists.txt,v 1.1 2025/08/17 12:25:01 wiz Exp $
+
+cmake 4 compatibility.
+
+--- doc/examples/CMakeLists.txt.orig   2025-08-17 12:23:39.090174068 +0000
++++ doc/examples/CMakeLists.txt
+@@ -8,8 +8,6 @@ ADD_EXECUTABLE(${example} ${example_src}
+ if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
+   target_link_libraries(${example} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
+ endif()
+-GET_TARGET_PROPERTY(example_executable
+-                    ${example} LOCATION)
+ ADD_CUSTOM_COMMAND(
+   TARGET ${example}
+   POST_BUILD
Index: pkgsrc/math/eigen2/patches/patch-doc_snippets_CMakeLists.txt
diff -u /dev/null pkgsrc/math/eigen2/patches/patch-doc_snippets_CMakeLists.txt:1.1
--- /dev/null   Sun Aug 17 12:25:02 2025
+++ pkgsrc/math/eigen2/patches/patch-doc_snippets_CMakeLists.txt        Sun Aug 17 12:25:02 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-doc_snippets_CMakeLists.txt,v 1.1 2025/08/17 12:25:02 wiz Exp $
+
+cmake 4 compatibility.
+
+--- doc/snippets/CMakeLists.txt.orig   2025-08-17 12:24:12.594593007 +0000
++++ doc/snippets/CMakeLists.txt
+@@ -14,8 +14,6 @@ ADD_EXECUTABLE(${compile_snippet_target}
+ if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
+   target_link_libraries(${compile_snippet_target} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
+ endif()
+-GET_TARGET_PROPERTY(compile_snippet_executable
+-                    ${compile_snippet_target} LOCATION)
+ ADD_CUSTOM_COMMAND(
+   TARGET ${compile_snippet_target}
+   POST_BUILD



Home | Main Index | Thread Index | Old Index