aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gnu-smalltalk.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2009-12-02 23:07:11 -0800
committerMax Howell2009-12-05 14:39:10 +0000
commitfe7ab153f3f5c641be8f672a3ff4908b97f502af (patch)
tree01007b3c28710d8d1f0d8681b5cf28d52604c564 /Library/Formula/gnu-smalltalk.rb
parent0ff5680b0cae4f8438af3b089336be833b809356 (diff)
downloadhomebrew-fe7ab153f3f5c641be8f672a3ff4908b97f502af.tar.bz2
Fix gnu-smalltalk library for Snow Leopard.
Fixes #123
Diffstat (limited to 'Library/Formula/gnu-smalltalk.rb')
-rw-r--r--Library/Formula/gnu-smalltalk.rb26
1 files changed, 17 insertions, 9 deletions
diff --git a/Library/Formula/gnu-smalltalk.rb b/Library/Formula/gnu-smalltalk.rb
index 5f87721b2..a612b088d 100644
--- a/Library/Formula/gnu-smalltalk.rb
+++ b/Library/Formula/gnu-smalltalk.rb
@@ -1,19 +1,27 @@
require 'formula'
+# References:
+# * http://smalltalk.gnu.org/wiki/building-gst-guides
+
class GnuSmalltalk <Formula
- @url='ftp://ftp.gnu.org/gnu/smalltalk/smalltalk-3.1.tar.gz'
- @homepage='http://smalltalk.gnu.org/'
- @md5='fb4630a86fc47c893cf9eb9adccd4851'
+ url 'ftp://ftp.gnu.org/gnu/smalltalk/smalltalk-3.1.tar.gz'
+ homepage 'http://smalltalk.gnu.org/'
+ md5 'fb4630a86fc47c893cf9eb9adccd4851'
- def patches
- {
- :p1 => ["http://bitbucket.org/0xffea/patches/raw/bc22b0b12337/homebrew/smalltalk-001-install.diff"]
- }
- end
+ # gmp is an optional dep, but doesn't compile on 10.5
+ # depends_on 'gmp' => :optional
def install
+ # Codegen problems with LLVM
+ ENV.gcc_4_2
+ # 64-bit version doesn't build, so force 32 bits.
+ ENV.m32
ENV['FFI_CFLAGS'] = '-I/usr/include/ffi'
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--with-readline=/usr/lib"
+ system "./configure", "--prefix=#{prefix}", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--with-readline=/usr/lib"
+ system "make"
+ ENV.j1 # Parallel install doesn't work
system "make install"
end
end