homebrew-core/Formula/iperf3.rb

26 lines
721 B
Ruby
Raw Normal View History

2014-05-19 02:16:30 +00:00
require "formula"
class Iperf3 < Formula
2014-05-19 02:16:30 +00:00
homepage "https://github.com/esnet/iperf"
2014-06-21 19:32:44 +00:00
url "https://github.com/esnet/iperf/archive/3.0.5.tar.gz"
sha1 "4ebc5bf6456527cdf6d902f8cd810169bc00711b"
2014-05-19 02:16:30 +00:00
head "https://code.google.com/p/iperf/", :using => :hg
bottle do
cellar :any
sha1 "d74a919035e5ae4e205fa9a5bcb7d781691b1503" => :mavericks
sha1 "9eb1365ce719e41e3cd0eb705714e2205f815a3b" => :mountain_lion
sha1 "cf03918180e743e894ba5e24a5a35de8f91be863" => :lion
end
def install
2014-05-31 23:12:45 +00:00
system "./configure", "--prefix=#{prefix}"
system "make", "clean" # there are pre-compiled files in the tarball
system "make", "install"
end
test do
system "#{bin}/iperf3", "--version"
end
end