From 98aa6396292d57e737a6ef999d4225ca488859d5 Mon Sep 17 00:00:00 2001 From: Jia Yue Hua <3423893+jiayuehua@users.noreply.github.com> Date: Sat, 21 Sep 2024 10:21:56 +0800 Subject: [PATCH] [fast-double-parser] update to 0.8.0 (#40975) --- ports/fast-double-parser/portfile.cmake | 14 +++++++++++--- ports/fast-double-parser/vcpkg.json | 14 ++++++++++++-- versions/baseline.json | 2 +- versions/f-/fast-double-parser.json | 5 +++++ 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/ports/fast-double-parser/portfile.cmake b/ports/fast-double-parser/portfile.cmake index 1770d10d110914..996e2cace7dd70 100644 --- a/ports/fast-double-parser/portfile.cmake +++ b/ports/fast-double-parser/portfile.cmake @@ -1,13 +1,21 @@ +set(VCPKG_BUILD_TYPE release) # header-only + vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO lemire/fast_double_parser REF "v${VERSION}" - SHA512 14a23b9e2ddc924d66f2748134364c546c6511ad380fbf59313c1d77c14dc4b0d22367a44b423f835ff2941f8d9c511f18b97ce25eda826ddc08a8eaaf7014bd + SHA512 41115f3c3b77ad430b0b4a1e622dd2a911ce3283bfd4190b5081f368cd1c371c68cf49789a12a2ed610a91e5b4693fe0b9b0d07876e82cfb0b106a6bc33dedd0 HEAD_REF master ) -set(VCPKG_BUILD_TYPE release) # header-only port +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF +) -file(INSTALL "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include") +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME fast_double_parser) + vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/fast-double-parser/vcpkg.json b/ports/fast-double-parser/vcpkg.json index de3704f87e4173..470b7a5d837829 100644 --- a/ports/fast-double-parser/vcpkg.json +++ b/ports/fast-double-parser/vcpkg.json @@ -1,7 +1,17 @@ { "name": "fast-double-parser", - "version": "0.7.0", + "version": "0.8.0", "description": "Fast function to parse strings into double (binary64) floating-point values, enforces the RFC 7159 (JSON standard) grammar: 4x faster than strtod", "homepage": "https://github.com/lemire/fast_double_parser", - "license": "Apache-2.0" + "license": "Apache-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] } diff --git a/versions/baseline.json b/versions/baseline.json index 3c81a9f3e73046..3f2cb7abefc4fe 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2657,7 +2657,7 @@ "port-version": 2 }, "fast-double-parser": { - "baseline": "0.7.0", + "baseline": "0.8.0", "port-version": 0 }, "fast-float": { diff --git a/versions/f-/fast-double-parser.json b/versions/f-/fast-double-parser.json index 360d8c810a84ea..4a63f1dbf2903f 100644 --- a/versions/f-/fast-double-parser.json +++ b/versions/f-/fast-double-parser.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "da90362cd4e7c5200ac0dfa36f2709bfd76e0cbb", + "version": "0.8.0", + "port-version": 0 + }, { "git-tree": "fac99fe686dd7874d02be06d78f4df1a6ac7358d", "version": "0.7.0",