aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-08-16 02:57:26 +0800
committerVictor Romero <romerosanchezv@gmail.com>2019-08-15 11:57:26 -0700
commit47d761faf076ae42a2b5c8ea0c3baf218f0b5f09 (patch)
treed9371425d8173d0f652d06956daaf7d48055bbd7
parent514ad6542cc088a23b32e8e17a4defb2ddbed5b9 (diff)
downloadvcpkg-47d761faf076ae42a2b5c8ea0c3baf218f0b5f09.tar.gz
vcpkg-47d761faf076ae42a2b5c8ea0c3baf218f0b5f09.zip
[wg21-sg14] Add new port (#7663)
* [SG14] Add new port * [wg21-sg14] Rename
-rw-r--r--ports/wg21-sg14/CONTROL4
-rw-r--r--ports/wg21-sg14/portfile.cmake21
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/wg21-sg14/CONTROL b/ports/wg21-sg14/CONTROL
new file mode 100644
index 000000000..e09697226
--- /dev/null
+++ b/ports/wg21-sg14/CONTROL
@@ -0,0 +1,4 @@
+Source: wg21-sg14
+Version: 2019-08-13
+Description: A library for Study Group 14 of Working Group 21 (C++)
+Homepage: https://github.com/WG21-SG14/SG14
diff --git a/ports/wg21-sg14/portfile.cmake b/ports/wg21-sg14/portfile.cmake
new file mode 100644
index 000000000..d72be282a
--- /dev/null
+++ b/ports/wg21-sg14/portfile.cmake
@@ -0,0 +1,21 @@
+include(vcpkg_common_functions)
+
+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}")