aboutsummaryrefslogtreecommitdiff
path: root/ports/parallel-hashmap
diff options
context:
space:
mode:
authorGriffin Downs <35574547+grdowns@users.noreply.github.com>2019-04-12 02:30:59 -0700
committerGitHub <noreply@github.com>2019-04-12 02:30:59 -0700
commit0e000644053015b7f7a0985e14f0bd384c847d17 (patch)
tree7e456fd12b3bf281b28587338f1650017c8b32ab /ports/parallel-hashmap
parent93ce6b4f27602cd18f4327c2cfd84093d472b8bb (diff)
parent39ba5b2b30c9f7b49e777a62093cdd49d05b53a9 (diff)
downloadvcpkg-0e000644053015b7f7a0985e14f0bd384c847d17.tar.gz
vcpkg-0e000644053015b7f7a0985e14f0bd384c847d17.zip
Merge branch 'master' into master
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)