homebrew-core/Formula/nuttcp.rb

26 lines
926 B
Ruby

class Nuttcp < Formula
desc "Network performance measurement tool"
homepage "http://www.nuttcp.net/nuttcp"
url "http://www.nuttcp.net/nuttcp/nuttcp-6.1.2.tar.bz2"
sha256 "054e96d9d68fe917df6f25fab15c7755bdd480f6420d7d48d9194a1a52378169"
bottle do
cellar :any_skip_relocation
sha256 "7fe34e31cd50393b055dde913785931696bb332bc1b5948720d7817e1247151c" => :el_capitan
sha256 "18cfa8910325006d83e53c94a845d611704ce882f3f48a5edd2ebc6e75def200" => :yosemite
sha256 "57c31d24a43302c4fb1b08f6a17a05da60c3486a52481b0580c3e1f5d75c7eaa" => :mavericks
sha256 "e289d316c0aea0a8b1a85bde5f72f648cfe2dbae26a9fee4f7614ccdd7aa983a" => :mountain_lion
end
def install
system "make", "APP=nuttcp",
"CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
bin.install "nuttcp"
man8.install "nuttcp.cat" => "nuttcp.8"
end
test do
assert_match version.to_s, shell_output("#{bin}/nuttcp -V")
end
end