diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-06 20:29:13 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-06 20:29:13 +0000 |
| commit | 1cac02e9d606a290b8620320118b320a0050cde9 (patch) | |
| tree | b5e67d8537e6b3dbba65a980b54dd4ff273d9729 /dev-cpp/fast_float/fast_float-8.0.0.ebuild | |
| parent | bf2303e6bf93b4b9382690091cced410b34f6545 (diff) | |
| download | srcux-1cac02e9d606a290b8620320118b320a0050cde9.tar.gz srcux-1cac02e9d606a290b8620320118b320a0050cde9.tar.xz srcux-1cac02e9d606a290b8620320118b320a0050cde9.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp/fast_float/fast_float-8.0.0.ebuild')
| -rw-r--r-- | dev-cpp/fast_float/fast_float-8.0.0.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-cpp/fast_float/fast_float-8.0.0.ebuild b/dev-cpp/fast_float/fast_float-8.0.0.ebuild new file mode 100644 index 000000000000..a1159186ae55 --- /dev/null +++ b/dev-cpp/fast_float/fast_float-8.0.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Fast and exact implementation of the C++ from_chars functions for number types" +HOMEPAGE="https://github.com/fastfloat/fast_float" +SRC_URI="https://github.com/fastfloat/fast_float/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( Apache-2.0 Boost-1.0 MIT )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-cpp/doctest )" + +src_configure() { + local mycmakeargs=( -DFASTFLOAT_TEST=$(usex test) ) + + # Avoid passing these without USE=test to avoid cmake warning + # "Manually-specified variables were not used by the project" + if use test; then + mycmakeargs+=( + -DSYSTEM_DOCTEST=ON + # Unconditionally calls FetchContent + -DFASTFLOAT_SUPPLEMENTAL_TESTS=OFF + ) + sed -i 's/-Werror//' tests/CMakeLists.txt || die + fi + + cmake_src_configure +} |
