aboutsummaryrefslogtreecommitdiff
path: root/ports/parallel-hashmap
diff options
context:
space:
mode:
authorRyan Saunders <saunders@aggienetwork.com>2019-04-10 23:07:17 -0700
committerRyan Saunders <saunders@aggienetwork.com>2019-04-10 23:07:17 -0700
commita492caf9d5a069987b6309c6cbf8e5cc8c3ec6a8 (patch)
tree11f6f1c5e3f4caa03f297162ffab9f79941f676c /ports/parallel-hashmap
parent80965287d1483f98f49ba83e026f022369798990 (diff)
parentb625cbf82f792409fa59262546cb5ed1ef7944e3 (diff)
downloadvcpkg-a492caf9d5a069987b6309c6cbf8e5cc8c3ec6a8.tar.gz
vcpkg-a492caf9d5a069987b6309c6cbf8e5cc8c3ec6a8.zip
Merge branch 'master' into query_deps
Diffstat (limited to 'ports/parallel-hashmap')
-rw-r--r--ports/parallel-hashmap/CONTROL3
-rw-r--r--ports/parallel-hashmap/portfile.cmake24
2 files changed, 27 insertions, 0 deletions
diff --git a/ports/parallel-hashmap/CONTROL b/ports/parallel-hashmap/CONTROL
new file mode 100644
index 000000000..8935060a4
--- /dev/null
+++ b/ports/parallel-hashmap/CONTROL
@@ -0,0 +1,3 @@
+Source: parallel-hashmap
+Version: 1.1.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..9c2c02289
--- /dev/null
+++ b/ports/parallel-hashmap/portfile.cmake
@@ -0,0 +1,24 @@
+#header-only library
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO greg7mdp/parallel-hashmap
+ REF 1.1.0
+ SHA512 ff9497d2a8009c9aa955f50e66269e5963a86d8593e3eb07ef968a8ea5e162fea7e145d6d4d9e7aa91380b49f22166d1a08445fa40d02f43327e4c39612f52d9
+ 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)