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