Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (43 sloc) 1.628 kb
fdf6094 Tianyi Cui New formula: clisp
tianyicui authored
1 require 'formula'
2
0476235 Adam Vandenberg Use ruby style for inheritance.
adamv authored
3 class Clisp < Formula
fdf6094 Tianyi Cui 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
f4a925d Adam Vandenberg Update fails_with_llvm in formulae
adamv authored
14 fails_with_llvm "Fails during configure with LLVM GCC from XCode 4 on Snow Leopard"
fdf6094 Tianyi Cui New formula: clisp
tianyicui authored
15
f4a925d Adam Vandenberg Update fails_with_llvm in formulae
adamv authored
16 def install
17 ENV.j1 # This build isn't parallel safe.
8e00ca8 Adam Vandenberg clisp: does not compile with llvm
adamv authored
18
fdf6094 Tianyi Cui New formula: clisp
tianyicui authored
19 # Clisp requires to select word size explicitly this way,
20 # set it in CFLAGS won't work.
46c553a Adam Vandenberg Replace snow_leopard_64? in brews.
adamv authored
21 ENV['CC'] = "#{ENV.cc} -m#{MacOS.prefer_64_bit? ? 64 : 32}"
fdf6094 Tianyi Cui New formula: clisp
tianyicui authored
22
23 system "./configure", "--prefix=#{prefix}",
24 "--with-readline=yes"
25
26 cd "src" do
27 # Multiple -O options will be in the generated Makefile,
28 # make Homebrew's the last such option so it's effective.
29 inreplace "Makefile" do |s|
30 cf = s.get_make_var("CFLAGS")
31 cf.gsub! ENV['CFLAGS'], ''
32 cf += ' '+ENV['CFLAGS']
33 s.change_make_var! 'CFLAGS', cf
34 end
35
36 # The ulimit must be set, otherwise `make` will fail and tell you to do so
37 system "ulimit -s 16384 && make"
38
f31ba22 Adam Vandenberg clisp: disable self-check on Lion
adamv authored
39 if MacOS.lion?
40 opoo "`make check` fails on Lion, so we are skipping it."
41 puts "But it probably means there will be other issues too."
42 puts "Please take them upstream to the clisp project itself."
43 else
44 # Considering the complexity of this package, a self-check is highly recommended.
45 system "make check"
46 end
47
fdf6094 Tianyi Cui New formula: clisp
tianyicui authored
48 system "make install"
49 end
50 end
51
52 def test
53 system "clisp --version"
54 end
55 end
Something went wrong with that request. Please try again.