30 lines
944 B
Ruby
30 lines
944 B
Ruby
require "formula"
|
|
|
|
class Mawk < Formula
|
|
homepage "http://invisible-island.net/mawk/"
|
|
url "ftp://invisible-island.net/mawk/mawk-1.3.4-20141027.tgz"
|
|
sha1 "a0a54bde0c76a351fa073a6fa10ce912a1260144"
|
|
|
|
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}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
version=`mawk '/version/ { print $2 }' #{prefix}/README`
|
|
assert_equal 0, $?.exitstatus
|
|
assert_equal version, "#{version}"
|
|
end
|
|
end
|