diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gnu-smalltalk.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/gnu-smalltalk.rb b/Library/Formula/gnu-smalltalk.rb index 5f1da55a5..9c5f6a510 100644 --- a/Library/Formula/gnu-smalltalk.rb +++ b/Library/Formula/gnu-smalltalk.rb @@ -17,6 +17,8 @@ class GnuSmalltalk <Formula # 'gmp' is an optional dep, it is built 64-bit on Snow Leopard # (and this brew is forced to build in 32-bit mode.) + depends_on 'readline' + def install fails_with_llvm "Codegen problems with LLVM" @@ -34,6 +36,8 @@ class GnuSmalltalk <Formula EOS end + readline = Formula.factory('readline') + # GNU Smalltalk thinks it needs GNU awk, but it works fine # with OS X awk, so let's trick configure. here = Dir.pwd @@ -43,7 +47,7 @@ class GnuSmalltalk <Formula ENV['FFI_CFLAGS'] = '-I/usr/include/ffi' system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", - "--with-readline=/usr/lib" + "--with-readline=#{readline.lib}" system "make" ENV.j1 # Parallel install doesn't work system "make install" |
