dev-cpp/doctest: add 2.5.2

The patch from PR 770 was removed, as it no longer applies cleanly. The
test was changed, most probably in a good direction for HPPA.

Bug: https://bugs.gentoo.org/874345
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
This commit is contained in:
Petr Vaněk
2026-04-17 08:32:12 +02:00
parent 872ac6c08a
commit e08dd06555
2 changed files with 32 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST doctest-2.4.12.tar.gz 2188849 BLAKE2B 94f2eb2988a175f52b1e75f4d84cfdce278ed647825d5a845284622efa9a9a921f958d0cf21e9215e0afebdcfa3ae82f87cc8b5d78f2ec7a3ef07b07457e81f7 SHA512 d55aae632e6d66add7b65d0e97bde5063cdae7512836f278613af35957c62dbc6b0b0febbe2eb1eddd334a7a5343faca7357a2eeebbf1428cafffeb5d18e610c
DIST doctest-2.5.2.tar.gz 2243945 BLAKE2B 37b9936b3427e47e926e40005eaa951c1100ec19135a5920da43a2c61458480bd38cea3d07f80702e7a17639317460115a0e00f696f5e6181c9cddc0bb4ffa70 SHA512 9105552d3e6a1e21f6342cf3a3ed4521d1535336fbbd2243515092206746aa1da90a2e0df8043079b181114b63bac1f3f414e34e391a6815eba09e28802342de

View File

@@ -0,0 +1,31 @@
# 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
}