diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2020-10-09 13:59:51 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-08 22:59:51 -0700 |
| commit | 63cc8c0d8a83bf1efb6b0e92cf1f0c7b589e5e1c (patch) | |
| tree | 79b4c8132295103a740180354644ddf584199980 /ports/nmslib | |
| parent | 0dcc11ac2212941212540e379dfdf8d73f77d461 (diff) | |
| download | vcpkg-63cc8c0d8a83bf1efb6b0e92cf1f0c7b589e5e1c.tar.gz vcpkg-63cc8c0d8a83bf1efb6b0e92cf1f0c7b589e5e1c.zip | |
[log4cplus/muparser/nmslib] Update to the latest version (#13585)
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'ports/nmslib')
| -rw-r--r-- | ports/nmslib/CONTROL | 8 | ||||
| -rw-r--r-- | ports/nmslib/fix-cmake-order.patch | 23 | ||||
| -rw-r--r-- | ports/nmslib/fix-headers.patch | 29 | ||||
| -rw-r--r-- | ports/nmslib/portfile.cmake | 17 |
4 files changed, 13 insertions, 64 deletions
diff --git a/ports/nmslib/CONTROL b/ports/nmslib/CONTROL index 288fc7377..4faefb975 100644 --- a/ports/nmslib/CONTROL +++ b/ports/nmslib/CONTROL @@ -1,9 +1,5 @@ Source: nmslib
-Version: 1.8.2
+Version: 2.0.6
Homepage: https://github.com/searchivarius/nmslib
Description: Non-Metric Space Library (NMSLIB) is an efficient similarity search library and a toolkit for evaluation of k-NN methods for generic non-metric spaces.
-#
-# ## Extras are currently unsupported for Windows, waiting for fixes.
-# Feature: extra
-# Description: Build extra algorithms and tools for nmslib. Note that this feature requires a large bunch of dependencies.
-# Build-Depends: gsl, eigen3, boost-system, boost-filesystem, boost-timer, boost-foreach, boost-format, boost-math, boost-random, boost-dynamic-bitset, boost-program-options
+Supports: !(arm|uwp)
\ No newline at end of file diff --git a/ports/nmslib/fix-cmake-order.patch b/ports/nmslib/fix-cmake-order.patch deleted file mode 100644 index 8b465ae47..000000000 --- a/ports/nmslib/fix-cmake-order.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff --git a/similarity_search/CMakeLists.txt b/similarity_search/CMakeLists.txt -index 1451b30..a9f1616 100644 ---- a/similarity_search/CMakeLists.txt -+++ b/similarity_search/CMakeLists.txt -@@ -109,9 +109,6 @@ if (WITH_EXTRAS) - message (FATAL_ERROR "Could not locate GSL.") - endif (GSL_FOUND) - -- include_directories (${PROJECT_SOURCE_DIR}/lshkit/include) -- add_subdirectory (lshkit) -- - find_package(Eigen3 3 REQUIRED) - if (EIGEN3_FOUND) - message (STATUS "Found Eigen3.") -@@ -139,6 +136,8 @@ if (WITH_EXTRAS) - else () - message (FATAL_ERROR "Could not locate BOOST.") - endif () -+ -+ add_subdirectory (lshkit) - endif() - - add_subdirectory (src) diff --git a/ports/nmslib/fix-headers.patch b/ports/nmslib/fix-headers.patch index ee6db36df..f06fd06a8 100644 --- a/ports/nmslib/fix-headers.patch +++ b/ports/nmslib/fix-headers.patch @@ -1,5 +1,5 @@ diff --git a/similarity_search/src/method/hnsw.cc b/similarity_search/src/method/hnsw.cc -index f5c7fca..4780746 100644 +index 2741701..7587f7f 100644 --- a/similarity_search/src/method/hnsw.cc +++ b/similarity_search/src/method/hnsw.cc @@ -27,7 +27,7 @@ @@ -12,7 +12,7 @@ index f5c7fca..4780746 100644 #include "portable_simd.h" #include "knnquery.h" diff --git a/similarity_search/src/method/hnsw_distfunc_opt.cc b/similarity_search/src/method/hnsw_distfunc_opt.cc -index 168ee81..408d95d 100644 +index 4c691bd..6f1a9e6 100644 --- a/similarity_search/src/method/hnsw_distfunc_opt.cc +++ b/similarity_search/src/method/hnsw_distfunc_opt.cc @@ -30,7 +30,7 @@ @@ -25,7 +25,7 @@ index 168ee81..408d95d 100644 #include "sort_arr_bi.h" diff --git a/similarity_search/src/method/pivot_neighb_invindx.cc b/similarity_search/src/method/pivot_neighb_invindx.cc -index b6473bd..6dcb00f 100644 +index c6113c7..a7d818b 100644 --- a/similarity_search/src/method/pivot_neighb_invindx.cc +++ b/similarity_search/src/method/pivot_neighb_invindx.cc @@ -21,7 +21,7 @@ @@ -38,12 +38,12 @@ index b6473bd..6dcb00f 100644 #include "portable_simd.h" #include "space.h" diff --git a/similarity_search/src/method/small_world_rand.cc b/similarity_search/src/method/small_world_rand.cc -index e8280cb..6bdb0f7 100644 +index e67ea97..92fe70a 100644 --- a/similarity_search/src/method/small_world_rand.cc +++ b/similarity_search/src/method/small_world_rand.cc -@@ -16,7 +16,7 @@ - #include <memory> +@@ -17,7 +17,7 @@ #include <iostream> + #include <cstddef> // This is only for _mm_prefetch -#include <mmintrin.h> +#include <xmmintrin.h> @@ -51,7 +51,7 @@ index e8280cb..6bdb0f7 100644 #if defined(_WIN32) || defined(WIN32) #include <intrin.h> diff --git a/similarity_search/src/method/vptree.cc b/similarity_search/src/method/vptree.cc -index 04f481e..c71eed5 100644 +index 4da3b5f..d77e419 100644 --- a/similarity_search/src/method/vptree.cc +++ b/similarity_search/src/method/vptree.cc @@ -20,7 +20,7 @@ @@ -75,18 +75,3 @@ index 326b26b..413d66d 100644 #include <logging.h> #include <idtype.h> -diff --git a/similarity_search/test/test_pow.cc b/similarity_search/test/test_pow.cc -index 1b46a68..faaa84e 100644 ---- a/similarity_search/test/test_pow.cc -+++ b/similarity_search/test/test_pow.cc -@@ -29,8 +29,8 @@ using namespace std; - - const float MAX_REL_DIFF = 1e-6f; - --vector<float> addExps = { 0, 0.125, 0.25, 0.5 }; --vector<float> vals = { 0.1, 0.5, 1, 1.5, 2, 4}; -+vector<float> addExps = { 0, 0.125f, 0.25f, 0.5f }; -+vector<float> vals = { 0.1f, 0.5f, 1, 1.5f, 2, 4}; - vector<float> signs = { 1, -1}; - - template <typename T> bool runTest() { diff --git a/ports/nmslib/portfile.cmake b/ports/nmslib/portfile.cmake index d250c0977..fc5b3d145 100644 --- a/ports/nmslib/portfile.cmake +++ b/ports/nmslib/portfile.cmake @@ -1,29 +1,21 @@ -include(vcpkg_common_functions) +vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp") vcpkg_check_linkage(ONLY_STATIC_LIBRARY) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO nmslib/nmslib - REF c9fc0b862f09260b558cf81e94e0d58aca15d9e9 - SHA512 ac9c79e3ac991dd58f239f7e0b2bd6c3185907aa283bc42098aadddac87b361867f002664cc14853822f92a491d95269578bea01aa00477e39a40424320000a1 + REF 5482e077d1c8637499f86231bcd3979cb7fa6aef # v2.0.6 + SHA512 e529c8d1d97e972f8314be9837e10f4ebab57d4a5f19a66341bb8e163dfe53d1d640a3909a708b021a52d0e6c2537954d749cb80e71757469700a3e9e173ceca HEAD_REF master PATCHES fix-headers.patch - fix-cmake-order.patch ) -set(WITH_EXTRAS OFF) -if("extra" IN_LIST FEATURES) - set(WITH_EXTRAS ON) -endif() - # TODO: check SSE and AVX avability and set corresponding tags vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH}/similarity_search PREFER_NINJA - OPTIONS - -DWITH_EXTRAS=${WITH_EXTRAS} ) vcpkg_install_cmake() @@ -50,5 +42,4 @@ endforeach() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) # Put the license file where vcpkg expects it -file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/nmslib/) -file(RENAME ${CURRENT_PACKAGES_DIR}/share/nmslib/README.md ${CURRENT_PACKAGES_DIR}/share/nmslib/copyright) +file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
