dev-cpp/doctest - 2.4.12 (gentoo)

Search

Package Information

Description:
The fastest feature-rich C++11/14/17/20 single-header testing framework
Homepage:
https://github.com/doctest/doctest
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
2.4.12 8 ~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 0
View Raw Ebuild
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="The fastest feature-rich C++11/14/17/20 single-header testing framework"
HOMEPAGE="https://github.com/doctest/doctest"
SRC_URI="https://github.com/doctest/doctest/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
IUSE="test"
RESTRICT="!test? ( test )"

PATCHES=(
	"${FILESDIR}/${PN}-2.4.11-backport-pr770.patch"
)

# skip false positive detection in examples, bug #957418
CMAKE_QA_COMPAT_SKIP=1

src_prepare() {
	sed -i '/-Werror/d' scripts/cmake/common.cmake || die
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DDOCTEST_WITH_TESTS=$(usex test)
	)
	cmake_src_configure
}

USE Flags

Manifest for 2.4.12

Type File Size Source URLs
DIST doctest-2.4.12.tar.gz 2188849 bytes https://github.com/doctest/doctest/archive/v2.4.12.tar.gz