1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00

Add a TEST option and set TEST_TARGET.

This also allows us to get rid of the sed hack in post-patch now that
patch-git_e854f357 handles the dependency on qt5-network correctly.
This commit is contained in:
Raphael Kubo da Costa 2019-03-17 19:10:04 +00:00
parent 16f6597468
commit 91bba29459
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=496100

View File

@ -30,7 +30,7 @@ USE_QT= core buildtools_build qmake_build
PLIST_SUB= SHLIB_VER=${PORTVERSION}
OPTIONS_DEFINE= GNUPG OPENSSL SASL
OPTIONS_DEFINE= GNUPG OPENSSL SASL TEST
OPTIONS_DEFAULT=GNUPG OPENSSL
OPTIONS_SUB= yes
@ -43,8 +43,8 @@ OPENSSL_USES= ssl
SASL_CMAKE_ON= -DWITH_cyrus-sasl_PLUGIN=yes
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
post-patch:
# Qt Network module is used for tests only
${REINPLACE_CMD} 's,Core Network,Core,' ${WRKSRC}/CMakeLists.txt
TEST_CMAKE_BOOL= BUILD_TESTS
TEST_TEST_TARGET= test
TEST_USE= QT=network,testlib
.include <bsd.port.mk>