blob: 21303662c89f38d0a2d6bc6dabe60d4a16ec75d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
require "formula"
class Httperf < Formula
homepage "https://code.google.com/p/httperf/"
url "https://httperf.googlecode.com/files/httperf-0.9.0.tar.gz"
sha1 "2aa885c0c143d809c0e50a6eca5063090bddee35"
revision 1
bottle do
cellar :any
sha1 "b37decb63bdb77a6d04cb770a2d40745d2b5ee78" => :yosemite
sha1 "5e00255e74995f0bfa601152329d66be8a0d7fdf" => :mavericks
sha1 "cc699648d2c48f2a9a8fa94da42831c3551e8475" => :mountain_lion
end
# 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
args = ["--prefix=#{prefix}",
"--disable-dependency-tracking"]
args << "--enable-debug" if build.with? "debug"
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
|