dev-cpp/doctest - 2.5.2 (gentoo)

Search

Install

Install this version:

emerge -a =dev-cpp/doctest-2.5.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-cpp/doctest-2.5.2

Or alternatively:

emerge --autounmask-write -a =dev-cpp/doctest-2.5.2

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.5.2 8 ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 0
View Raw Ebuild
# Copyright 2022-2026 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 )"

# 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

Manage flags for this package: euse -i <flag> -p dev-cpp/doctest | euse -E <flag> -p dev-cpp/doctest | euse -D <flag> -p dev-cpp/doctest

Global/Standard Flags

Inherited Eclasses

Manifest for 2.5.2

Type File Size Source URLs
DIST doctest-2.5.2.tar.gz 2243945 bytes https://github.com/doctest/doctest/archive/v2.5.2.tar.gz