2 desc "Header-only C++ binding for libzmq"
3 homepage "https://www.zeromq.org"
4 url "https://github.com/zeromq/cppzmq/archive/refs/tags/v4.10.0.tar.gz"
5 sha256 "c81c81bba8a7644c84932225f018b5088743a22999c6d82a2b5f5cd1e6942b74"
10 sha256 cellar: :any_skip_relocation, all: "1be9fecbad4da621c4f608f0395efd58f1252f1898ea64620bdaf82a1b6fdc1e"
13 depends_on "cmake" => :build
14 depends_on "pkgconf" => :build
18 system "cmake", "-S", ".", "-B", "build", "-DCPPZMQ_BUILD_TESTS=OFF", *std_cmake_args
19 system "cmake", "--build", "build"
20 system "cmake", "--install", "build"
22 pkgshare.install "examples"
26 cp pkgshare/"examples/hello_world.cpp", testpath
27 system ENV.cxx, "-std=c++11", "hello_world.cpp", "-I#{include}",
28 "-L#{Formula["zeromq"].opt_lib}", "-lzmq", "-o", "test"