git: e685bdfb31f2 - main - math/alglib: Update 3.17.0 -> 3.18.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 07 Nov 2021 09:02:25 UTC
The branch main has been updated by yuri:

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

commit e685bdfb31f2d75a0e13264d52cf50fb2bd414a5
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-11-07 09:01:18 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-11-07 09:02:19 +0000

    math/alglib: Update 3.17.0 -> 3.18.0
    
    Also add the 'test' target.
    
    Reported by:    portscout
---
 math/alglib/Makefile  | 10 ++++++++--
 math/alglib/distinfo  |  6 +++---
 math/alglib/pkg-plist |  3 +++
 3 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/math/alglib/Makefile b/math/alglib/Makefile
index ca8cbb820072..345c824d13b1 100644
--- a/math/alglib/Makefile
+++ b/math/alglib/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	alglib
-DISTVERSION=	3.17.0
+DISTVERSION=	3.18.0
 CATEGORIES=	math science
 MASTER_SITES=	https://www.alglib.net/translator/re/
 EXTRACT_SUFX=	.cpp.gpl.zip
@@ -11,7 +11,7 @@ LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/gpl3.txt
 
 USE_LDCONFIG=	yes
-WRKSRC=		${WRKDIR}/cpp
+WRKSRC=		${WRKDIR}/${PORTNAME}-cpp
 
 do-build:
 	cd ${WRKSRC}/src && \
@@ -23,4 +23,10 @@ do-install:
 	${INSTALL_LIB} ${WRKSRC}/src/lib${PORTNAME}.so.3 ${STAGEDIR}${PREFIX}/lib
 	@${LN} -s lib${PORTNAME}.so.3 ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so
 
+do-test:
+	@cd ${WRKSRC} && \
+		cd tests && \
+		${CXX} ${CXXFLAGS} test_c.cpp -I ${STAGEDIR}${LOCALBASE}/include/libalglib ${STAGEDIR}${LOCALBASE}/lib/lib${PORTNAME}.so && \
+		LD_PRELOAD=${STAGEDIR}${LOCALBASE}/lib/lib${PORTNAME}.so ./a.out
+
 .include <bsd.port.mk>
diff --git a/math/alglib/distinfo b/math/alglib/distinfo
index 309190837cbb..65055984ff22 100644
--- a/math/alglib/distinfo
+++ b/math/alglib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1609303656
-SHA256 (alglib-3.17.0.cpp.gpl.zip) = 96d61e8ad68e715dfada6aa25eef014eb14d59573809b84e3e393dbf896d40a7
-SIZE (alglib-3.17.0.cpp.gpl.zip) = 3076017
+TIMESTAMP = 1636274405
+SHA256 (alglib-3.18.0.cpp.gpl.zip) = b9045b3c569d351a6bc093ee0166cb72003aca92dc0f95cb7076d3b32dd58c0c
+SIZE (alglib-3.18.0.cpp.gpl.zip) = 3175116
diff --git a/math/alglib/pkg-plist b/math/alglib/pkg-plist
index 04b5a75cedf4..87da94742d57 100644
--- a/math/alglib/pkg-plist
+++ b/math/alglib/pkg-plist
@@ -6,6 +6,9 @@ include/libalglib/diffequations.h
 include/libalglib/fasttransforms.h
 include/libalglib/integration.h
 include/libalglib/interpolation.h
+include/libalglib/kernels_avx2.h
+include/libalglib/kernels_fma.h
+include/libalglib/kernels_sse2.h
 include/libalglib/linalg.h
 include/libalglib/optimization.h
 include/libalglib/solvers.h