1 | # $Id: Portfile 22524 2007-03-04 16:01:41Z gwright@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name sbcl |
---|
5 | version 1.0.3 |
---|
6 | revision 1 |
---|
7 | set bootversion 0.9.16 |
---|
8 | categories lang |
---|
9 | maintainers gwright@macports.org waqar@macports.org |
---|
10 | platforms darwin |
---|
11 | description The Steel Bank Common Lisp system |
---|
12 | long_description \ |
---|
13 | Steel Bank Common Lisp (SBCL) is a Open Source \ |
---|
14 | development system for ANSI Common Lisp. It provides an \ |
---|
15 | interactive environment including an integrated native \ |
---|
16 | compiler, interpreter, and debugger. (And it, and its \ |
---|
17 | generated code, can also play nicely with Unix when \ |
---|
18 | running noninteractively.) |
---|
19 | |
---|
20 | homepage http://www.sbcl.org |
---|
21 | master_sites sourceforge |
---|
22 | use_bzip2 yes |
---|
23 | |
---|
24 | patchfiles use-mach-exception-handler.patch |
---|
25 | |
---|
26 | platform powerpc { |
---|
27 | set bootversion 0.9.15 |
---|
28 | distfiles-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} |
---|
29 | checksums-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} \ |
---|
30 | md5 2f0ee82eff649e3862c524fd0705cfc0 |
---|
31 | |
---|
32 | global host_lisp |
---|
33 | set host_lisp "\"${workpath}/${name}-${bootversion}-powerpc-darwin/src/runtime/sbcl --core ${workpath}/${name}-${bootversion}-powerpc-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null\" " |
---|
34 | } |
---|
35 | |
---|
36 | platform i386 { |
---|
37 | distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} |
---|
38 | checksums-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} \ |
---|
39 | md5 b7fb206ac82d11ae7aeee8e0cf462c93 |
---|
40 | |
---|
41 | global host_lisp |
---|
42 | set host_lisp "\"${workpath}/${name}-${bootversion}-x86-darwin/src/runtime/sbcl --core ${workpath}/${name}-${bootversion}-x86-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null\" " |
---|
43 | } |
---|
44 | |
---|
45 | |
---|
46 | distfiles ${name}-${version}-source${extract.suffix} |
---|
47 | |
---|
48 | distname ${name}-${version}-source |
---|
49 | worksrcdir ${name}-${version} |
---|
50 | |
---|
51 | checksums ${name}-${version}-source${extract.suffix} \ |
---|
52 | md5 25d4e2a592659db32e6c3fd16e977245 |
---|
53 | |
---|
54 | post-patch { reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \ |
---|
55 | ${worksrcpath}/src/runtime/runtime.c |
---|
56 | reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \ |
---|
57 | ${worksrcpath}/doc/sbcl.1 |
---|
58 | } |
---|
59 | |
---|
60 | use_configure no |
---|
61 | |
---|
62 | |
---|
63 | build { cd ${worksrcpath} |
---|
64 | system "ulimit -s 8192" |
---|
65 | |
---|
66 | system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh ${host_lisp}" |
---|
67 | } |
---|
68 | |
---|
69 | default_variants +test |
---|
70 | |
---|
71 | variant test { test.run yes |
---|
72 | test.dir ${worksrcpath}/tests |
---|
73 | test.cmd sh |
---|
74 | test.target run-tests.sh |
---|
75 | } |
---|
76 | |
---|
77 | destroot { cd ${worksrcpath} |
---|
78 | system "INSTALL_ROOT=${destroot}/${prefix} sh install.sh" |
---|
79 | } |
---|
80 | |
---|