aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-05-04 09:34:59 -0700
committerAdam Vandenberg2010-05-04 09:34:59 -0700
commit3d65acaf73a1d372603e215f8618ef15f264f3b1 (patch)
treea6dcb4ccf2f94a04e5bf54512bc2ad33bd337180 /Library
parentf2f402084950206232043f0f7b17c49d14513d4d (diff)
downloadhomebrew-3d65acaf73a1d372603e215f8618ef15f264f3b1.tar.bz2
gnu-smalltalk - remove gawk dependency
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gnu-smalltalk.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/gnu-smalltalk.rb b/Library/Formula/gnu-smalltalk.rb
index 293cf4dc4..818eb8004 100644
--- a/Library/Formula/gnu-smalltalk.rb
+++ b/Library/Formula/gnu-smalltalk.rb
@@ -14,7 +14,6 @@ class GnuSmalltalk <Formula
homepage 'http://smalltalk.gnu.org/'
sha1 'd951714c4fc7d91d06bdc33c20905885e5d2b25f'
- depends_on 'gawk' # Needed to build
# depends_on 'gmp' => :optional # 32/64 built build problems
def install
@@ -24,6 +23,12 @@ class GnuSmalltalk <Formula
# 64-bit version doesn't build, so force 32 bits.
ENV.m32
+ # GNU Smalltalk thinks it needs GNU awk, but it works fine
+ # with OS X awk, so let's trick configure.
+ here = Dir.pwd
+ system "ln -s /usr/bin/awk #{here}/gawk"
+ ENV['AWK'] = "#{here}/gawk"
+
ENV['FFI_CFLAGS'] = '-I/usr/include/ffi'
system "./configure", "--prefix=#{prefix}", "--disable-debug",
"--disable-dependency-tracking",