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
|
|
|
homepage 'http://code.google.com/p/httperf/'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://httperf.googlecode.com/files/httperf-0.9.0.tar.gz'
|
2012-09-02 19:28:03 +00:00
|
|
|
sha1 '2aa885c0c143d809c0e50a6eca5063090bddee35'
|
2009-10-12 18:35:25 +00:00
|
|
|
|
2012-09-02 19:28:03 +00:00
|
|
|
option 'enable-debug', 'Build with debugging support'
|
2011-10-25 21:33:31 +00:00
|
|
|
|
2009-10-12 18:35:25 +00:00
|
|
|
def install
|
2012-09-02 19:28:03 +00:00
|
|
|
debug = build.include?('enable-debug') ? '--enable-debug' : '--disable-debug'
|
2011-10-25 21:33:31 +00:00
|
|
|
|
2012-09-02 19:28:03 +00:00
|
|
|
system "./configure", debug,
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2009-10-12 18:35:25 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|