git: c18ce6011089 - main - science/hdf5: Convert to USES= cmake:testing

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sat, 18 Jan 2025 17:23:52 UTC
The branch main has been updated by diizzy:

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

commit c18ce60110891715f4625d1574c54fc5f372c67d
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-01-18 16:48:56 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-01-18 17:23:17 +0000

    science/hdf5: Convert to USES= cmake:testing
    
    Only build unit test(s) when requested
    
    Approved by:    portmgr (blanket, enhancement)
---
 science/hdf5/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/science/hdf5/Makefile b/science/hdf5/Makefile
index 61d758ca373f..f0be8e44b738 100644
--- a/science/hdf5/Makefile
+++ b/science/hdf5/Makefile
@@ -14,13 +14,14 @@ WWW=		https://www.hdfgroup.org/ \
 LICENSE=	BSD4CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cmake compiler:c11 localbase perl5
+USES=		cmake:testing compiler:c11 localbase perl5
 USE_PERL5=	build
 
 CFLAGS+=	-D__LONG_LONG_SUPPORTED
 CMAKE_ARGS=	-DDEFAULT_API_VERSION=v112 \
 		-DHDF5_INSTALL_CMAKE_DIR=lib/cmake/hdf5 \
 		-DHDF5_INSTALL_INCLUDE_DIR=${PREFIX}/include
+CMAKE_OFF=	BUILD_TESTING
 CMAKE_ON=	HDF5_BUILD_HL_LIB HDF5_BUILD_TOOLS HDF5_ENABLE_INSTRUMENT HDF5_ENABLE_Z_LIB_SUPPORT HDF5_STRICT_FORMAT_CHECKS
 TEST_TARGET=	test
 USE_LDCONFIG=	yes