Ticket #20904: Portfile

File Portfile, 4.4 KB (added by easye, 15 years ago)

sbcl-1.0.33 portfile that works under x86_52-darwin-10.2.0

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