Skip to content

Commit bf60649

Browse files
BrewTestBotcarlocab
andcommitted
libpulsar 3.7.2
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
1 parent d5276c5 commit bf60649

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

Formula/lib/libpulsar.rb

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
class Libpulsar < Formula
22
desc "Apache Pulsar C++ library"
33
homepage "https://pulsar.apache.org/"
4-
url "https://dlcdn.apache.org/pulsar/pulsar-client-cpp-3.7.0/apache-pulsar-client-cpp-3.7.0.tar.gz"
5-
mirror "https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.7.0/apache-pulsar-client-cpp-3.7.0.tar.gz"
6-
sha256 "3223cfeda484ab7b580f4a8768b5a85739cc064005c765c06cde67c3238639c9"
4+
url "https://dlcdn.apache.org/pulsar/pulsar-client-cpp-3.7.2/apache-pulsar-client-cpp-3.7.2.tar.gz"
5+
mirror "https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.7.2/apache-pulsar-client-cpp-3.7.2.tar.gz"
6+
sha256 "e4eee34cfa3d5838c08f20ac70f5b28239cb137bb59c75199f809141070620dd"
77
license "Apache-2.0"
8-
revision 2
98

109
bottle do
1110
sha256 cellar: :any, arm64_sequoia: "17409dae5bc4dfeae755a2e7ebc4d0e255a56f12f6c8d658a8f631cdbfe35bec"
@@ -17,7 +16,6 @@ class Libpulsar < Formula
1716
sha256 cellar: :any_skip_relocation, x86_64_linux: "2438a72ed70e421eae87a6e3fa2c4db58d3f4e7ec8b1bce6893421546c533d95"
1817
end
1918

20-
depends_on "asio" => :build # FIXME: Not compatible with Boost.Asio 1.87+
2119
depends_on "boost" => :build
2220
depends_on "cmake" => :build
2321
depends_on "pkgconf" => :build
@@ -31,12 +29,18 @@ class Libpulsar < Formula
3129
uses_from_macos "curl"
3230
uses_from_macos "zlib"
3331

32+
# Backport of https://github.com/apache/pulsar-client-cpp/pull/477
33+
patch do
34+
url "https://raw.githubusercontent.com/Homebrew/formula-patches/93a4bb54004417c3742ca0e41183c662d9f417f5/libpulsar/asio.patch"
35+
sha256 "519ecb20d3721575a916f45e7e0d382ae61de38ceaee23b53b97c7b4fcdbc019"
36+
end
37+
3438
def install
3539
args = %W[
3640
-DBUILD_TESTS=OFF
3741
-DCMAKE_CXX_STANDARD=17
3842
-DOPENSSL_ROOT_DIR=#{Formula["openssl@3"].opt_prefix}
39-
-DUSE_ASIO=ON
43+
-DUSE_ASIO=OFF
4044
]
4145

4246
system "cmake", "-S", ".", "build", *args, *std_cmake_args
@@ -49,7 +53,7 @@ def install
4953
#include <pulsar/Client.h>
5054
5155
int main (int argc, char **argv) {
52-
pulsar::Client client("pulsar://localhost:6650");
56+
pulsar::Client client("pulsar://localhost:#{free_port}");
5357
return 0;
5458
}
5559
CPP

0 commit comments

Comments
 (0)