git: 885c4a582d1f - main - security/helib: Update 2.2.2 → 2.3.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 19 Jul 2023 08:17:49 UTC
The branch main has been updated by yuri:

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

commit 885c4a582d1fa8e638cc7289b065a063a282027e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-18 13:54:02 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-19 08:17:40 +0000

    security/helib: Update 2.2.2 → 2.3.0
    
    Reported by:    portscout
---
 security/helib/Makefile | 12 ++++++++----
 security/helib/distinfo |  6 +++---
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/security/helib/Makefile b/security/helib/Makefile
index d1e194dea7f4..26b428af5a7d 100644
--- a/security/helib/Makefile
+++ b/security/helib/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	helib
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2.2.2
+DISTVERSION=	2.3.0
 CATEGORIES=	security
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -8,22 +8,26 @@ COMMENT=	Implementation of homomorphic encryption
 WWW=		https://github.com/homenc/HElib
 
 LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
 NOT_FOR_ARCHS=	armv6 armv7 i386 mips powerpc powerpcspe
 
 LIB_DEPENDS=	libgmp.so:math/gmp \
 		libntl.so:math/ntl
 
-USES=		cmake compiler:c++17-lang
+USES=		cmake:testing compiler:c++17-lang
+USE_LDCONFIG=	yes
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	homenc
 GH_PROJECT=	HElib
-USE_LDCONFIG=	yes
 
 CMAKE_ON=	BUILD_SHARED
+CMAKE_OFF=	PEDANTIC_BUILD # disable -Werror that breaks tests build
+CMAKE_TESTING_ON=	ENABLE_TEST
 CMAKE_ARGS=	-DNTL_DIR=${LOCALBASE}
 
-do-test:
+xdo-test:
 	@cd ${BUILD_WRKSRC} && \
 		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DENABLE_TEST:BOOL=ON ${CMAKE_SOURCE_PATH} && \
 		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
diff --git a/security/helib/distinfo b/security/helib/distinfo
index 50696f2423ff..80ad1d16cb18 100644
--- a/security/helib/distinfo
+++ b/security/helib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1670572906
-SHA256 (homenc-HElib-v2.2.2_GH0.tar.gz) = 70c07d2a2da393c695095fe755836524e3d98efb27a336e206291f71db9cec7d
-SIZE (homenc-HElib-v2.2.2_GH0.tar.gz) = 2428171
+TIMESTAMP = 1689753442
+SHA256 (homenc-HElib-v2.3.0_GH0.tar.gz) = 05c87f2b50d4774e16868ba61a7271930dd67f4ad137f30eb0f310969377bc20
+SIZE (homenc-HElib-v2.3.0_GH0.tar.gz) = 2443377