1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name guile20 |
---|
6 | version 2.0.14 |
---|
7 | #revision 0 |
---|
8 | categories lang |
---|
9 | maintainers nomaintainer |
---|
10 | platforms darwin |
---|
11 | license LGPL-2.1+ |
---|
12 | |
---|
13 | # Failed to destroot guile: |
---|
14 | # /opt/local/lib/guile/2.0/ccache/ice-9/and-let-star.go differs in ... and |
---|
15 | # cannot be merged |
---|
16 | universal_variant no |
---|
17 | |
---|
18 | description GNU's Ubiquitous Intelligent Language for Extension (guile) |
---|
19 | long_description \ |
---|
20 | Guile is an interpreter for the Scheme programming \ |
---|
21 | language, packaged for use in a wide variety of \ |
---|
22 | environments. Guile implements Scheme as described in \ |
---|
23 | the Revised^5 Report on the Algorithmic Language Scheme \ |
---|
24 | (usually known as R5RS), providing clean and general \ |
---|
25 | data and control structures. \ |
---|
26 | \ |
---|
27 | Guile goes beyond the rather austere language presented \ |
---|
28 | in R5RS, extending it with a module system, full access \ |
---|
29 | to POSIX system calls, networking support, multiple \ |
---|
30 | threads, dynamic linking, a foreign function call \ |
---|
31 | interface, powerful string processing, and many other \ |
---|
32 | features needed for programming in the real world. |
---|
33 | conflicts guile |
---|
34 | |
---|
35 | distname guile-${version} |
---|
36 | dist_subdir guile |
---|
37 | |
---|
38 | homepage http://www.gnu.org/software/guile/guile.html |
---|
39 | master_sites gnu |
---|
40 | |
---|
41 | checksums rmd160 754aaf1bf3c6bed9afdde49c5154b87047408a1e \ |
---|
42 | sha256 8aeb2f353881282fe01694cce76bb72f7ffdd296a12c7a1a39255c27b0dfe5f1 |
---|
43 | |
---|
44 | depends_lib port:readline \ |
---|
45 | port:gettext \ |
---|
46 | port:libiconv \ |
---|
47 | port:libtool \ |
---|
48 | port:gmp \ |
---|
49 | port:libunistring \ |
---|
50 | port:boehmgc \ |
---|
51 | port:libffi \ |
---|
52 | port:ncurses |
---|
53 | |
---|
54 | # guile-config is a wrapper around pkg-config |
---|
55 | depends_lib-append port:pkgconfig |
---|
56 | |
---|
57 | configure.args CPPFLAGS="-I${prefix}/include" \ |
---|
58 | LDFLAGS="-L${prefix}/lib" \ |
---|
59 | --infodir="${prefix}/share/info" \ |
---|
60 | --mandir="${prefix}/share/man" \ |
---|
61 | --enable-regex \ |
---|
62 | --disable-error-on-warning \ |
---|
63 | --disable-silent-rules |
---|
64 | |
---|
65 | # Unable to cross compile, so we need to be able to run the built code |
---|
66 | if {${os.arch} eq "i386" && ${os.major} >= 11} { |
---|
67 | supported_archs i386 x86_64 |
---|
68 | set universal_archs_supported {i386 x86_64} |
---|
69 | } elseif {${os.arch} eq "i386" && ${build_arch} eq "x86_64"} { |
---|
70 | supported_archs i386 x86_64 ppc |
---|
71 | set universal_archs_supported {i386 x86_64 ppc} |
---|
72 | } elseif {${os.arch} eq "i386"} { |
---|
73 | supported_archs i386 ppc |
---|
74 | set universal_archs_supported {i386 ppc} |
---|
75 | } elseif {${build_arch} eq "ppc64"} { |
---|
76 | supported_archs ppc ppc64 |
---|
77 | set universal_archs_supported {ppc ppc64} |
---|
78 | } else { |
---|
79 | supported_archs ${build_arch} |
---|
80 | set universal_archs_supported ${build_arch} |
---|
81 | } |
---|
82 | |
---|
83 | platform darwin { |
---|
84 | # if {[variant_isset universal]} { |
---|
85 | # set merger_host(x86_64) x86_64-apple-${os.platform}${os.major} |
---|
86 | # set merger_host(i386) i686-apple-${os.platform}${os.major} |
---|
87 | # set merger_host(ppc64) powerpc64-apple-${os.platform}${os.major} |
---|
88 | # set merger_host(ppc) powerpc-apple-${os.platform}${os.major} |
---|
89 | # set merger_configure_args(x86_64) "--build=x86_64-apple-${os.platform}${os.major}" |
---|
90 | # set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major}" |
---|
91 | # set merger_configure_args(ppc) "--build=powerpc-apple-${os.platform}${os.major}" |
---|
92 | # set merger_configure_args(ppc64) "--build=powerpc64-apple-${os.platform}${os.major}" |
---|
93 | # } else |
---|
94 | if {${build_arch} eq "i386"} { |
---|
95 | configure.args-append \ |
---|
96 | --host=i686-apple-${os.platform}${os.major} \ |
---|
97 | --build=i686-apple-${os.platform}${os.major} |
---|
98 | } elseif {${build_arch} eq "x86_64"} { |
---|
99 | configure.args-append \ |
---|
100 | --host=x86_64-apple-${os.platform}${os.major} \ |
---|
101 | --build=x86_64-apple-${os.platform}${os.major} |
---|
102 | } elseif {${build_arch} eq "ppc"} { |
---|
103 | configure.args-append \ |
---|
104 | --host=powerpc-apple-${os.platform}${os.major} \ |
---|
105 | --build=powerpc-apple-${os.platform}${os.major} |
---|
106 | } elseif {${build_arch} eq "ppc64"} { |
---|
107 | configure.args-append \ |
---|
108 | --host=powerpc64-apple-${os.platform}${os.major} \ |
---|
109 | --build=powerpc64-apple-${os.platform}${os.major} |
---|
110 | } |
---|
111 | } |
---|
112 | |
---|
113 | |
---|
114 | livecheck.type regex |
---|
115 | livecheck.url "http://ftp.gnu.org/pub/gnu/guile/?C=N;O=D" |
---|
116 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|