homebrew-core/Formula/httperf.rb
Jay Levitt 2c2af243fe httperf: support --enable-debug option
The --enable-debug configure-time option builds httperf with
runtime support for the --debug=N or -d=N flags, which show
details about the requests and responses.  N is a number; the
higher the number, the more detail you get.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-27 09:35:01 -08:00

18 lines
511 B
Ruby

require 'formula'
class Httperf < Formula
url 'http://httperf.googlecode.com/files/httperf-0.9.0.tar.gz'
homepage 'http://code.google.com/p/httperf/'
md5 '2968c36b9ecf3d98fc1f2c1c9c0d9341'
def options
[['--enable-debug', 'build with support for the --debug=N option']]
end
def install
debug = ARGV.include?('--enable-debug') ? '--enable-debug' : '--disable-debug'
system "./configure", "--prefix=#{prefix}", debug, "--disable-dependency-tracking"
system "make install"
end
end