Fix gnu-smalltalk library for Snow Leopard.

Fixes Homebrew/homebrew#123
This commit is contained in:
Adam Vandenberg 2009-12-02 23:07:11 -08:00 committed by Max Howell
parent 69937d0367
commit c3d2f48092

View file

@ -1,19 +1,27 @@
require 'formula'
class GnuSmalltalk <Formula
@url='ftp://ftp.gnu.org/gnu/smalltalk/smalltalk-3.1.tar.gz'
@homepage='http://smalltalk.gnu.org/'
@md5='fb4630a86fc47c893cf9eb9adccd4851'
# References:
# * http://smalltalk.gnu.org/wiki/building-gst-guides
def patches
{
:p1 => ["http://bitbucket.org/0xffea/patches/raw/bc22b0b12337/homebrew/smalltalk-001-install.diff"]
}
end
class GnuSmalltalk <Formula
url 'ftp://ftp.gnu.org/gnu/smalltalk/smalltalk-3.1.tar.gz'
homepage 'http://smalltalk.gnu.org/'
md5 'fb4630a86fc47c893cf9eb9adccd4851'
# 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