Ticket #24709: sbcl-Portfile

File sbcl-Portfile, 4.1 KB (added by joaogeada (Joao Geada), 15 years ago)

Portfile for 64-bit Leopard

Line 
1# $Id: Portfile 67253 2010-05-03 13:52:26Z easieste@macports.org $
2
3PortSystem 1.0
4
5name            sbcl
6version         1.0.38
7revision        0     
8set subrevision ""
9categories      lang
10maintainers     gwright waqar easieste
11platforms       darwin
12description     The Steel Bank Common Lisp system
13long_description        \
14                Steel Bank Common Lisp (SBCL) is a Open Source          \
15                development system for ANSI Common Lisp. It provides an \
16                interactive environment including an integrated native  \
17                compiler, interpreter, and debugger. (And it, and its   \
18                generated code, can also play nicely with Unix when     \
19                running noninteractively.)
20
21homepage        http://www.sbcl.org
22master_sites    sourceforge
23use_bzip2       yes
24
25patchfiles      patch-use-mach-exception-handler.diff \
26                patch-posix-tests.diff
27               
28distfiles       ${name}-${version}-source${subrevision}${extract.suffix}
29
30distname        ${name}-${version}-source${subrevision}
31worksrcdir      ${name}-${version}
32
33checksums           sbcl-${version}-source.tar.bz2 \
34                    md5     a275b47c2f18cf2d20594d7b5463835f \
35                    sha1    39d09bec3821ad07761361f9300752d53c5bac87 \
36                    rmd160  95f424df58cbeb5ad9bb9e220d77da542a06f62d \
37                    sbcl-1.0.30-x86-darwin-binary.tar.bz2 \
38                    md5     c15bbff2e7a9083ecd50942edb74cc8c \
39                    sha1    069431d0a6e6cfbd7489c3792392926de199a93f \
40                    rmd160  266693e337b5369ef6f6ee9c269f9e6a4df03c36
41
42platform powerpc {
43                   set bootversion 1.0.22
44                   distfiles-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix}
45                   checksums-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} \
46                        md5 61179259f7a7cccfa731f652f5edd29c
47
48                   global host_lisp
49                   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\" "
50}
51
52platform darwin 8 i386     {
53                   set bootversion 1.0.30
54                   distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix}
55
56                   global host_lisp
57                   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\" "
58}
59
60platform darwin 9 i386     {
61                   set bootversion 1.0.30
62                   distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix}
63
64                   global host_lisp
65                   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\" "
66}
67
68platform darwin 10 i386     {
69                   set bootversion 1.0.30
70                   distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix}
71
72                   global host_lisp
73                   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\" "
74}
75
76post-patch      {
77        reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
78                            ${worksrcpath}/src/runtime/runtime.c
79        reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
80                            ${worksrcpath}/doc/sbcl.1
81}
82
83use_configure   no
84
85
86build           {
87        system "ulimit -s 8192"
88        system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && cd ${worksrcpath} && sh make.sh ${host_lisp}"
89}
90
91post-build {
92        if {[variant_isset html]} {
93                system "cd ${worksrcpath}/doc; INSTALL_ROOT=${destroot}${prefix} sh ${worksrcpath}/doc/make-doc.sh"
94        }
95}
96
97default_variants        +html
98
99variant html description {Builds the SBCL and ASDF documentation as HTML} {}
100
101variant threads description {enable threaded runtime} {
102        patchfiles-append patch-base-target-features.diff
103}
104
105test.run        yes
106test.dir        ${worksrcpath}/tests
107test.cmd        sh
108test.target     run-tests.sh
109
110destroot        { system "cd ${worksrcpath}; INSTALL_ROOT=${destroot}/${prefix} sh ${worksrcpath}/install.sh"
111}
112
113livecheck.url       http://sourceforge.net/api/file/index/project-id/1373/rss?path=%2F${name}
114livecheck.regex     ${name}-(\\d+(\\.\\d+)+)-