aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut <tessil@gmx.com>2019-01-27 20:04:16 +0100
committerCodiferous <44823842+Codiferous@users.noreply.github.com>2019-01-27 11:04:16 -0800
commitb3a450578b118c00db0e56c771056140f20d5366 (patch)
tree93099da840b73c4c528f1a53df018f41ac366224
parent7ec45860e0e5d7e6f5be1c0ab42b4ed824bd9698 (diff)
downloadvcpkg-b3a450578b118c00db0e56c771056140f20d5366.tar.gz
vcpkg-b3a450578b118c00db0e56c771056140f20d5366.zip
[tsl-hopscotch-map] Add new port. (#5233)
* [tsl-hopscotch-map] Add new port. * Use PORT variable instead of hard coded tsl-hopscotch-map.
-rw-r--r--ports/tsl-hopscotch-map/CONTROL3
-rw-r--r--ports/tsl-hopscotch-map/portfile.cmake21
2 files changed, 24 insertions, 0 deletions
diff --git a/ports/tsl-hopscotch-map/CONTROL b/ports/tsl-hopscotch-map/CONTROL
new file mode 100644
index 000000000..91f048054
--- /dev/null
+++ b/ports/tsl-hopscotch-map/CONTROL
@@ -0,0 +1,3 @@
+Source: tsl-hopscotch-map
+Version: 2.2.0
+Description: C++ implementation of a fast hash map and hash set using hopscotch hashing
diff --git a/ports/tsl-hopscotch-map/portfile.cmake b/ports/tsl-hopscotch-map/portfile.cmake
new file mode 100644
index 000000000..2542360a3
--- /dev/null
+++ b/ports/tsl-hopscotch-map/portfile.cmake
@@ -0,0 +1,21 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Tessil/hopscotch-map
+ REF v2.2.0
+ SHA512 a3cd0fe47ff16de6d556c24e0bd96e420c1f06f2e44388e4f223fd8cf30a6cf0af20ade46af46f8cb5bbfd86a0fce2ca65658999cc2c14f4998d949f12afff2f
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE
+ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
+ RENAME copyright
+)