Ticket #1706: Portfile

File Portfile, 1.8 KB (added by waqar@…, 20 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.2 2004/02/27 23:41:48 waqar Exp $
2
3PortSystem      1.0
4name            sbcl
5version         0.8.8
6categories      lang
7maintainers     gwright@comcast.net
8platforms       darwin
9description     The Steel Bank Common Lisp system
10
11long_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
19homepage        http://www.sbcl.org
20master_sites    sourceforge
21
22use_bzip2       yes
23
24distfiles       ${name}-${version}-source${extract.suffix} \
25                ${name}-${version}-ppc-darwin-binary${extract.suffix}
26
27distname        ${name}-${version}-source
28worksrcdir      ${name}-${version}
29
30checksums       ${name}-${version}-source${extract.suffix} \
31                        md5 a80d2bb990f80d8d13f947a68ea3c78b \
32                ${name}-${version}-ppc-darwin-binary${extract.suffix} \
33                        md5 54472ea3c18c97b85df18fdd206608a4
34
35use_configure   no
36
37set host_lisp   " \"${workpath}/${name}-${version}-ppc-darwin/src/runtime/sbcl --core ${workpath}/${name}-${version}-ppc-darwin/output/sbcl.core --disable-debugger\" "
38
39build           { cd ${worksrcpath}
40                  system "ulimit -s 8192"
41
42                  system "sh make.sh ${host_lisp}"
43                }
44
45destroot        { cd ${worksrcpath}
46                  system "INSTALL_ROOT=${destroot}/${prefix} sh install.sh"
47                }
48
49post-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