From 3ea7f4928b1e05c4189ac708f26d24d70ac5d943 Mon Sep 17 00:00:00 2001 From: "Radames S. Cruz Moreno" Date: Wed, 18 Nov 2020 17:41:13 -0800 Subject: [PATCH 1/3] Add port of Kuku 2.0 --- ports/kuku/CMakeLists-windows.patch | 15 +++++++++++++++ ports/kuku/CONTROL | 4 ++++ ports/kuku/portfile.cmake | 24 ++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 ports/kuku/CMakeLists-windows.patch create mode 100644 ports/kuku/CONTROL create mode 100644 ports/kuku/portfile.cmake diff --git a/ports/kuku/CMakeLists-windows.patch b/ports/kuku/CMakeLists-windows.patch new file mode 100644 index 00000000000000..88ce013e20cb77 --- /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 00000000000000..2e377be56c718b --- /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 00000000000000..975dda6d8d69ac --- /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) From 71f92e62b5f1fad8edcff3c32dfc4b78cb0f5a92 Mon Sep 17 00:00:00 2001 From: "Radames S. Cruz Moreno" Date: Tue, 1 Dec 2020 20:58:14 -0800 Subject: [PATCH 2/3] Add default features entry --- ports/kuku/CONTROL | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/kuku/CONTROL b/ports/kuku/CONTROL index 2e377be56c718b..331e107d19b421 100644 --- a/ports/kuku/CONTROL +++ b/ports/kuku/CONTROL @@ -2,3 +2,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. +Default-Features: From e332e68e0356d158d817d7946a00cbaf6bb5a7c2 Mon Sep 17 00:00:00 2001 From: "Radames S. Cruz Moreno" Date: Wed, 2 Dec 2020 13:02:35 -0800 Subject: [PATCH 3/3] Remove empty default features --- ports/kuku/CONTROL | 1 - 1 file changed, 1 deletion(-) diff --git a/ports/kuku/CONTROL b/ports/kuku/CONTROL index 331e107d19b421..2e377be56c718b 100644 --- a/ports/kuku/CONTROL +++ b/ports/kuku/CONTROL @@ -2,4 +2,3 @@ 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. -Default-Features: