homebrew-core/Formula/libcouchbase@2.rb

44 lines
2.0 KiB
Ruby

class LibcouchbaseAT2 < Formula
desc "C library for Couchbase"
homepage "https://docs.couchbase.com/c-sdk/2.10/start-using-sdk.html"
url "https://packages.couchbase.com/clients/c/libcouchbase-2.10.9.tar.gz"
sha256 "6f6450121e0208005c17f7f4cdd9258a571bb22183f0bc08f11d75c207d55d0a"
license "Apache-2.0"
bottle do
sha256 cellar: :any, arm64_ventura: "fac2748e1f4325c592e5ec23957029bd376ba5717b0efff506037aae3aed8570"
sha256 cellar: :any, arm64_monterey: "03796933fff479b383657e28b602621606f4530896786616e41beb8d9b3133ba"
sha256 arm64_big_sur: "5e0bb389630242e3db72c20cb884c501ddb0886f379adcb55b7db0b889e692f6"
sha256 cellar: :any, ventura: "4a10681526cd517f24171878aa75569723d4178238dde89a741e3a3073c6a2c0"
sha256 cellar: :any, monterey: "56a447b985cc0fc371f1d642e75ed1ff5d87677fba4089d18c34cf7e42b92538"
sha256 big_sur: "9ccf1d8d54a3b9bad9da0b4fef45da6320060f4675cc9c1e75a7dea605003ad2"
sha256 catalina: "01b9bceacbd38205745952c98a7db51cc388049da2a950d26eab11ab4b8dee64"
sha256 mojave: "fddb24ff1b03d1dbf91f2ac46096ebd113e5dde208e49430ac55de783fa9f897"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f3971935612366e72681c198f51154c76b05429edf559e1efd1b298234899492"
end
keg_only :versioned_formula
depends_on "cmake" => :build
depends_on "libev"
depends_on "libevent"
depends_on "libuv"
depends_on "openssl@1.1"
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args,
"-DLCB_NO_TESTS=1",
"-DLCB_BUILD_LIBEVENT=ON",
"-DLCB_BUILD_LIBEV=ON",
"-DLCB_BUILD_LIBUV=ON"
system "make", "install"
end
end
test do
assert_match "LCB_ECONNREFUSED",
shell_output("#{bin}/cbc cat document_id -U couchbase://localhost:1 2>&1", 1).strip
end
end