homebrew-core/Formula/gawk.rb

38 lines
1.1 KiB
Ruby
Raw Normal View History

require 'formula'
2009-09-23 01:45:21 +00:00
2011-03-10 05:11:03 +00:00
class Gawk < Formula
2009-11-26 06:47:25 +00:00
homepage 'http://www.gnu.org/software/gawk/'
2013-05-19 15:33:10 +00:00
url 'http://ftpmirror.gnu.org/gawk/gawk-4.1.0.tar.xz'
mirror 'http://ftp.gnu.org/gnu/gawk/gawk-4.1.0.tar.xz'
sha1 'caabca3c1a59d05807c826c45a4639b82cad612a'
2014-03-13 20:13:59 +00:00
bottle do
sha1 "c65a78da9b8bc8eceb24f1bbae2892c16aa0c202" => :mavericks
sha1 "db98589dfcbf0875e172b41bc4b08148737e46bd" => :mountain_lion
sha1 "a90fa8c6c4ce4ffec0a103f567db5eec319bb3bf" => :lion
end
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
2011-03-21 21:24:22 +00:00
2009-09-23 01:45:21 +00:00
def install
2013-05-19 15:33:10 +00:00
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--without-readline",
"--without-mpfr",
"--without-libsigsegv-prefix"
2009-09-23 01:45:21 +00:00
system "make"
system "make check"
2009-09-23 01:45:21 +00:00
system "make install"
end
test do
output = `echo "Macrobrew" | '#{bin}/gawk' '{ gsub(/Macro/, "Home"); print }' -`
assert_equal 'Homebrew', output.strip
assert_equal 0, $?.exitstatus
end
2009-09-23 01:45:21 +00:00
end