summaryrefslogtreecommitdiff
path: root/dev-cpp/fast_float/fast_float-7.0.0.ebuild
diff options
context:
space:
mode:
authorSteffen Winter <steffen.winter@proton.me>2024-11-24 21:12:23 +0100
committerSam James <sam@gentoo.org>2024-12-01 11:44:36 +0000
commit7d5830ca72b0fa331c9772968a603869647c674a (patch)
treea2b06b27ba32601fddf746f058ce446229edf542 /dev-cpp/fast_float/fast_float-7.0.0.ebuild
parenta1b825f3c954d114b1f34742b47da83c1da167f1 (diff)
downloadgentoo-7d5830ca72b0fa331c9772968a603869647c674a.tar.gz
gentoo-7d5830ca72b0fa331c9772968a603869647c674a.tar.bz2
gentoo-7d5830ca72b0fa331c9772968a603869647c674a.zip
dev-cpp/fast_float: add 7.0.0
Signed-off-by: Steffen Winter <steffen.winter@proton.me> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/fast_float/fast_float-7.0.0.ebuild')
-rw-r--r--dev-cpp/fast_float/fast_float-7.0.0.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-cpp/fast_float/fast_float-7.0.0.ebuild b/dev-cpp/fast_float/fast_float-7.0.0.ebuild
new file mode 100644
index 000000000000..974c160275da
--- /dev/null
+++ b/dev-cpp/fast_float/fast_float-7.0.0.ebuild
@@ -0,0 +1,34 @@
+# 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 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="test"
+
+BDEPEND="test? ( dev-cpp/doctest )"
+
+RESTRICT="!test? ( test )"
+
+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"
+ use test && mycmakeargs+=(
+ -DSYSTEM_DOCTEST=ON
+ # Unconditionally calls FetchContent
+ -DFASTFLOAT_SUPPLEMENTAL_TESTS=OFF
+ )
+
+ sed -i 's/-Werror//' tests/CMakeLists.txt || die
+
+ cmake_src_configure
+}