aboutsummaryrefslogtreecommitdiff
path: root/ports/constexpr
diff options
context:
space:
mode:
Diffstat (limited to 'ports/constexpr')
-rw-r--r--ports/constexpr/CONTROL6
-rw-r--r--ports/constexpr/portfile.cmake13
2 files changed, 10 insertions, 9 deletions
diff --git a/ports/constexpr/CONTROL b/ports/constexpr/CONTROL
index e8cb4749f..85b3bc0c7 100644
--- a/ports/constexpr/CONTROL
+++ b/ports/constexpr/CONTROL
@@ -1,3 +1,3 @@
-Source: constexpr
-Version: 1.0
-Description: Small MIT License Library of general stdlib functions written as C++11 constexpr functions.
+Source: constexpr
+Version: 1.0-1
+Description: Small MIT License Library of general stdlib functions written as C++11 constexpr functions.
diff --git a/ports/constexpr/portfile.cmake b/ports/constexpr/portfile.cmake
index 9563b6c15..e56b57e61 100644
--- a/ports/constexpr/portfile.cmake
+++ b/ports/constexpr/portfile.cmake
@@ -1,12 +1,13 @@
#header-only library
include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/constexpr-a98b1db39c909e0130d21d3910d4faf97035a625)
-vcpkg_download_distfile(ARCHIVE
- URLS "https://github.com/elbeno/constexpr/archive/a98b1db39c909e0130d21d3910d4faf97035a625.zip"
- FILENAME "constexpr-a98b1db39c909e0130d21d3910d4faf97035a625.zip"
- SHA512 847e09f9df30cb5fbd8aa280679ff359d73c9e9454ffe3090f66975a15665080629e9a664d057f039b17430d42b5e5f5f3f92831e73c15024060991090209c2e
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO elbeno/constexpr
+ REF a98b1db39c909e0130d21d3910d4faf97035a625
+ SHA512 8802ee43b510ea1f0c00949eecd84eb2bf3ac721802e6bc6755db9e6e2742d8b97fef427eca7d4d9a282c60a18ca10401386022eac995bd22624f45e3fc2c370
+ HEAD_REF master
)
-vcpkg_extract_source_archive(${ARCHIVE})
# Put the licence file where vcpkg expects it
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE)