1 | # $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name clisp |
---|
6 | version 2.48 |
---|
7 | categories lang |
---|
8 | maintainers waqar |
---|
9 | platforms darwin |
---|
10 | description The Clisp Common Lisp Implementation |
---|
11 | long_description \ |
---|
12 | CLISP is a Common Lisp implementation by Bruno Haible, \ |
---|
13 | formerly of Karlsruhe University, and Michael Stoll, \ |
---|
14 | formerly of Munich University, both in Germany. \ |
---|
15 | It mostly supports the Lisp described in the \ |
---|
16 | ANSI Common Lisp standard. \ |
---|
17 | CLISP includes an interpreter, a compiler, almost all \ |
---|
18 | of CLOS, a foreign language interface and a socket interface. \ |
---|
19 | An X11 interface is available through CLX and Garnet. \ |
---|
20 | Command line editing is provided by readline. |
---|
21 | |
---|
22 | homepage http://clisp.cons.org/ |
---|
23 | master_sites gnu:clisp/release/${version} \ |
---|
24 | sourceforge |
---|
25 | |
---|
26 | checksums md5 5e4c4f7cdcf7a1ef4196b9897c287158 \ |
---|
27 | sha1 dc213ed02194ec4c8b596118c5f92b25d1f540e0 \ |
---|
28 | rmd160 01c150ebd1e44e627f41de9cdc84b90267185a70 |
---|
29 | |
---|
30 | use_bzip2 yes |
---|
31 | |
---|
32 | universal_variant no |
---|
33 | |
---|
34 | depends_lib port:readline \ |
---|
35 | port:gettext \ |
---|
36 | port:libsigsegv |
---|
37 | |
---|
38 | build.dir ${worksrcpath}/src |
---|
39 | |
---|
40 | # Force 32-bit, inline-asm |
---|
41 | if {$build_arch == "x86_64"} { |
---|
42 | configure.build_arch i386 |
---|
43 | } elseif {$build_arch == "ppc64"} { |
---|
44 | configure.build_arch ppc |
---|
45 | } |
---|
46 | |
---|
47 | variant nolibsigsegv { |
---|
48 | depends_lib-delete port:libsigsegv |
---|
49 | configure.args-append --ignore-absence-of-libsigsegv |
---|
50 | } |
---|
51 | |
---|
52 | platform darwin { |
---|
53 | # placeholder for use with variant_isset |
---|
54 | } |
---|
55 | |
---|
56 | platform darwin 7 { |
---|
57 | depends_lib-delete port:libsigsegv |
---|
58 | configure.args-append --ignore-absence-of-libsigsegv |
---|
59 | } |
---|
60 | |
---|
61 | platform darwin 10 { |
---|
62 | depends_lib-delete port:libsigsegv |
---|
63 | configure.args-append --ignore-absence-of-libsigsegv |
---|
64 | } |
---|
65 | |
---|
66 | configure.cflags |
---|
67 | configure.args --prefix=${prefix} --with-libreadline-prefix=${prefix} \ |
---|
68 | --with-libsigsegv-prefix=${prefix} --with-libiconv-prefix=${prefix} |
---|
69 | |
---|
70 | configure { |
---|
71 | set cmdstring "CFLAGS='[join ${configure.cflags}]' \ |
---|
72 | CC='${configure.cc} -arch ${configure.build_arch}' \ |
---|
73 | ./configure [join ${configure.args}]" |
---|
74 | ui_debug "EXECUTING: $cmdstring" |
---|
75 | system "cd ${configure.dir} && $cmdstring" |
---|
76 | } |
---|
77 | |
---|
78 | build { |
---|
79 | set cmdstring "cd ${build.dir} && ulimit -s 16384 && \ |
---|
80 | unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && \ |
---|
81 | make" |
---|
82 | ui_debug "EXECUTING: $cmdstring" |
---|
83 | system $cmdstring |
---|
84 | set cmdstring "$cmdstring check" |
---|
85 | ui_debug "EXECUTING: $cmdstring" |
---|
86 | system $cmdstring |
---|
87 | } |
---|
88 | |
---|
89 | livecheck.type regex |
---|
90 | livecheck.url http://ftp.gnu.org/gnu/${name}/release/?C=M&O=D |
---|
91 | livecheck.regex >(\[0-9.\]+)/< |
---|