2025-10-15 00:02:47 -07:00

38 lines
1.0 KiB
Makefile

PORTNAME= xtl
DISTVERSION= 0.8.1
CATEGORIES= devel
PKGNAMESUFFIX= -quant-stack
MAINTAINER= yuri@FreeBSD.org
COMMENT= Template library that supports other quantstack projects
WWW= https://github.com/xtensor-stack/xtl
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
RUN_DEPENDS= nlohmann-json>0:devel/nlohmann-json
TEST_DEPENDS= doctest>0:devel/doctest \
nlohmann-json>0:devel/nlohmann-json \
googletest>0:devel/googletest
USES= cmake
USE_GITHUB= yes
GH_ACCOUNT= xtensor-stack
NO_BUILD= yes
NO_ARCH= yes
do-test:
@cd ${WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -Dxtl_DIR:STRING=${STAGEDIR}${PREFIX}/lib/cmake/xtl -DBUILD_TESTS=ON -DDOWNLOAD_GTEST=OFF && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} xtest
# tests as of 0.8.1:
# doctest] test cases: 224 | 224 passed | 0 failed | 0 skipped
# [doctest] assertions: 1214 | 1214 passed | 0 failed |
# [doctest] Status: SUCCESS!
.include <bsd.port.mk>