Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2019 19:10:04 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r496100 - head/devel/qca
Message-ID:  <201903171910.x2HJA4hd055313@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903171910.x2HJA4hd055313>