Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (19 sloc) 0.748 kb
require 'formula'
class Awk < Formula
homepage 'http://www.cs.princeton.edu/~bwk/btl.mirror/'
url 'http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz'
version '20121220'
sha1 '538fd69fb0fd01966eb41ad20c336215b4a07301'
conflicts_with 'gawk',
:because => 'both install awk executables.'
def install
ENV.O3 # Docs recommend higher optimization
# the yacc command the makefile uses results in build failures:
# /usr/bin/bison: missing operand after `awkgram.y'
# makefile believes -S to use sprintf instead of sprint, but the
# -S flag is not supported by `bison -y`
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}", "YACC=yacc -d"
bin.install 'a.out' => 'awk'
man1.install 'awk.1'
end
end
Jump to Line
Something went wrong with that request. Please try again.