Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 48 lines (37 sloc) 1.293 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
18 # Clisp requires to select word size explicitly this way,
19 # set it in CFLAGS won't work.
46c553a @adamv Replace snow_leopard_64? in brews.
adamv authored
20 ENV['CC'] = "#{ENV.cc} -m#{MacOS.prefer_64_bit? ? 64 : 32}"
fdf6094 @tianyicui New formula: clisp
tianyicui authored
21
22 system "./configure", "--prefix=#{prefix}",
23 "--with-readline=yes"
24
25 cd "src" do
26 # Multiple -O options will be in the generated Makefile,
27 # make Homebrew's the last such option so it's effective.
28 inreplace "Makefile" do |s|
29 cf = s.get_make_var("CFLAGS")
30 cf.gsub! ENV['CFLAGS'], ''
31 cf += ' '+ENV['CFLAGS']
32 s.change_make_var! 'CFLAGS', cf
33 end
34
35 # The ulimit must be set, otherwise `make` will fail and tell you to do so
36 system "ulimit -s 16384 && make"
37
38 # Considering the complexity of this package, a self-check is highly recommended.
39 system "make check"
40 system "make install"
41 end
42 end
43
44 def test
45 system "clisp --version"
46 end
47 end
Something went wrong with that request. Please try again.