homebrew-core/Formula/mawk.rb

31 lines
944 B
Ruby
Raw Normal View History

require "formula"
2011-03-10 05:11:03 +00:00
class Mawk < Formula
homepage "http://invisible-island.net/mawk/"
url "ftp://invisible-island.net/mawk/mawk-1.3.4-20141027.tgz"
sha1 "a0a54bde0c76a351fa073a6fa10ce912a1260144"
2014-12-04 22:25:12 +00:00
bottle do
cellar :any
sha1 "32fbaf50a142eba4ce968a0de1cc013cd2d39f66" => :yosemite
sha1 "9d733323a1e4e185ad6e9cf5a45139258f14ed37" => :mavericks
sha1 "169c70e2d8b83c9c19ebc97687278044fd8c855d" => :mountain_lion
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-silent-rules",
"--with-readline=/usr/lib",
"--mandir=#{man}"
2014-12-05 11:30:17 +00:00
system "make", "install"
end
test do
version=`mawk '/version/ { print $2 }' #{prefix}/README`
2014-12-05 11:30:17 +00:00
assert_equal 0, $?.exitstatus
assert_equal version, "#{version}"
end
end