homebrew-core/Formula/apib.rb

35 lines
1.6 KiB
Ruby

class Apib < Formula
desc "HTTP performance-testing tool"
homepage "https://github.com/apigee/apib"
url "https://github.com/apigee/apib/archive/APIB_1_2_1.tar.gz"
sha256 "e47f639aa6ffc14a2e5b03bf95e8b0edc390fa0bb2594a521f779d6e17afc14c"
license "Apache-2.0"
head "https://github.com/apigee/apib.git", branch: "master"
bottle do
sha256 cellar: :any, arm64_monterey: "712b621ed81276190cab1d04c2dace5f3f1dfea35ae951fe8c9b39270b95627e"
sha256 cellar: :any, arm64_big_sur: "6c066e87db949d59e554c6c9b9e7657d249171dee7a2d3b7bc53b54f36daa762"
sha256 cellar: :any, monterey: "d0477956dd662a85a626749dafc2ec674d5fb09ca1627901dabc1f412828846b"
sha256 cellar: :any, big_sur: "24b8a6e851fe6e262765131c025e8dddada1c740ed7f3aa978d4fbc3bec939c1"
sha256 cellar: :any, catalina: "b925a48cd3a9047184b5373e4718e4142117a487467cea95be9f43f6c9951712"
sha256 cellar: :any, mojave: "fd1f74b58c7a51240d463c8ec1203bce33677409aca81ba0ffba9ea718471433"
sha256 cellar: :any, high_sierra: "aee416aff5715b96b81cfeda0be036a2510ffe760187e396c143a64bae2c25c2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e5ae88648f2f468755ca4d54017d1c5d79481c5ab315e48f3d1eb3382933402c"
end
depends_on "cmake" => :build
depends_on "libev"
depends_on "openssl@1.1"
def install
system "cmake", ".", *std_cmake_args
system "make", "apib", "apibmon"
bin.install "apib/apib", "apib/apibmon"
end
test do
system "#{bin}/apib", "-c 1", "-d 1", "https://www.google.com"
end
end