forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gawk3.rb
28 lines (24 loc) · 950 Bytes
/
gawk3.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Gawk3 < Formula
homepage "https://www.gnu.org/software/gawk/"
url "http://ftpmirror.gnu.org/gawk/gawk-3.1.8.tar.bz2"
mirror "https://ftp.gnu.org/gnu/gawk/gawk-3.1.8.tar.bz2"
sha256 "5dbc7b2c4c328711337c2aacd09a122c7313122262e3ff034590f014067412b4"
bottle do
sha256 "1759758515e164e132faca481366230aadf1b23bd4beec9fbdb5e75046d6bdeb" => :yosemite
sha256 "69de726a50262eb82938332505f0f55b3112423212b4a2a372b1e30a90b34eef" => :mavericks
sha256 "88861130d66e15afafc9627fb065ab4b7b45e599bb02dd50c67aa2592da67cd0" => :mountain_lion
end
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def install
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make"
system "make", "install"
end
test do
output = pipe_output("#{bin}/gawk '{ gsub(/Macro/, \"Home\"); print }' -", "Macrobrew")
assert_equal 'Homebrew', output.strip
end
end