head	1.3;
access;
symbols
	pkgsrc-2026Q1:1.3.0.6
	pkgsrc-2026Q1-base:1.3
	pkgsrc-2025Q4:1.3.0.4
	pkgsrc-2025Q4-base:1.3
	pkgsrc-2025Q3:1.3.0.2
	pkgsrc-2025Q3-base:1.3
	pkgsrc-2025Q2:1.2.0.8
	pkgsrc-2025Q2-base:1.2
	pkgsrc-2025Q1:1.2.0.6
	pkgsrc-2025Q1-base:1.2
	pkgsrc-2024Q4:1.2.0.4
	pkgsrc-2024Q4-base:1.2
	pkgsrc-2024Q3:1.2.0.2
	pkgsrc-2024Q3-base:1.2
	pkgsrc-2024Q2:1.1.0.10
	pkgsrc-2024Q2-base:1.1
	pkgsrc-2024Q1:1.1.0.8
	pkgsrc-2024Q1-base:1.1
	pkgsrc-2023Q4:1.1.0.6
	pkgsrc-2023Q4-base:1.1
	pkgsrc-2023Q3:1.1.0.4
	pkgsrc-2023Q3-base:1.1
	pkgsrc-2023Q2:1.1.0.2
	pkgsrc-2023Q2-base:1.1;
locks; strict;
comment	@# @;


1.3
date	2025.08.20.11.34.53;	author wiz;	state Exp;
branches;
next	1.2;
commitid	lgT5N7I1hRAxGs7G;

1.2
date	2024.08.25.06.18.37;	author wiz;	state Exp;
branches;
next	1.1;
commitid	BcrSL94SO85mvanF;

1.1
date	2023.05.03.16.56.31;	author nikita;	state Exp;
branches;
next	;
commitid	vEmPxcbCUrELsxnE;


desc
@@


1.3
log
@*: fix build with cmake 4
@
text
@# $NetBSD: Makefile,v 1.2 2024/08/25 06:18:37 wiz Exp $

DISTNAME=	rapidcheck-0.0.0.20220314
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=emil-e/}
GITHUB_PROJECT=	rapidcheck
GITHUB_TAG=	8fafda42e732164db58003e542196e94a28481f9

MAINTAINER=	pkgsrc-users@@NetBSD.org
COMMENT=	QuickCheck clone for C++
HOMEPAGE=	https://github.com/emil-e/rapidcheck
LICENSE=	2-clause-bsd

TEST_DEPENDS=	catch2-[0-9]*:../../devel/catch2

USE_LANGUAGES+=	c c++11
USE_TOOLS+=	cmake

#CXXFLAGS+=	-I${WRKSRC}/extras/catch/include # only to fix tests (rapidcheck/catch.h)
CMAKE_CONFIGURE_ARGS+=	-DBUILD_SHARED_LIBS=ON
CMAKE_CONFIGURE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
CMAKE_CONFIGURE_ARGS+=	-DCMAKE_POSITION_INDEPENDENT_CODE=True
CMAKE_CONFIGURE_ARGS+=	-DRC_ENABLE_EXAMPLES=Off
CMAKE_CONFIGURE_ARGS+=	-DRC_ENABLE_TESTS=Off
CMAKE_CONFIGURE_ARGS+=	-DRC_INSTALL_ALL_EXTRAS=On
CMAKE_CONFIGURE_ARGS+=	-DCMAKE_POLICY_VERSION_MINIMUM=3.5

#do-test: # broken: https://github.com/emil-e/rapidcheck/issues/242
#	@@cd ${BUILD_WRKSRC} && \
#		${SETENV} ${CONFIGURE_ENV} cmake ${CMAKE_CONFIGURE_ARGS} -DRC_ENABLE_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH:Q} && \
#		${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} ${BUILD_TARGET} && \
#		${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test

.include "../../devel/cmake/build.mk"
.include "../../mk/bsd.pkg.mk"
@


1.2
log
@*: replace CMAKE_ARGS with CMAKE_CONFIGURE_ARGS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2023/05/03 16:56:31 nikita Exp $
d26 1
@


1.1
log
@rapidcheck: import as devel/rapidcheck version 0.0.0.20220314

QuickCheck clone for C++ with the goal of being simple to use with as little
boilerplate as possible.

RapidCheck is a C++ framework for property based testing inspired by QuickCheck
and other similar frameworks. In property based testing, you state facts about
your code that given certain precondition should always be true. RapidCheck then
generates random test data to try and find a case for which the property doesn't
hold. If such a case is found, RapidCheck tries to find the smallest case (for
some definition of smallest) for which the property is still false and then
displays this as a counterexample. For example, if the input is an integer,
RapidCheck tries to find the smallest integer for which the property is false.
@
text
@d1 1
a1 1
# $NetBSD$
d20 6
a25 6
CMAKE_ARGS+=	-DBUILD_SHARED_LIBS=ON
CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+=	-DCMAKE_POSITION_INDEPENDENT_CODE=True
CMAKE_ARGS+=	-DRC_ENABLE_EXAMPLES=Off
CMAKE_ARGS+=	-DRC_ENABLE_TESTS=Off
CMAKE_ARGS+=	-DRC_INSTALL_ALL_EXTRAS=On
d29 1
a29 1
#		${SETENV} ${CONFIGURE_ENV} cmake ${CMAKE_ARGS} -DRC_ENABLE_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH:Q} && \
@

