2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-12 18:35:25 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Httperf < Formula
|
2010-02-16 13:41:27 +00:00
|
|
|
url 'http://httperf.googlecode.com/files/httperf-0.9.0.tar.gz'
|
|
|
|
homepage 'http://code.google.com/p/httperf/'
|
2009-10-12 18:35:25 +00:00
|
|
|
md5 '2968c36b9ecf3d98fc1f2c1c9c0d9341'
|
|
|
|
|
2011-10-25 21:33:31 +00:00
|
|
|
def options
|
|
|
|
[['--enable-debug', 'build with support for the --debug=N option']]
|
|
|
|
end
|
|
|
|
|
2009-10-12 18:35:25 +00:00
|
|
|
def install
|
2011-10-25 21:33:31 +00:00
|
|
|
debug = ARGV.include?('--enable-debug') ? '--enable-debug' : '--disable-debug'
|
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}", debug, "--disable-dependency-tracking"
|
2009-10-12 18:35:25 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|