git: 8a987ae7893b - main - math/clad: update 1.5 → 1.6

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 20 Jul 2024 08:36:56 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8a987ae7893bb6a61063315b89c2deec792f0d00

commit 8a987ae7893bb6a61063315b89c2deec792f0d00
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-07-20 07:18:42 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-07-20 08:36:51 +0000

    math/clad: update 1.5 → 1.6
    
    Reported by:    portscout
---
 math/clad/Makefile                   |  4 ++--
 math/clad/distinfo                   |  6 +++---
 math/clad/files/patch-CMakeLists.txt | 24 +++++++++++-------------
 math/clad/pkg-plist                  |  2 +-
 4 files changed, 17 insertions(+), 19 deletions(-)

diff --git a/math/clad/Makefile b/math/clad/Makefile
index 4187543719d6..1603487effe5 100644
--- a/math/clad/Makefile
+++ b/math/clad/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	clad
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.5
+DISTVERSION=	1.6
 CATEGORIES=	math
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -35,6 +35,6 @@ post-patch:
 		' \
 		${WRKSRC}/test/lit.cfg
 
-# tests fail to compile: https://github.com/vgvassilev/clad/issues/798
+# tests fail to compile: https://github.com/vgvassilev/clad/issues/993
 
 .include <bsd.port.mk>
diff --git a/math/clad/distinfo b/math/clad/distinfo
index 73891ddb2e0f..5da1dfdef415 100644
--- a/math/clad/distinfo
+++ b/math/clad/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1716351065
-SHA256 (vgvassilev-clad-v1.5_GH0.tar.gz) = fa044d8a161cbe3ed4e97df0e7ab2b1064a7f3fce7593f0a5d583f4bd866bf90
-SIZE (vgvassilev-clad-v1.5_GH0.tar.gz) = 1030298
+TIMESTAMP = 1721434166
+SHA256 (vgvassilev-clad-v1.6_GH0.tar.gz) = 18b4a3694f40d7a1cd510237f83d0be1e3c83c435dd9e1395ac4068e21a77b01
+SIZE (vgvassilev-clad-v1.6_GH0.tar.gz) = 1159962
diff --git a/math/clad/files/patch-CMakeLists.txt b/math/clad/files/patch-CMakeLists.txt
index a253419c073d..8fd367a13fc2 100644
--- a/math/clad/files/patch-CMakeLists.txt
+++ b/math/clad/files/patch-CMakeLists.txt
@@ -1,6 +1,6 @@
---- CMakeLists.txt.orig	2024-05-21 05:35:52 UTC
+--- CMakeLists.txt.orig	2024-07-17 20:27:26 UTC
 +++ CMakeLists.txt
-@@ -317,8 +317,10 @@ if (NOT CLAD_BUILD_STATIC_ONLY)
+@@ -321,8 +321,10 @@ if (NOT CLAD_BUILD_STATIC_ONLY)
      include(GoogleBenchmark)
    endif(CLAD_ENABLE_BENCHMARKS)
  
@@ -9,16 +9,14 @@
    add_subdirectory(demos/ErrorEstimation/PrintModel)
 +  endif()
  
-   # Change the default compiler to the clang which we run clad upon. Our unittests
-   # need to use a supported by clad compiler. Note that's a huge hack and it is
-@@ -331,8 +333,10 @@ if (NOT CLAD_BUILD_STATIC_ONLY)
-   string(REPLACE "-fno-lifetime-dse" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
-   string(REPLACE "-Wno-class-memaccess" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+   if (NOT CLAD_DISABLE_TESTS OR CLAD_ENABLE_BENCHMARKS)
+     # Change the default compiler to the clang which we run clad upon. Our unittests
+@@ -337,7 +339,7 @@ if (NOT CLAD_BUILD_STATIC_ONLY)
+     string(REPLACE "-Wno-class-memaccess" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+   endif()
  
+-  if (NOT CLAD_DISABLE_TESTS)
 +  if (FREEBSD_BUILD_TESTS)
-   add_subdirectory(unittests)
-   add_subdirectory(test)
-+  endif()
- 
-   # Add benchmarking infrastructure.
-   if (CLAD_ENABLE_BENCHMARKS)
+     add_subdirectory(unittests)
+     add_subdirectory(test)
+   endif()
diff --git a/math/clad/pkg-plist b/math/clad/pkg-plist
index af7a92cc2b72..2f8d7d43323a 100644
--- a/math/clad/pkg-plist
+++ b/math/clad/pkg-plist
@@ -18,7 +18,6 @@ include/clad/Differentiator/EstimationModel.h
 include/clad/Differentiator/ExternalRMVSource.h
 include/clad/Differentiator/FunctionTraits.h
 include/clad/Differentiator/HessianModeVisitor.h
-include/clad/Differentiator/JacobianModeVisitor.h
 include/clad/Differentiator/Matrix.h
 include/clad/Differentiator/MultiplexExternalRMVSource.h
 include/clad/Differentiator/NumericalDiff.h
@@ -38,3 +37,4 @@ include/clad/Differentiator/VisitorBase.h
 include/clad/tools/ClangBackendPlugin.h
 include/clad/tools/ClangPlugin.h
 lib/clad.so
+lib/cmake/clad/AddClad.cmake