svn commit: r496100 - head/devel/qca

Raphael Kubo da Costa rakuco at FreeBSD.org
Sun Mar 17 19:10:05 UTC 2019


Author: rakuco
Date: Sun Mar 17 19:10:04 2019
New Revision: 496100
URL: https://svnweb.freebsd.org/changeset/ports/496100

Log:
  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.

Modified:
  head/devel/qca/Makefile

Modified: head/devel/qca/Makefile
==============================================================================
--- head/devel/qca/Makefile	Sun Mar 17 18:58:49 2019	(r496099)
+++ head/devel/qca/Makefile	Sun Mar 17 19:10:04 2019	(r496100)
@@ -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>


More information about the svn-ports-all mailing list