diff options
| author | Dominyk Tiller | 2014-11-09 07:14:12 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-11-09 17:27:02 +0000 |
| commit | c0980c8eaa40f9885b639dbf79bd0de1f81f0965 (patch) | |
| tree | a7e1f9d11f9c80a1a8dbc4d1c1f7cda1f89ee6ed /Library | |
| parent | 46d763981cb685dafe0dd7f0403143a3cda01f35 (diff) | |
| download | homebrew-c0980c8eaa40f9885b639dbf79bd0de1f81f0965.tar.bz2 | |
httperf: additional openssl dependency
I only intended to fix the OpenSSL dependency here, but I feared if I
offered this formula up again in the same format the maintainers might
kick me in the shins repeatedly, so I went to town on it.
Closes #34040.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/httperf.rb | 42 |
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 |
