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

Last change on this file since 21200 was 21200, checked in by gwright@…, 13 years ago

Version bump to 1.0.1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 21200 2007-01-12 12:42:44Z gwright@macports.org $
2
3PortSystem 1.0
4name            sbcl
5version         1.0.1
6set bootversion 0.9.16
7categories      lang
8maintainers     gwright@macports.org waqar@macports.org
9platforms       darwin
10description     The Steel Bank Common Lisp system
11long_description        \
12                Steel Bank Common Lisp (SBCL) is a Open Source          \
13                development system for ANSI Common Lisp. It provides an \
14                interactive environment including an integrated native  \
15                compiler, interpreter, and debugger. (And it, and its   \
16                generated code, can also play nicely with Unix when     \
17                running noninteractively.)
18
19homepage        http://www.sbcl.org
20master_sites    sourceforge
21use_bzip2       yes
22
23platform powerpc {
24                   set bootversion 0.9.15
25                   distfiles-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix}
26                   checksums-append ${name}-${bootversion}-powerpc-darwin-binary${extract.suffix} \
27                        md5 2f0ee82eff649e3862c524fd0705cfc0
28
29                   global host_lisp
30                   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\" "
31}
32
33platform i386     {
34                   distfiles-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix}
35                   checksums-append ${name}-${bootversion}-x86-darwin-binary${extract.suffix} \
36                        md5 b7fb206ac82d11ae7aeee8e0cf462c93
37
38                   global host_lisp
39                   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\" "
40}
41
42               
43distfiles       ${name}-${version}-source${extract.suffix}
44
45distname        ${name}-${version}-source
46worksrcdir      ${name}-${version}
47
48checksums       ${name}-${version}-source${extract.suffix}              \
49                        md5 fe02f498620bce61a8688d4557a405b0
50
51post-patch      { reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
52                            ${worksrcpath}/src/runtime/runtime.c
53                  reinplace "s|/usr/local/lib/${name}|${prefix}/lib/${name}|g" \
54                            ${worksrcpath}/doc/sbcl.1
55                }
56
57use_configure   no
58
59
60build           { cd ${worksrcpath}
61                  system "ulimit -s 8192"
62
63                  system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh ${host_lisp}"
64                }
65
66default_variants        +test
67
68variant test    { test.run      yes
69                  test.dir      ${worksrcpath}/tests
70                  test.cmd      sh
71                  test.target   run-tests.sh
72                }
73
74destroot        { cd ${worksrcpath}
75                  system "INSTALL_ROOT=${destroot}/${prefix} sh install.sh"
76                }
77
Note: See TracBrowser for help on using the repository browser.