aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/hareflow
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/hareflow
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/hareflow')
-rw-r--r--vcpkg/ports/hareflow/fix-asio-error.patch13
-rw-r--r--vcpkg/ports/hareflow/fix-missing-headers.diff12
-rw-r--r--vcpkg/ports/hareflow/portfile.cmake28
-rw-r--r--vcpkg/ports/hareflow/vcpkg.json43
4 files changed, 96 insertions, 0 deletions
diff --git a/vcpkg/ports/hareflow/fix-asio-error.patch b/vcpkg/ports/hareflow/fix-asio-error.patch
new file mode 100644
index 0000000..725fad8
--- /dev/null
+++ b/vcpkg/ports/hareflow/fix-asio-error.patch
@@ -0,0 +1,13 @@
+diff --git a/src/connection.cpp b/src/connection.cpp
+index da2c556..a6cd8ca 100644
+--- a/src/connection.cpp
++++ b/src/connection.cpp
+@@ -276,7 +276,7 @@ Connection::SslAdapter::SslAdapter(tcp_socket& wrapped_socket, const std::string
+ if (verify_host) {
+ m_context.set_default_verify_paths();
+ m_context.set_verify_mode(ssl::verify_peer);
+- m_context.set_verify_callback(ssl::rfc2818_verification(host));
++ m_context.set_verify_callback(ssl::host_name_verification(host));
+ }
+ m_stream = std::make_unique<ssl_stream>(wrapped_socket, m_context);
+ }
diff --git a/vcpkg/ports/hareflow/fix-missing-headers.diff b/vcpkg/ports/hareflow/fix-missing-headers.diff
new file mode 100644
index 0000000..62cfa9a
--- /dev/null
+++ b/vcpkg/ports/hareflow/fix-missing-headers.diff
@@ -0,0 +1,12 @@
+diff --git a/include/hareflow/detail/accumulator.h b/include/hareflow/detail/accumulator.h
+index 1c1e0c5..6470870 100644
+--- a/include/hareflow/detail/accumulator.h
++++ b/include/hareflow/detail/accumulator.h
+@@ -6,6 +6,7 @@
+ #include <chrono>
+ #include <condition_variable>
+ #include <vector>
++#include <stdexcept>
+
+ #include "hareflow/detail/internal_types.h"
+
diff --git a/vcpkg/ports/hareflow/portfile.cmake b/vcpkg/ports/hareflow/portfile.cmake
new file mode 100644
index 0000000..9d663c7
--- /dev/null
+++ b/vcpkg/ports/hareflow/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO coveooss/hareflow
+ REF "v${VERSION}"
+ SHA512 96138675a37e381db97d963b339ab2d6472573d0e1d215bb485141d1a92be0c9658db1abb849d6e7849b396e9a877e5f0ed2ce332b68b44b7dda21536733158a
+ HEAD_REF main
+ PATCHES
+ fix-asio-error.patch
+ fix-missing-headers.diff
+)
+
+if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS)
+ set(rpath "@loader_path")
+else()
+ set(rpath "\$ORIGIN")
+endif()
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ "-DCMAKE_INSTALL_RPATH=${rpath}"
+)
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
diff --git a/vcpkg/ports/hareflow/vcpkg.json b/vcpkg/ports/hareflow/vcpkg.json
new file mode 100644
index 0000000..7ef6873
--- /dev/null
+++ b/vcpkg/ports/hareflow/vcpkg.json
@@ -0,0 +1,43 @@
+{
+ "name": "hareflow",
+ "version-semver": "0.1.1",
+ "port-version": 2,
+ "description": "Hareflow: A RabbitMQ C++ stream client.",
+ "homepage": "https://github.com/coveooss/hareflow",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "boost-asio",
+ "features": [
+ "ssl"
+ ],
+ "version>=": "1.78.0"
+ },
+ {
+ "name": "boost-endian",
+ "version>=": "1.78.0"
+ },
+ {
+ "name": "fmt",
+ "version>=": "8.0.1"
+ },
+ {
+ "name": "openssl",
+ "version>=": "3.0.2#3"
+ },
+ {
+ "name": "qpid-proton",
+ "version>=": "0.37.0#2"
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true,
+ "version>=": "2021-02-28"
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true,
+ "version>=": "2021-02-26"
+ }
+ ]
+}