2009-10-15 08:07:12 +00:00
|
|
|
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/'
|
2012-03-28 23:30:05 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/gawk/gawk-4.0.1.tar.xz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/gawk/gawk-4.0.1.tar.xz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '9be956d124e0c0794836055846aea78d2dc547ad'
|
2012-03-28 23:30:05 +00:00
|
|
|
|
|
|
|
depends_on 'xz' => :build
|
2009-09-23 01:45:21 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
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
|
2010-06-22 20:52:21 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2009-09-23 01:45:21 +00:00
|
|
|
system "make"
|
2011-07-02 17:02:12 +00:00
|
|
|
ENV.j1 # Run tests serialized
|
|
|
|
system "make check"
|
2009-09-23 01:45:21 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|