aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/wg21-sg14
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/wg21-sg14
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/wg21-sg14')
-rw-r--r--vcpkg/ports/wg21-sg14/portfile.cmake19
-rw-r--r--vcpkg/ports/wg21-sg14/vcpkg.json7
2 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/wg21-sg14/portfile.cmake b/vcpkg/ports/wg21-sg14/portfile.cmake
new file mode 100644
index 0000000..4fdf80d
--- /dev/null
+++ b/vcpkg/ports/wg21-sg14/portfile.cmake
@@ -0,0 +1,19 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO WG21-SG14/SG14
+ REF 836e4d202249a86ba5ff56139c35e0afa60e7a1c
+ SHA512 002a6b83ecfb41bde978e912feda77639460ff376ad634e1cd0a908e2be35863489132db579d399bb6e5087fcb0355a222e611eae58eb0c2d8372bdd25f60e07
+ HEAD_REF master
+)
+
+file(COPY ${SOURCE_PATH}/SG14 DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Handle copyright
+
+file(STRINGS "${SOURCE_PATH}/SG14/flat_map.h" SOURCE_LINES)
+list(SUBLIST SOURCE_LINES 0 26 SOURCE_LINES)
+list(JOIN SOURCE_LINES "\n" _contents)
+
+file(READ "${SOURCE_PATH}/Docs/plf_licensing.txt" plf_licensing_contents)
+
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "${_contents}\n${plf_licensing_contents}")
diff --git a/vcpkg/ports/wg21-sg14/vcpkg.json b/vcpkg/ports/wg21-sg14/vcpkg.json
new file mode 100644
index 0000000..92bd9dd
--- /dev/null
+++ b/vcpkg/ports/wg21-sg14/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "wg21-sg14",
+ "version-date": "2019-08-13",
+ "port-version": 2,
+ "description": "A library for Study Group 14 of Working Group 21 (C++)",
+ "homepage": "https://github.com/WG21-SG14/SG14"
+}