commit:     ff650734d3557b5dbf467fd43ee042cfb397acdc
Author:     Steffen Winter <steffen.winter <AT> proton <DOT> me>
AuthorDate: Fri Aug 23 17:31:35 2024 +0000
Commit:     Steffen Winter <stffn.mobil <AT> freenet <DOT> de>
CommitDate: Fri Aug 23 17:33:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ff650734

dev-cpp/fast_float: add 6.1.4

Signed-off-by: Steffen Winter <steffen.winter <AT> proton.me>

 dev-cpp/fast_float/Manifest                |  1 +
 dev-cpp/fast_float/fast_float-6.1.4.ebuild | 32 ++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/dev-cpp/fast_float/Manifest b/dev-cpp/fast_float/Manifest
index 3041e9cd9..4276fa896 100644
--- a/dev-cpp/fast_float/Manifest
+++ b/dev-cpp/fast_float/Manifest
@@ -1 +1,2 @@
 DIST fast_float-6.1.1.tar.gz 97641 BLAKE2B 
f978697e65b455230e6ad1d2fd81d3fd552953b3ab918310102343e44b724c95aa83ee71381ac124459b61e05509cd21365fa8e48f418578716840a1dbc31f37
 SHA512 
934c98ecfc897abd4b36b2b03578d001046659c1499edc6a5bf7432b4e2b7a2425718c82793766c0e60b576e213c47419cf40de2eacfc83aedff2b209d91d742
+DIST fast_float-6.1.4.tar.gz 100445 BLAKE2B 
fa200f622f155f371a2a743f19f7aa01175f64e845e03d35521faa5e256e0447cae317b39ef465e227b7910afd800191ac6d0b6a0fe0a4099c91a1bcce76c4d2
 SHA512 
b43ccdf1fc69d9bb07850f4ea40442e312107e7047d80cb57666ac4a4df4152c438ba6ffb8879824c691a6ce2e1d20c95a47724c5af8d10e5d787455e0a97efe

diff --git a/dev-cpp/fast_float/fast_float-6.1.4.ebuild 
b/dev-cpp/fast_float/fast_float-6.1.4.ebuild
new file mode 100644
index 000000000..c3fa3bd78
--- /dev/null
+++ b/dev-cpp/fast_float/fast_float-6.1.4.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
+}

Reply via email to