aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Popovitch <greg7mdp@gmail.com>2019-04-01 12:55:14 -0400
committerPhil Christensen <philc@microsoft.com>2019-04-01 09:55:14 -0700
commitb33e51ab07f53a61fe2e478dcde043501201e516 (patch)
tree3996ff4fdd68318ba1420685379549b4e771d8ef
parent6f0923ae93d28287d21219c57a6c8cd3e249bdd4 (diff)
downloadvcpkg-b33e51ab07f53a61fe2e478dcde043501201e516.tar.gz
vcpkg-b33e51ab07f53a61fe2e478dcde043501201e516.zip
add parallel-hashmap package (#5893)
-rw-r--r--ports/parallel-hashmap/CONTROL3
-rw-r--r--ports/parallel-hashmap/portfile.cmake25
2 files changed, 28 insertions, 0 deletions
diff --git a/ports/parallel-hashmap/CONTROL b/ports/parallel-hashmap/CONTROL
new file mode 100644
index 000000000..17a3e455c
--- /dev/null
+++ b/ports/parallel-hashmap/CONTROL
@@ -0,0 +1,3 @@
+Source: parallel-hashmap
+Version: 1.0.0
+Description: A header-only, very fast and memory-friendly hash map family.
diff --git a/ports/parallel-hashmap/portfile.cmake b/ports/parallel-hashmap/portfile.cmake
new file mode 100644
index 000000000..3a5ca098e
--- /dev/null
+++ b/ports/parallel-hashmap/portfile.cmake
@@ -0,0 +1,25 @@
+#header-only library
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO greg7mdp/parallel-hashmap
+ REF 1.0.0
+ SHA512 8e0e6da3f809b177fbeaa30916bd8fed8d4b896e8d8526d10e74169078050e91dc52c48b4ca29847fac669be5fcfb1216a706fe242a2330999273e10975d9439
+ HEAD_REF master
+)
+
+# Use greg7mdp/parallel-hashmap's own build process, skipping examples and tests
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+vcpkg_install_cmake()
+
+# Delete redundant directories
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/doc)
+
+# Put the licence file where vcpkg expects it
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/parallel-hashmap)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/parallel-hashmap/LICENSE ${CURRENT_PACKAGES_DIR}/share/parallel-hashmap/copyright)
+