diff --git a/net/uriparser/Makefile b/net/uriparser/Makefile index 0a7c960abe8f..12a6aafaa4ac 100644 --- a/net/uriparser/Makefile +++ b/net/uriparser/Makefile @@ -1,46 +1,46 @@ PORTNAME= uriparser DISTVERSION= 0.9.6 CATEGORIES= net MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTNAME}-${PORTVERSION}/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= svysh.fbsd@gmail.com COMMENT= URI parsing library WWW= https://github.com/uriparser/uriparser LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= bash:shells/bash +TEST_DEPENDS= googletest>=1.10.0:devel/googletest -USES= cmake:noninja cpe pathfix tar:xz +USES= cmake:noninja,testing cpe pathfix tar:xz CPE_VENDOR= uriparser_project USE_LDCONFIG= yes -CMAKE_OFF= URIPARSER_BUILD_DOCS # will fetch prebuilds from the upstream, if DOCS is selected +CMAKE_TESTING_ON= URIPARSER_BUILD_TESTS -TEST_TARGET= test +CMAKE_OFF= URIPARSER_BUILD_TESTS \ + URIPARSER_BUILD_DOCS # will fetch prebuilds from the upstream, if DOCS is selected PLIST_SUB= DISTVERSION=${DISTVERSION} PORTDOCS= * -OPTIONS_DEFINE= DOCS TEST +OPTIONS_DEFINE= DOCS DOCS_DISTFILES= ${_DISTDOCSFILE} \ ${DISTNAME}.qch DOCS_EXTRACT_ONLY= ${_DISTDOCSFILE} -TEST_BUILD_DEPENDS= googletest>=1.10.0:devel/googletest -TEST_CMAKE_BOOL= URIPARSER_BUILD_TESTS _DISTDOCSFILE= ${_DISTDOCSNAME}.zip _DISTDOCSNAME= ${DISTNAME}-doc post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR}/qch cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/../${_DISTDOCSNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${DISTDIR}/${DISTNAME}.qch ${STAGEDIR}${DOCSDIR}/qch ( ${ECHO} "QCH file is a QT Compressed Help file, generated by doxygen, cf:"; \ ${ECHO} "https://doc.qt.io/qt-5/assistant-details.html"; ) > ${STAGEDIR}${DOCSDIR}/qch/readme-qch .include