1 | --- Portfile.orig 2009-09-19 16:49:57.000000000 +0900 |
---|
2 | +++ Portfile 2009-09-19 22:52:05.000000000 +0900 |
---|
3 | @@ -1,10 +1,10 @@ |
---|
4 | -# $Id: Portfile 52801 2009-06-23 12:33:35Z gwright@macports.org $ |
---|
5 | +# $Id: Portfile 52801 2009-09-19 12:33:35Z gwright@macports.org $ |
---|
6 | |
---|
7 | PortSystem 1.0 |
---|
8 | |
---|
9 | name sbcl |
---|
10 | version 1.0.29 |
---|
11 | -revision 1 |
---|
12 | +revision 2 |
---|
13 | set subrevision "-r2" |
---|
14 | categories lang |
---|
15 | maintainers gwright waqar |
---|
16 | @@ -52,23 +52,61 @@ platform darwin 9 i386 { |
---|
17 | 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\" " |
---|
18 | } |
---|
19 | |
---|
20 | +platform darwin 10 { |
---|
21 | + set bootversion 1.0.29 |
---|
22 | + set subbootversion "-r2" |
---|
23 | + global host_lisp |
---|
24 | + |
---|
25 | + if {${build_arch} == "x86_64"} { |
---|
26 | + patchfiles-append patch-make-config.sh |
---|
27 | + distfiles-append sbcl-${bootversion}-x86_64-darwin-binary${subbootversion}${extract.suffix} |
---|
28 | + checksums-append sbcl-${bootversion}-x86_64-darwin-binary${subbootversion}${extract.suffix} \ |
---|
29 | + md5 47c99c60ec44e57070807c0890ba1c90 |
---|
30 | + distfiles-delete sbcl-${version}-source${subrevision}${extract.suffix} |
---|
31 | + checksums-delete ${distname}${extract.suffix} \ |
---|
32 | + md5 0dd65614533972500bbcd341de17182d \ |
---|
33 | + sha1 20105ec4edb370d85e8a5e4852b16ddb151d43fd \ |
---|
34 | + rmd160 54db825840b4e2cd00a9d86fd435df1eacaae61b |
---|
35 | + set host_lisp "\"${workpath}/sbcl-${bootversion}-x86_64-darwin/src/runtime/sbcl --core ${workpath}/sbcl-${bootversion}-x86_64-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null\" " |
---|
36 | + } else { |
---|
37 | + distfiles-append sbcl-${bootversion}-x86-darwin-binary${subbootversion}${extract.suffix} |
---|
38 | + checksums-append sbcl-${bootversion}-x86-darwin-binary${subbootversion}${extract.suffix} \ |
---|
39 | + md5 6e6b027a5fd05ef0c8faee30d89ffe54 |
---|
40 | + set host_lisp "\"${workpath}/sbcl-${bootversion}-x86-darwin/src/runtime/sbcl --core ${workpath}/sbcl-${bootversion}-x86-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null\" " |
---|
41 | + } |
---|
42 | +} |
---|
43 | + |
---|
44 | patchfiles patch-use-mach-exception-handler.diff |
---|
45 | |
---|
46 | |
---|
47 | -distfiles ${name}-${version}-source${subrevision}${extract.suffix} |
---|
48 | +distfiles sbcl-${version}-source${subrevision}${extract.suffix} |
---|
49 | |
---|
50 | -distname ${name}-${version}-source${subrevision} |
---|
51 | -worksrcdir ${name}-${version} |
---|
52 | +distname sbcl-${version}-source${subrevision} |
---|
53 | +worksrcdir sbcl-${version} |
---|
54 | |
---|
55 | checksums ${distname}${extract.suffix} \ |
---|
56 | md5 0dd65614533972500bbcd341de17182d \ |
---|
57 | sha1 20105ec4edb370d85e8a5e4852b16ddb151d43fd \ |
---|
58 | rmd160 54db825840b4e2cd00a9d86fd435df1eacaae61b |
---|
59 | |
---|
60 | +post-fetch { |
---|
61 | + # For 64-bit SL, use a cvs version. |
---|
62 | + if {${build_arch} == "x86_64"} { |
---|
63 | + set cvsroot ":pserver:anonimous@sbcl.cvs.sourceforge.net:/cvsroot/sbcl" |
---|
64 | + set version "1.0.31.17cvs" |
---|
65 | + set revision "0" |
---|
66 | + set worksrcdir "sbcl-${version}" |
---|
67 | + system "echo ${distfiles}" |
---|
68 | + system "cd ${workpath} && /usr/bin/env ${cvs.env} cvs -d${cvsroot} login" |
---|
69 | + system "cd ${workpath} && /usr/bin/env ${cvs.env} cvs -z9 -d${cvsroot} co -P sbcl" |
---|
70 | + system "cd ${workpath} && mv sbcl ${worksrcdir}" |
---|
71 | + } |
---|
72 | +} |
---|
73 | + |
---|
74 | post-patch { |
---|
75 | - reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \ |
---|
76 | + reinplace "s|/usr/local/lib/sbcl|${prefix}/lib/sbcl|g" \ |
---|
77 | ${worksrcpath}/src/runtime/runtime.c |
---|
78 | - reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \ |
---|
79 | + reinplace "s|/usr/local/lib/sbcl|${prefix}/lib/sbcl|g" \ |
---|
80 | ${worksrcpath}/doc/sbcl.1 |
---|
81 | } |
---|
82 | |
---|