homebrew-core/Formula/httperf.rb
2017-09-24 01:41:34 +02:00

44 lines
1.5 KiB
Ruby

class Httperf < Formula
desc "Tool for measuring webserver performance"
homepage "https://github.com/httperf/httperf"
url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/httperf/httperf-0.9.0.tar.gz"
sha256 "e1a0bf56bcb746c04674c47b6cfa531fad24e45e9c6de02aea0d1c5f85a2bf1c"
revision 1
bottle do
cellar :any
sha256 "1ed6c221d700528fa7a74fa12160ef3f25b2ac4d2835f7a0dfc73eb4ac4e5a87" => :high_sierra
sha256 "3ecb1323c334cfee3a0e134750c24f07c0f808effcc271c86893ea7d13cdcef4" => :sierra
sha256 "42d9ecb49274565dd969ceb5c2c9135caf1011a2f1636f22401a30189298613a" => :el_capitan
sha256 "d23d569b210c93d798f319e01ddeb9cca1dd11e5c5330a0df0eef59497dbb12d" => :yosemite
sha256 "e6a03dce9f3679d23449b9fed857324d570b8fb6b94a3d31b5e172253eaa99dd" => :mavericks
sha256 "e52a0a55a440ba301d8ca469a5a1ef3d6ec5e51fa8df0662674d25f3c9c96b77" => :mountain_lion
end
# Upstream actually recommend using head over stable now.
head do
url "https://github.com/httperf/httperf.git"
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "libtool" => :build
end
option "with-debug", "Build with debugging support"
deprecated_option "enable-debug" => "with-debug"
depends_on "openssl"
def install
args = %W[
--prefix=#{prefix}
--disable-dependency-tracking
]
args << "--enable-debug" if build.with? "debug"
system "autoreconf", "-fvi" if build.head?
system "./configure", *args
system "make", "install"
end
end