aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2019-07-01 22:39:51 -0700
committerGitHub <noreply@github.com>2019-07-01 22:39:51 -0700
commitd2b3ef9e88fcb51b7273a76abe6e78d49d73a329 (patch)
tree7caa67f5cd823dff6d4edf750e871e3ce2c526e8 /ports
parent012e9931ebf5ccb6ba51a3f0f98431c278154efa (diff)
downloadvcpkg-d2b3ef9e88fcb51b7273a76abe6e78d49d73a329.tar.gz
vcpkg-d2b3ef9e88fcb51b7273a76abe6e78d49d73a329.zip
Fix vcpkg_from_git (#7082)
* [vcpkg_from_git/fdlibm] Fix flaky sha256 issues * [doc] regenerate docs
Diffstat (limited to 'ports')
-rw-r--r--ports/fdlibm/CONTROL2
-rw-r--r--ports/fdlibm/portfile.cmake13
2 files changed, 1 insertions, 14 deletions
diff --git a/ports/fdlibm/CONTROL b/ports/fdlibm/CONTROL
index c1562c970..14bc9ad64 100644
--- a/ports/fdlibm/CONTROL
+++ b/ports/fdlibm/CONTROL
@@ -1,3 +1,3 @@
Source: fdlibm
-Version: 5.3-3
+Version: 5.3-4
Description: FDLIBM (Freely Distributable LIBM) is a C math library for machines that support IEEE 754 floating-point arithmetic
diff --git a/ports/fdlibm/portfile.cmake b/ports/fdlibm/portfile.cmake
index ef069289d..7bbd21f06 100644
--- a/ports/fdlibm/portfile.cmake
+++ b/ports/fdlibm/portfile.cmake
@@ -1,22 +1,9 @@
include(vcpkg_common_functions)
-# vcpkg_from_git uses git archive to generate the hash,
-# depending on what system or git settings this runs with it will result in a different hash
-if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
- set(FDLIBM_HASH 825dcbbb88e3ebda6d928e1794da58d5135d37e36551c12de7eeab58a67adc4f5629c65d6afde567daeb489c287302116b2a5bbdb16693a3b068bbe16b250cf7)
-elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
- set(FDLIBM_HASH 954c75f9f7540f4efb21b1f8de296149c648c0ba10d5e9cc99a247164b9e99b6dc37349a9ddaa04ba93dc035562457665aacf7146926d716cd406b63b97c5d44)
-else()
- # depending on how git is configured the hash could be
- # bc788c840a57716f996513980d31b203bd86ce9af1ac3656a187266bfdc2fbb22a9ddf88f79ffc91dd75f3f1f1e4fd3449a42b566ffe5e49e9384efd91a68613
- set(FDLIBM_HASH 75c49ba2875b73e0bfe3a4595be1478ce6041236653b803b02ba00997652c969c351c9647923692af0799149da86c737467ab2954bd8845a2f75b14fde71ac29)
-endif()
-
vcpkg_from_git(
OUT_SOURCE_PATH SOURCE_PATH
URL https://android.googlesource.com/platform/external/fdlibm
REF 59f7335e4dd8275a7dc2f8aeb4fd00758fde37ac
- SHA512 ${FDLIBM_HASH}
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})