diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-10-16 07:21:31 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-10-16 07:21:31 +0000 |
| commit | 52c4dac4ff4335778d998dd2e3195434d295224a (patch) | |
| tree | 1f51aa8e0b6de96354565cb37f22e727945bec8e /dev-cpp/fast_float/fast_float-6.1.6.ebuild | |
| parent | f062ee2920df18a3c4ea8f1f1514a066e4332a76 (diff) | |
| download | srcux-52c4dac4ff4335778d998dd2e3195434d295224a.tar.gz srcux-52c4dac4ff4335778d998dd2e3195434d295224a.tar.xz srcux-52c4dac4ff4335778d998dd2e3195434d295224a.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp/fast_float/fast_float-6.1.6.ebuild')
| -rw-r--r-- | dev-cpp/fast_float/fast_float-6.1.6.ebuild | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-cpp/fast_float/fast_float-6.1.6.ebuild b/dev-cpp/fast_float/fast_float-6.1.6.ebuild new file mode 100644 index 000000000000..c3fa3bd789d8 --- /dev/null +++ b/dev-cpp/fast_float/fast_float-6.1.6.ebuild @@ -0,0 +1,32 @@ +# Copyright 2024 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" +IUSE="test" + +BDEPEND="test? ( dev-cpp/doctest )" + +RESTRICT="!test? ( test )" + +src_configure() { + local mycmakeargs=( -DFASTFLOAT_TEST=$(usex test ON OFF) ) + use test && mycmakeargs+=( + -DSYSTEM_DOCTEST=ON + # Unconditionally calls FetchContent + -DFASTFLOAT_SUPPLEMENTAL_TESTS=OFF + ) + + sed -i 's/-Werror//' tests/CMakeLists.txt || die + + cmake_src_configure +} |
