From 789218413496dbfeb85bb5ce9b7a6aa7a6eb2bfe Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 1 Apr 2019 08:52:01 -0400 Subject: [PATCH] add parallel-hashmap package --- ports/parallel-hashmap/CONTROL | 3 +++ ports/parallel-hashmap/portfile.cmake | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 ports/parallel-hashmap/CONTROL create mode 100644 ports/parallel-hashmap/portfile.cmake diff --git a/ports/parallel-hashmap/CONTROL b/ports/parallel-hashmap/CONTROL new file mode 100644 index 00000000000..17a3e455cdc --- /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 00000000000..3a5ca098e98 --- /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) +