diff options
Diffstat (limited to 'vcpkg/ports/bitmagic')
| -rw-r--r-- | vcpkg/ports/bitmagic/fix-clang.patch | 16 | ||||
| -rw-r--r-- | vcpkg/ports/bitmagic/portfile.cmake | 14 | ||||
| -rw-r--r-- | vcpkg/ports/bitmagic/vcpkg.json | 8 |
3 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/bitmagic/fix-clang.patch b/vcpkg/ports/bitmagic/fix-clang.patch new file mode 100644 index 0000000..fb1b156 --- /dev/null +++ b/vcpkg/ports/bitmagic/fix-clang.patch @@ -0,0 +1,16 @@ +diff --git a/src/bmsparsevec_compr.h b/src/bmsparsevec_compr.h +index ed774c6d..5dbaf09f 100644 +--- a/src/bmsparsevec_compr.h ++++ b/src/bmsparsevec_compr.h +@@ -280,7 +280,10 @@ public: + + /** add a series of consequitve NULLs (no-value) to the container */ + void add_null(size_type count) BMNOEXCEPT; +- ++ ++ /** return true if insertion buffer is empty */ ++ bool empty() const { return sv_bi_.empty(); } ++ + /** flush the accumulated buffer */ + void flush(); + protected: diff --git a/vcpkg/ports/bitmagic/portfile.cmake b/vcpkg/ports/bitmagic/portfile.cmake new file mode 100644 index 0000000..e75f253 --- /dev/null +++ b/vcpkg/ports/bitmagic/portfile.cmake @@ -0,0 +1,14 @@ +# Header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO tlk00/BitMagic
+ REF "v${VERSION}"
+ SHA512 49e1fe4b1628d54ca6b45d8b2a5a1f31aaec67a949630b3ca60c2e70af536d7954fbf8577cf26981436339818ddf243c5c2579585755f42c9dc6a87e0e6d9548
+ HEAD_REF master
+ PATCHES
+ fix-clang.patch #https://github.com/tlk00/BitMagic/commit/6dfdcbd1222b3919c2a3b71bfde38db5c7862f97
+)
+
+file(GLOB HEADER_LIST "${SOURCE_PATH}/src/*.h")
+file(INSTALL ${HEADER_LIST} DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/bitmagic/vcpkg.json b/vcpkg/ports/bitmagic/vcpkg.json new file mode 100644 index 0000000..425c7a1 --- /dev/null +++ b/vcpkg/ports/bitmagic/vcpkg.json @@ -0,0 +1,8 @@ +{ + "name": "bitmagic", + "version": "8.0.1", + "port-version": 1, + "description": "Algorithms and tools for Algebra of Sets for information retrieval, indexing of databases, scientific algorithms, ranking, clustering, unsupervised machine learning and signal processing.", + "homepage": "http://bitmagic.io", + "license": "Apache-2.0" +} |