httperf: migrate to archive URL

This commit is contained in:
Dominyk Tiller 2016-08-28 18:33:47 +01:00
parent 6deaa5b316
commit f0852a3795
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -1,7 +1,7 @@
class Httperf < Formula
desc "Tool for measuring webserver performance"
homepage "https://code.google.com/p/httperf/"
url "https://httperf.googlecode.com/files/httperf-0.9.0.tar.gz"
homepage "https://github.com/httperf/httperf"
url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/httperf/httperf-0.9.0.tar.gz"
sha256 "e1a0bf56bcb746c04674c47b6cfa531fad24e45e9c6de02aea0d1c5f85a2bf1c"
revision 1
@ -15,32 +15,27 @@ class Httperf < Formula
# Upstream actually recommend using head over stable now.
head do
url "http://httperf.googlecode.com/svn/trunk/"
url "https://github.com/httperf/httperf.git"
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"
deprecated_option "enable-debug" => "with-debug"
depends_on "openssl"
def install
args = ["--prefix=#{prefix}",
"--disable-dependency-tracking"]
args = %W[
--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 "autoreconf", "-fvi" if build.head?
system "./configure", *args
system "make", "install"
end