aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/hedley/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/hedley/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/hedley/portfile.cmake')
-rw-r--r--vcpkg/ports/hedley/portfile.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/hedley/portfile.cmake b/vcpkg/ports/hedley/portfile.cmake
new file mode 100644
index 0000000..db9d49a
--- /dev/null
+++ b/vcpkg/ports/hedley/portfile.cmake
@@ -0,0 +1,17 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO nemequ/hedley
+ REF 8fb0604a8095f6c907378cc3f0391520ae843f6f
+ SHA512 3ce102d348f96bd8c7d44bc7119a8f637041f613e1e6a578c15e24c56f79dbcb0b1bce93bc8779a90cc2e34ab74d09f29d240b4519d592973c59da49923460da
+ HEAD_REF master
+)
+
+file(COPY ${SOURCE_PATH}/hedley.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+file(STRINGS ${SOURCE_PATH}/hedley.h SOURCE_LINES)
+# Capture more lines than required to handle future license file changes
+list(SUBLIST SOURCE_LINES 0 30 SOURCE_LINES)
+list(JOIN SOURCE_LINES "\n" _contents)
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "${_contents}")