summaryrefslogtreecommitdiff
path: root/dev-cpp/fast_float/fast_float-6.1.1.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-03-22 18:46:23 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-03-22 18:46:23 +0000
commit6958baae8a3ca94ae5a13ce8099b2f07d5001fce (patch)
treee966b88bcd564cf36d77d54c46dfb16c39b8f3bb /dev-cpp/fast_float/fast_float-6.1.1.ebuild
parent6d9fac923dec3d5f0766bcd8a7e63970a1f91d9e (diff)
downloadsrcux-6958baae8a3ca94ae5a13ce8099b2f07d5001fce.tar.gz
srcux-6958baae8a3ca94ae5a13ce8099b2f07d5001fce.tar.xz
srcux-6958baae8a3ca94ae5a13ce8099b2f07d5001fce.zip
Adding metadata
Diffstat (limited to 'dev-cpp/fast_float/fast_float-6.1.1.ebuild')
-rw-r--r--dev-cpp/fast_float/fast_float-6.1.1.ebuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-cpp/fast_float/fast_float-6.1.1.ebuild b/dev-cpp/fast_float/fast_float-6.1.1.ebuild
new file mode 100644
index 000000000000..93f3bc245add
--- /dev/null
+++ b/dev-cpp/fast_float/fast_float-6.1.1.ebuild
@@ -0,0 +1,29 @@
+# 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.git"
+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
+ )
+ cmake_src_configure
+}