blob: 7186e4812698ef067701ce8f3e680b6c8b04b498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
PORTNAME= rapidcheck
PORTVERSION= g20200504
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= QuickCheck clone for C++
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
TEST_DEPENDS= catch>0:devel/catch
USES= cmake compiler:c++11-lang localbase
USE_GITHUB= yes
GH_ACCOUNT= emil-e
GH_TAGNAME= 7bc7d30
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS
CXXFLAGS+= -Wno-error
post-install:
@${MV} ${STAGEDIR}${DATADIR}/cmake ${STAGEDIR}${PREFIX}/lib/
@${RMDIR} ${STAGEDIR}${DATADIR}
do-test: # broken: https://github.com/emil-e/rapidcheck/issues/242
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DRC_ENABLE_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>
|