Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 50 lines (38 sloc) 1.382 kb
fdf6094 @tianyicui New formula: clisp
tianyicui authored
1 require 'formula'
2
0476235 @adamv Use ruby style for inheritance.
adamv authored
3 class Clisp < Formula
fdf6094 @tianyicui New formula: clisp
tianyicui authored
4 url 'http://ftp.gnu.org/pub/gnu/clisp/release/2.49/clisp-2.49.tar.bz2'
5 homepage 'http://clisp.cons.org/'
6 md5 '1962b99d5e530390ec3829236d168649'
7
8 depends_on 'libiconv'
9 depends_on 'libsigsegv'
10 depends_on 'readline'
11
12 skip_clean :all # otherwise abort trap
13
14 def install
15 # This build isn't parallel safe.
16 ENV.j1
17
8e00ca8 @adamv clisp: does not compile with llvm
adamv authored
18 fails_with_llvm "Fails during configure with LLVM GCC from XCode 4 on Snow Leopard"
19
fdf6094 @tianyicui New formula: clisp
tianyicui authored
20 # Clisp requires to select word size explicitly this way,
21 # set it in CFLAGS won't work.
46c553a @adamv Replace snow_leopard_64? in brews.
adamv authored
22 ENV['CC'] = "#{ENV.cc} -m#{MacOS.prefer_64_bit? ? 64 : 32}"
fdf6094 @tianyicui New formula: clisp
tianyicui authored
23
24 system "./configure", "--prefix=#{prefix}",
25 "--with-readline=yes"
26
27 cd "src" do
28 # Multiple -O options will be in the generated Makefile,
29 # make Homebrew's the last such option so it's effective.
30 inreplace "Makefile" do |s|
31 cf = s.get_make_var("CFLAGS")
32 cf.gsub! ENV['CFLAGS'], ''
33 cf += ' '+ENV['CFLAGS']
34 s.change_make_var! 'CFLAGS', cf
35 end
36
37 # The ulimit must be set, otherwise `make` will fail and tell you to do so
38 system "ulimit -s 16384 && make"
39
40 # Considering the complexity of this package, a self-check is highly recommended.
41 system "make check"
42 system "make install"
43 end
44 end
45
46 def test
47 system "clisp --version"
48 end
49 end
Something went wrong with that request. Please try again.