diff options
Diffstat (limited to 'vcpkg/ports/robin-hood-hashing')
| -rw-r--r-- | vcpkg/ports/robin-hood-hashing/fix-missing-stdint.patch | 12 | ||||
| -rw-r--r-- | vcpkg/ports/robin-hood-hashing/portfile.cmake | 28 | ||||
| -rw-r--r-- | vcpkg/ports/robin-hood-hashing/vcpkg.json | 18 |
3 files changed, 58 insertions, 0 deletions
diff --git a/vcpkg/ports/robin-hood-hashing/fix-missing-stdint.patch b/vcpkg/ports/robin-hood-hashing/fix-missing-stdint.patch new file mode 100644 index 0000000..8dc0087 --- /dev/null +++ b/vcpkg/ports/robin-hood-hashing/fix-missing-stdint.patch @@ -0,0 +1,12 @@ +diff --git a/src/include/robin_hood.h b/src/include/robin_hood.h +index b4e0fbc..405e67d 100644 +--- a/src/include/robin_hood.h ++++ b/src/include/robin_hood.h +@@ -40,6 +40,7 @@ + + #include <algorithm> + #include <cstdlib> ++#include <cstdint> + #include <cstring> + #include <functional> + #include <limits> diff --git a/vcpkg/ports/robin-hood-hashing/portfile.cmake b/vcpkg/ports/robin-hood-hashing/portfile.cmake new file mode 100644 index 0000000..19a5d54 --- /dev/null +++ b/vcpkg/ports/robin-hood-hashing/portfile.cmake @@ -0,0 +1,28 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinus/robin-hood-hashing
+ REF 3.11.5
+ SHA512 5f73e089b1e8ec41a9bedded22bc64a789d3a3d04873a2ad9f8cc2970797a473b0f4d3436c2324b3ced85a0d983998a75b1dfaf2b7f3b77235b29806ff2fd489
+ HEAD_REF master
+ PATCHES
+ fix-missing-stdint.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DRH_STANDALONE_PROJECT=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME robin_hood
+ CONFIG_PATH lib/cmake/robin_hood
+)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug"
+ "${CURRENT_PACKAGES_DIR}/lib"
+)
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/robin-hood-hashing/vcpkg.json b/vcpkg/ports/robin-hood-hashing/vcpkg.json new file mode 100644 index 0000000..b5fb1cd --- /dev/null +++ b/vcpkg/ports/robin-hood-hashing/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "robin-hood-hashing", + "version": "3.11.5", + "port-version": 2, + "description": "Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20", + "homepage": "https://github.com/martinus/robin-hood-hashing", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |