git: bf3d1db99963 - main - math/suitesparse-klu: upgrade to 2.0.0

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

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

commit bf3d1db9996304199a5a2ca5f93e9974f755e20c
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-11-14 17:08:17 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-11-27 11:09:55 +0000

    math/suitesparse-klu: upgrade to 2.0.0
    
    PR:             267742
---
 math/suitesparse-klu/Makefile                      | 11 +++++++++--
 math/suitesparse-klu/files/patch-KLU_Demo_Makefile | 18 ------------------
 math/suitesparse-klu/pkg-plist                     | 12 ++++++++++--
 3 files changed, 19 insertions(+), 22 deletions(-)

diff --git a/math/suitesparse-klu/Makefile b/math/suitesparse-klu/Makefile
index 99c6354a0b5f..b871a217f1b4 100644
--- a/math/suitesparse-klu/Makefile
+++ b/math/suitesparse-klu/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	${MPORTNAME:tl}
-PORTVERSION=	1.3.9
+PORTVERSION=	2.0.0
 CATEGORIES=	math
 
 COMMENT=	Sparse LU factorization, for circuit simulation
@@ -16,10 +16,17 @@ LIB_DEPENDS=	libmetis.so:math/metis		\
 		libcholmod.so:math/suitesparse-cholmod
 
 USES=		localbase:ldflags
-OMP_NEEDED=	yes
 
 MPORTNAME=	KLU
 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-klu/files/patch-KLU_Demo_Makefile b/math/suitesparse-klu/files/patch-KLU_Demo_Makefile
deleted file mode 100644
index a8e5fa35797b..000000000000
--- a/math/suitesparse-klu/files/patch-KLU_Demo_Makefile
+++ /dev/null
@@ -1,18 +0,0 @@
---- KLU/Demo/Makefile.orig	2021-05-17 01:04:52 UTC
-+++ KLU/Demo/Makefile
-@@ -32,15 +32,7 @@ all: library klu_simple kludemo kluldemo
- 	- ./kluldemo < ../Matrix/ctina.mtx
- 
- library:
--	( cd ../../SuiteSparse_config ; $(MAKE) )
- 	( cd ../Lib ; $(MAKE) )
--	( cd ../../BTF ; $(MAKE) library )
--	( cd ../../AMD ; $(MAKE) library )
--	( cd ../../COLAMD ; $(MAKE) library )
--	( cd ../../CHOLMOD ; $(MAKE) library )
--	- ( cd ../../CAMD ; $(MAKE) )
--	- ( cd ../../CCOLAMD ; $(MAKE) )
--	- ( cd ../.. ; $(MAKE) metis )
- 
- purge: distclean
- 
diff --git a/math/suitesparse-klu/pkg-plist b/math/suitesparse-klu/pkg-plist
index be3e628039a5..114e475a4888 100644
--- a/math/suitesparse-klu/pkg-plist
+++ b/math/suitesparse-klu/pkg-plist
@@ -1,6 +1,14 @@
+include/suitesparse/klu_cholmod.h
 include/suitesparse/klu.h
+lib/cmake/SuiteSparse/FindKLU_CHOLMOD.cmake
+lib/cmake/SuiteSparse/FindKLU.cmake
+lib/libklu_cholmod.a
+lib/libklu_cholmod.so
+lib/libklu_cholmod.so.2
+lib/libklu_cholmod.so.2.0.0
+lib/libklu.a
 lib/libklu.so
-lib/libklu.so.1
-lib/libklu.so.1.3.8
+lib/libklu.so.2
+lib/libklu.so.2.0.0
 %%PORTDOCS%%%%DOCSDIR%%/KLU_README.txt
 %%PORTDOCS%%%%DOCSDIR%%/KLU_UserGuide.pdf