summaryrefslogtreecommitdiff
path: root/graphics/clang-uml/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/clang-uml/Makefile')
-rw-r--r--graphics/clang-uml/Makefile23
1 files changed, 20 insertions, 3 deletions
diff --git a/graphics/clang-uml/Makefile b/graphics/clang-uml/Makefile
index 783c7d7f6f16..9175e72d4030 100644
--- a/graphics/clang-uml/Makefile
+++ b/graphics/clang-uml/Makefile
@@ -1,5 +1,5 @@
PORTNAME= clang-uml
-PORTVERSION= 0.6.1
+PORTVERSION= 0.6.2
CATEGORIES= graphics lang textproc
MAINTAINER= arrowd@FreeBSD.org
@@ -11,12 +11,29 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md
LIB_DEPENDS= libyaml-cpp.so:devel/yaml-cpp
-USES= cmake compiler:c++17-lang llvm:noexport,lib localbase:ldflags
+USES= cmake:testing compiler:c++17-lang llvm:noexport,lib \
+ localbase:ldflags
-CMAKE_ARGS+= -DCLANG_UML_ENABLE_BACKTRACE=OFF \
+CMAKE_ARGS= -DCLANG_UML_ENABLE_BACKTRACE=OFF \
-DBUILD_TESTS=OFF
+CMAKE_TESTING_ON=BUILD_TESTS
USE_GITHUB= yes
GH_ACCOUNT= bkryza
+BUILD_WRKSRC_TESTS= ${BUILD_WRKSRC}/tests
+TESTING_UNSAFE= some tests fail
+
+pre-test:
+ @if [ "${BUILD_WRKSRC_TESTS:H:H}" != "${WRKDIR}" ]; then \
+ ${ECHO_CMD} This software expects tests data to be located at \
+ ../../tests relative to ;\
+ ${ECHO_CMD} ${BUILD_WRKSRC_TESTS} ;\
+ ${ECHO_CMD} but this path is outside of ;\
+ ${ECHO_CMD} ${WRKDIR}; \
+ ${FALSE}; \
+ fi
+ ${RM} ${WRKDIR}/tests
+ ${LN} -s ${WRKSRC}/tests ${WRKDIR}/tests
+
.include <bsd.port.mk>