summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Teixeira <eduardo@FreeBSD.org>2025-08-31 23:12:12 +0100
committerNuno Teixeira <eduardo@FreeBSD.org>2025-08-31 23:57:05 +0100
commit81022457b0f996dfee52cb51ee72c279417a5733 (patch)
treea7b191d2c3627f40005c295880f189971b4823b3
parentarchivers/maxcso: Update to 1.13.0-36 (diff)
archivers/innoextract: Improve tests logic
Use framework cmake:testing feature instead of manual commands. Reported by: diizzy
Diffstat (limited to '')
-rw-r--r--archivers/innoextract/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/archivers/innoextract/Makefile b/archivers/innoextract/Makefile
index 52aaabdd4ecc..d14ae98fb73d 100644
--- a/archivers/innoextract/Makefile
+++ b/archivers/innoextract/Makefile
@@ -12,18 +12,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= boost-libs>0:devel/boost-libs
-USES= cmake compiler:c++11-lang iconv localbase:ldflags
+USES= cmake:testing compiler:c++11-lang iconv localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= dscharrer
CMAKE_ON= Boost_USE_STATIC_LIBS
+CMAKE_TESTING_ON= BUILD_TESTS
+CMAKE_TESTING_TARGET= check
PLIST_FILES= bin/innoextract \
share/man/man1/innoextract.1.gz
-do-test:
- @cd ${BUILD_WRKSRC} && \
- ${SETENVI} ${WRK_ENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
- ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
- ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} check
-
.include <bsd.port.mk>