aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-06-01 03:42:27 +0800
committerRobert Schumacher <roschuma@microsoft.com>2019-05-31 12:42:27 -0700
commit26a9338c5055193915290527eacb37f2ac7fdcb8 (patch)
tree60564e6c6a7db36302dc7ec44e223b02bab980dc
parentfb36b4e17c134796bf8e31bf908c2a0c6b2fefc4 (diff)
downloadvcpkg-26a9338c5055193915290527eacb37f2ac7fdcb8.tar.gz
vcpkg-26a9338c5055193915290527eacb37f2ac7fdcb8.zip
[robin-hood-hashing] Add new port (#6709)
-rw-r--r--ports/robin-hood-hashing/CONTROL3
-rw-r--r--ports/robin-hood-hashing/portfile.cmake16
2 files changed, 19 insertions, 0 deletions
diff --git a/ports/robin-hood-hashing/CONTROL b/ports/robin-hood-hashing/CONTROL
new file mode 100644
index 000000000..d30871519
--- /dev/null
+++ b/ports/robin-hood-hashing/CONTROL
@@ -0,0 +1,3 @@
+Source: robin-hood-hashing
+Version: 3.2.13
+Description: Fast & memory efficient hashtable based on robin hood hashing for C++14
diff --git a/ports/robin-hood-hashing/portfile.cmake b/ports/robin-hood-hashing/portfile.cmake
new file mode 100644
index 000000000..890d6f86a
--- /dev/null
+++ b/ports/robin-hood-hashing/portfile.cmake
@@ -0,0 +1,16 @@
+# header-only library
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinus/robin-hood-hashing
+ REF 3.2.13
+ SHA512 5c508a1f43d2ca86c89b9aac3b17493a23b8ee3c7485438afc8e5eb4e697d663588e1945001ba3ba95dd1480b3c1b846079fadec5972e5ac4462117379052433
+ HEAD_REF master
+)
+
+file(COPY ${SOURCE_PATH}/src/include/robin_hood.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)