1 | # $Id: Portfile,v 1.2 2004/02/27 23:41:48 waqar Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name sbcl |
---|
5 | version 0.8.9 |
---|
6 | categories lang |
---|
7 | maintainers gwright@comcast.net |
---|
8 | platforms darwin |
---|
9 | description The Steel Bank Common Lisp system |
---|
10 | |
---|
11 | long_description \ |
---|
12 | Steel Bank Common Lisp (SBCL) is a Open Source \ |
---|
13 | development system for ANSI Common Lisp. It provides an \ |
---|
14 | interactive environment including an integrated native \ |
---|
15 | compiler, interpreter, and debugger. (And it, and its \ |
---|
16 | generated code, can also play nicely with Unix when \ |
---|
17 | running noninteractively.) |
---|
18 | |
---|
19 | homepage http://www.sbcl.org |
---|
20 | master_sites sourceforge |
---|
21 | |
---|
22 | use_bzip2 yes |
---|
23 | |
---|
24 | distfiles ${name}-${version}-source${extract.suffix} \ |
---|
25 | ${name}-${version}-ppc-darwin-binary${extract.suffix} |
---|
26 | |
---|
27 | distname ${name}-${version}-source |
---|
28 | worksrcdir ${name}-${version} |
---|
29 | |
---|
30 | checksums ${name}-${version}-source${extract.suffix} \ |
---|
31 | md5 97ca1a5dac091f61943325a3d689a8e3 \ |
---|
32 | ${name}-${version}-ppc-darwin-binary${extract.suffix} \ |
---|
33 | md5 11035de9d5c82a0fde4e610198c6d2e1 |
---|
34 | |
---|
35 | use_configure no |
---|
36 | |
---|
37 | set host_lisp " \"${workpath}/${name}-${version}-ppc-darwin/src/runtime/sbcl --core ${workpath}/${name}-${version}-ppc-darwin/output/sbcl.core --disable-debugger\" " |
---|
38 | |
---|
39 | build { cd ${worksrcpath} |
---|
40 | system "ulimit -s 8192" |
---|
41 | |
---|
42 | system "sh make.sh ${host_lisp}" |
---|
43 | } |
---|
44 | |
---|
45 | destroot { cd ${worksrcpath} |
---|
46 | system "INSTALL_ROOT=${destroot}/${prefix} sh install.sh" |
---|
47 | } |
---|
48 | |
---|
49 | post-destroot { cd ${destroot}${prefix}/bin |
---|
50 | file rename sbcl sbcl.bin |
---|
51 | |
---|
52 | set script [open "${destroot}${prefix}/bin/sbcl" w 755] |
---|
53 | puts $script "#!/bin/sh" |
---|
54 | puts $script "${prefix}/bin/sbcl.bin --core ${prefix}/lib/${name}/${name}.core $@" |
---|
55 | puts $script "" |
---|
56 | close $script |
---|
57 | system "chmod 755 ${destroot}${prefix}/bin/sbcl" |
---|
58 | } |
---|
59 | |
---|