1 | # $Id: Portfile 67253 2010-05-03 13:52:26Z easieste@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name sbcl |
---|
6 | version 1.0.38 |
---|
7 | revision 0 |
---|
8 | set subrevision "" |
---|
9 | categories lang |
---|
10 | maintainers gwright waqar easieste |
---|
11 | platforms darwin |
---|
12 | description The Steel Bank Common Lisp system |
---|
13 | long_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 | |
---|
21 | homepage http://www.sbcl.org |
---|
22 | master_sites sourceforge |
---|
23 | use_bzip2 yes |
---|
24 | |
---|
25 | patchfiles patch-use-mach-exception-handler.diff \ |
---|
26 | patch-posix-tests.diff |
---|
27 | |
---|
28 | distfiles ${name}-${version}-source${subrevision}${extract.suffix} |
---|
29 | |
---|
30 | distname ${name}-${version}-source${subrevision} |
---|
31 | worksrcdir ${name}-${version} |
---|
32 | |
---|
33 | checksums 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 | |
---|
42 | platform 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 | |
---|
52 | platform 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 | |
---|
60 | platform 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 | |
---|
68 | platform 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 | |
---|
76 | post-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 | |
---|
83 | use_configure no |
---|
84 | |
---|
85 | |
---|
86 | build { |
---|
87 | system "ulimit -s 8192" |
---|
88 | system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && cd ${worksrcpath} && sh make.sh ${host_lisp}" |
---|
89 | } |
---|
90 | |
---|
91 | post-build { |
---|
92 | if {[variant_isset html]} { |
---|
93 | system "cd ${worksrcpath}/doc; INSTALL_ROOT=${destroot}${prefix} sh ${worksrcpath}/doc/make-doc.sh" |
---|
94 | } |
---|
95 | } |
---|
96 | |
---|
97 | default_variants +html |
---|
98 | |
---|
99 | variant html description {Builds the SBCL and ASDF documentation as HTML} {} |
---|
100 | |
---|
101 | variant threads description {enable threaded runtime} { |
---|
102 | patchfiles-append patch-base-target-features.diff |
---|
103 | } |
---|
104 | |
---|
105 | test.run yes |
---|
106 | test.dir ${worksrcpath}/tests |
---|
107 | test.cmd sh |
---|
108 | test.target run-tests.sh |
---|
109 | |
---|
110 | destroot { system "cd ${worksrcpath}; INSTALL_ROOT=${destroot}/${prefix} sh ${worksrcpath}/install.sh" |
---|
111 | } |
---|
112 | |
---|
113 | livecheck.url http://sourceforge.net/api/file/index/project-id/1373/rss?path=%2F${name} |
---|
114 | livecheck.regex ${name}-(\\d+(\\.\\d+)+)- |
---|