source: trunk/dports/lang/sbcl/Portfile @ 62380

Last change on this file since 62380 was 62380, checked in by easieste@…, 10 years ago

Comment out further SB-POSIX tests reported to having failed under Snow Leopard.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.4 KB
Line 
1# $Id: Portfile 62380 2010-01-05 21:33:36Z easieste@macports.org $
2
3PortSystem 1.0
4
5name            sbcl
6version         1.0.33
7revision        3
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
25platform powerpc {
26                   set bootversion 1.0.22
27                   distfiles-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix}
28                   checksums-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} \
29                        md5 61179259f7a7cccfa731f652f5edd29c
30
31                   global host_lisp
32                   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\" "
33}
34
35platform darwin 8 i386     {
36                   set bootversion 1.0.10
37                   distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix}
38                   checksums-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} \
39                        md5 8684c781efd9667280f49b354cc83275
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
45platform darwin 9 i386     {
46                   set bootversion 1.0.12
47                   distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix}
48                   checksums-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} \
49                        md5 5c8e50fad3994ab5fb619d76260bd619
50
51                   global host_lisp
52                   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\" "
53}
54
55platform darwin 10 i386     {
56                   set bootversion 1.0.12
57                   distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix}
58                   checksums-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} \
59                        md5 5c8e50fad3994ab5fb619d76260bd619
60
61                   global host_lisp
62                   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\" "
63}
64
65patchfiles      patch-use-mach-exception-handler.diff \
66                patch-posix-tests.diff
67               
68distfiles       ${name}-${version}-source${subrevision}${extract.suffix}
69
70distname        ${name}-${version}-source${subrevision}
71worksrcdir      ${name}-${version}
72
73checksums           sbcl-${version}-source.tar.bz2 \
74                    md5     ccaf6a4a59649e902e01afc3ed69d10a \
75                    sha1    5cc814465c7ba12f6cefd938468b85558cdfbdb6 \
76                    rmd160  70933b1ec7d1bd6af3df92fb107b9014f260db53 \
77                    sbcl-1.0.12-x86-darwin-binary.tar.bz2 \
78                    md5     5c8e50fad3994ab5fb619d76260bd619 \
79                    sha1    ebc6e129b6c9316be5ce3a9007f9203781dd8558 \
80                    rmd160  bbdf4e8ce96cbc56714a47a122212cb20bcba9bf
81
82
83post-patch      {
84        reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
85                            ${worksrcpath}/src/runtime/runtime.c
86        reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
87                            ${worksrcpath}/doc/sbcl.1
88}
89
90use_configure   no
91
92
93build           {
94        system "ulimit -s 8192"
95        system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && cd ${worksrcpath} && sh make.sh ${host_lisp}"
96}
97
98post-build {
99        if {[variant_isset html]} {
100                system "cd ${worksrcpath}/doc; INSTALL_ROOT=${destroot}${prefix} sh ${worksrcpath}/doc/make-doc.sh"
101        }
102}
103
104default_variants        +html
105
106variant html description {Builds the SBCL and ASDF documentation as HTML} {}
107
108variant threads description {enable threaded runtime} {
109        patchfiles-append patch-base-target-features.diff
110}
111
112test.run        yes
113test.dir        ${worksrcpath}/tests
114test.cmd        sh
115test.target     run-tests.sh
116
117destroot        { system "cd ${worksrcpath}; INSTALL_ROOT=${destroot}/${prefix} sh ${worksrcpath}/install.sh"
118}
119
120livecheck.url       http://sourceforge.net/api/file/index/project-id/1373/rss?path=%2F${name}
121livecheck.regex     ${name}-(\\d+(\\.\\d+)+)-
Note: See TracBrowser for help on using the repository browser.