homebrew-core/Formula/gawk.rb

38 lines
1.1 KiB
Ruby
Raw Normal View History

2014-05-04 19:12:41 +00:00
require "formula"
2009-09-23 01:45:21 +00:00
2011-03-10 05:11:03 +00:00
class Gawk < Formula
2014-05-04 19:12:41 +00:00
homepage "http://www.gnu.org/software/gawk/"
url "http://ftpmirror.gnu.org/gawk/gawk-4.1.1.tar.xz"
mirror "http://ftp.gnu.org/gnu/gawk/gawk-4.1.1.tar.xz"
sha1 "547feb48d20e923aff58daccee97c94e047fdc18"
2014-03-13 20:13:59 +00:00
bottle do
2014-10-21 20:14:11 +00:00
revision 1
sha1 "7efb956662b3283b96271179bd7c3fc1cc367197" => :yosemite
sha1 "93f05ee77b9ae24aa7ae874b0e397439cd1b9192" => :mavericks
sha1 "2205db37be8b453fd1d63d4bf8b19ce6bd2ee863" => :mountain_lion
2014-03-13 20:13:59 +00:00
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
2014-05-04 19:12:41 +00:00
output = pipe_output("#{bin}/gawk '{ gsub(/Macro/, \"Home\"); print }' -", "Macrobrew")
assert_equal 'Homebrew', output.strip
end
2009-09-23 01:45:21 +00:00
end