aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/httperf.rb42
1 files changed, 32 insertions, 10 deletions
diff --git a/Library/Formula/httperf.rb b/Library/Formula/httperf.rb
index cac5a90f9..dddca6874 100644
--- a/Library/Formula/httperf.rb
+++ b/Library/Formula/httperf.rb
@@ -1,18 +1,40 @@
-require 'formula'
+require "formula"
class Httperf < Formula
- homepage 'http://code.google.com/p/httperf/'
- url 'https://httperf.googlecode.com/files/httperf-0.9.0.tar.gz'
- sha1 '2aa885c0c143d809c0e50a6eca5063090bddee35'
+ homepage "https://code.google.com/p/httperf/"
+ url "https://httperf.googlecode.com/files/httperf-0.9.0.tar.gz"
+ sha1 "2aa885c0c143d809c0e50a6eca5063090bddee35"
+ revision 1
- option 'enable-debug', 'Build with debugging support'
+ # Upstream actually recommend using head over stable now.
+ head do
+ url "http://httperf.googlecode.com/svn/trunk/"
+
+ depends_on "automake" => :build
+ depends_on "autoconf" => :build
+ depends_on "libtool" => :build
+ end
+
+ deprecated_option "enable-debug" => "with-debug"
+
+ option "with-debug", "Build with debugging support"
+
+ depends_on "openssl"
def install
- debug = build.include?('enable-debug') ? '--enable-debug' : '--disable-debug'
+ args = ["--prefix=#{prefix}",
+ "--disable-dependency-tracking"]
+
+ args << "--enable-debug" if build.with? "debug"
- system "./configure", debug,
- "--disable-dependency-tracking",
- "--prefix=#{prefix}"
- system "make install"
+ if build.head?
+ cd "httperf"
+ # Shipped permissions = Access to configure.ac denied.
+ # Probably no chance of this being fixed upstream.
+ chmod 0755, "configure.ac"
+ system "autoreconf", "-i"
+ end
+ system "./configure", *args
+ system "make", "install"
end
end