diff options
| author | Radames Cruz <kiromaru@users.noreply.github.com> | 2020-12-04 16:40:35 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-04 16:40:35 -0800 |
| commit | 0b769ed585fa001814271e7b58f1bc01de73fe97 (patch) | |
| tree | c70e83b624ab0c247c4c366deb6e57211ef5f291 | |
| parent | 7dd573a464b9dfc3de48ff3f4493038854732560 (diff) | |
| download | vcpkg-0b769ed585fa001814271e7b58f1bc01de73fe97.tar.gz vcpkg-0b769ed585fa001814271e7b58f1bc01de73fe97.zip | |
[kuku] Add new port (#14898)
| -rw-r--r-- | ports/kuku/CMakeLists-windows.patch | 15 | ||||
| -rw-r--r-- | ports/kuku/CONTROL | 4 | ||||
| -rw-r--r-- | ports/kuku/portfile.cmake | 24 |
3 files changed, 43 insertions, 0 deletions
diff --git a/ports/kuku/CMakeLists-windows.patch b/ports/kuku/CMakeLists-windows.patch new file mode 100644 index 000000000..88ce013e2 --- /dev/null +++ b/ports/kuku/CMakeLists-windows.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c4a87db..10d3eb2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -13,10 +13,6 @@ cmake_minimum_required(VERSION 3.12)
+
+ project(Kuku VERSION 2.0.0 LANGUAGES CXX C)
+
+-if(${MSVC})
+- message(FATAL_ERROR "Please build using the attached Visual Studio solution/project files.")
+-endif()
+-
+ ########################
+ # Global configuration #
+ ########################
diff --git a/ports/kuku/CONTROL b/ports/kuku/CONTROL new file mode 100644 index 000000000..2e377be56 --- /dev/null +++ b/ports/kuku/CONTROL @@ -0,0 +1,4 @@ +Source: kuku
+Version: 2.0
+Homepage: https://github.com/microsoft/Kuku
+Description: Kuku is a simple open-source (MIT licensed) cuckoo hashing library developed by the Cryptography and Privacy Research group at Microsoft.
diff --git a/ports/kuku/portfile.cmake b/ports/kuku/portfile.cmake new file mode 100644 index 000000000..975dda6d8 --- /dev/null +++ b/ports/kuku/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO microsoft/Kuku
+ REF e7cd2d6ad7f8886061c8e4b85890ede69cec3929
+ SHA512 8220a8e839bd247d6a8d1049562028c620353d0cabee0681383d1457bda544ff1394709eeaa82a92a8c0d3491cc9f15de1a14b78a86e8f97ee1da68eb50c982e
+ HEAD_REF master
+ PATCHES CMakeLists-windows.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ DISABLE_PARALLEL_CONFIGURE
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Kuku-2.0)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
