e9ff47ba2a
Closes Homebrew/homebrew#27127. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
33 lines
929 B
Ruby
33 lines
929 B
Ruby
require 'formula'
|
|
|
|
class Gawk < Formula
|
|
homepage 'http://www.gnu.org/software/gawk/'
|
|
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'
|
|
|
|
depends_on 'xz' => :build
|
|
|
|
fails_with :llvm do
|
|
build 2326
|
|
cause "Undefined symbols when linking"
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--without-readline",
|
|
"--without-mpfr",
|
|
"--without-libsigsegv-prefix"
|
|
system "make"
|
|
system "make check"
|
|
system "make install"
|
|
end
|
|
|
|
test do
|
|
output = `echo "Macrobrew" | gawk '{ gsub(/Macro/, "Home"); print }' -`
|
|
assert_equal 'Homebrew', output.strip
|
|
assert_equal 0, $?.exitstatus
|
|
end
|
|
end
|