Skip to content

Commit

Permalink
dev-cpp/fast_float: add 6.1.4
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Winter <[email protected]>
  • Loading branch information
imwints committed Aug 23, 2024
1 parent c73555d commit ff65073
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-cpp/fast_float/Manifest
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions dev-cpp/fast_float/fast_float-6.1.4.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit ff65073

Please sign in to comment.