git: 2b6cdff87661 - main - math/suitesparse-cholmod: upgrade to 4.0.1

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 27 Nov 2022 11:10:13 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2b6cdff87661d57db8920633af1345e9ed38893b

commit 2b6cdff87661d57db8920633af1345e9ed38893b
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-11-14 16:50:19 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-11-27 11:09:54 +0000

    math/suitesparse-cholmod: upgrade to 4.0.1
    
    PR:             267742
---
 math/suitesparse-cholmod/Makefile                  | 12 ++++++++---
 .../files/patch-CHOLMOD_Demo_Makefile              | 18 -----------------
 math/suitesparse-cholmod/pkg-plist                 | 23 +++++-----------------
 3 files changed, 14 insertions(+), 39 deletions(-)

diff --git a/math/suitesparse-cholmod/Makefile b/math/suitesparse-cholmod/Makefile
index 2e948e861e8d..ca2b24b88ed8 100644
--- a/math/suitesparse-cholmod/Makefile
+++ b/math/suitesparse-cholmod/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	${MPORTNAME:tl}
-PORTVERSION=	3.0.14
+PORTVERSION=	4.0.1
 CATEGORIES=	math
 
 COMMENT=	Sparse CHOLesky MODification package
@@ -14,11 +14,17 @@ LIB_DEPENDS=	libmetis.so:math/metis		\
 		libccolamd.so:math/suitesparse-ccolamd
 
 USES=		localbase:ldflags
-BLAS_NEEDED=	yes
-OMP_NEEDED=	yes
 
 MPORTNAME=	CHOLMOD
 USE_LDCONFIG=	yes
 
 .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk"
+
+post-stage-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${BUILD_WRKSRC}/README.txt	\
+		${STAGEDIR}${DOCSDIR}/${MPORTNAME}_README.txt
+	${INSTALL_DATA} ${BUILD_WRKSRC}/Doc/${MPORTNAME}_UserGuide.pdf	\
+		${STAGEDIR}${DOCSDIR}
+
 .include <bsd.port.post.mk>
diff --git a/math/suitesparse-cholmod/files/patch-CHOLMOD_Demo_Makefile b/math/suitesparse-cholmod/files/patch-CHOLMOD_Demo_Makefile
deleted file mode 100644
index 0d38f6d0828c..000000000000
--- a/math/suitesparse-cholmod/files/patch-CHOLMOD_Demo_Makefile
+++ /dev/null
@@ -1,18 +0,0 @@
---- CHOLMOD/Demo/Makefile.orig	2021-05-17 01:04:52 UTC
-+++ CHOLMOD/Demo/Makefile
-@@ -57,15 +57,7 @@ clean:
- 
- #-------------------------------------------------------------------------------
- library: metis
--	( cd ../../SuiteSparse_config ; $(MAKE) )
- 	( cd ../Lib ; $(MAKE) )
--	( cd ../../AMD ; $(MAKE) library )
--	( cd ../../COLAMD ; $(MAKE) library )
--ifneq (,$(findstring -DNCAMD, $(CONFIG_PARTITION)))
--else
--	( cd ../../CCOLAMD ; $(MAKE) library )
--	( cd ../../CAMD ; $(MAKE) library )
--endif
- 
- metis: ../../include/metis.h
- 
diff --git a/math/suitesparse-cholmod/pkg-plist b/math/suitesparse-cholmod/pkg-plist
index f3189c20045c..0fe2f6653d7f 100644
--- a/math/suitesparse-cholmod/pkg-plist
+++ b/math/suitesparse-cholmod/pkg-plist
@@ -1,22 +1,9 @@
 include/suitesparse/cholmod.h
-include/suitesparse/cholmod_blas.h
-include/suitesparse/cholmod_camd.h
-include/suitesparse/cholmod_check.h
-include/suitesparse/cholmod_cholesky.h
-include/suitesparse/cholmod_complexity.h
-include/suitesparse/cholmod_config.h
-include/suitesparse/cholmod_core.h
-include/suitesparse/cholmod_function.h
-include/suitesparse/cholmod_gpu.h
-include/suitesparse/cholmod_gpu_kernels.h
-include/suitesparse/cholmod_io64.h
-include/suitesparse/cholmod_matrixops.h
-include/suitesparse/cholmod_modify.h
-include/suitesparse/cholmod_partition.h
-include/suitesparse/cholmod_supernodal.h
-include/suitesparse/cholmod_template.h
+lib/cmake/SuiteSparse/FindCHOLMOD.cmake
+lib/cmake/SuiteSparse/FindCHOLMOD_CUDA.cmake
+lib/libcholmod.a
 lib/libcholmod.so
-lib/libcholmod.so.3
-lib/libcholmod.so.3.0.14
+lib/libcholmod.so.4
+lib/libcholmod.so.4.0.1
 %%PORTDOCS%%%%DOCSDIR%%/CHOLMOD_README.txt
 %%PORTDOCS%%%%DOCSDIR%%/CHOLMOD_UserGuide.pdf