aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gnu-smalltalk.rb
blob: 5f87721b268ff1a390ee0d72989a6a4dcb9aadfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class GnuSmalltalk <Formula
  @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

  def install
    ENV['FFI_CFLAGS'] = '-I/usr/include/ffi'
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--with-readline=/usr/lib"
    system "make install"
  end
end