1 | # $Id: Portfile 60689 2009-11-19 23:19:54Z snc@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name sbcl |
---|
6 | version 1.0.33 |
---|
7 | set subrevision "" |
---|
8 | categories lang |
---|
9 | maintainers gwright waqar |
---|
10 | platforms darwin |
---|
11 | description The Steel Bank Common Lisp system |
---|
12 | long_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 | |
---|
20 | homepage http://www.sbcl.org |
---|
21 | master_sites sourceforge |
---|
22 | use_bzip2 yes |
---|
23 | |
---|
24 | platform 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 | |
---|
34 | platform 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 | |
---|
44 | platform 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 | |
---|
54 | platform 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 | |
---|
64 | patchfiles patch-use-mach-exception-handler.diff |
---|
65 | |
---|
66 | |
---|
67 | distfiles ${name}-${version}-source${subrevision}${extract.suffix} |
---|
68 | |
---|
69 | distname ${name}-${version}-source${subrevision} |
---|
70 | worksrcdir ${name}-${version} |
---|
71 | |
---|
72 | checksums 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 | |
---|
82 | post-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 | |
---|
89 | use_configure no |
---|
90 | |
---|
91 | |
---|
92 | build { |
---|
93 | system "ulimit -s 8192" |
---|
94 | system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && cd ${worksrcpath} && sh make.sh ${host_lisp}" |
---|
95 | } |
---|
96 | |
---|
97 | post-build { |
---|
98 | if {[variant_isset html]} { |
---|
99 | system "cd ${worksrcpath}/doc; INSTALL_ROOT=${destroot}${prefix} sh ${worksrcpath}/doc/make-doc.sh" |
---|
100 | } |
---|
101 | } |
---|
102 | |
---|
103 | default_variants +html |
---|
104 | |
---|
105 | variant html description {Builds the SBCL and ASDF documentation as HTML} {} |
---|
106 | |
---|
107 | variant threads description {enable threaded runtime} { |
---|
108 | patchfiles-append patch-base-target-features.diff |
---|
109 | } |
---|
110 | |
---|
111 | test.run yes |
---|
112 | test.dir ${worksrcpath}/tests |
---|
113 | test.cmd sh |
---|
114 | test.target run-tests.sh |
---|
115 | |
---|
116 | destroot { system "cd ${worksrcpath}; INSTALL_ROOT=${destroot}/${prefix} sh ${worksrcpath}/install.sh" |
---|
117 | } |
---|
118 | |
---|
119 | livecheck.url http://sourceforge.net/api/file/index/project-id/1373/rss?path=%2F${name} |
---|
120 | livecheck.regex ${name}-(\\d+(\\.\\d+)+)- |
---|