source: trunk/dports/lang/guile/Portfile

Last change on this file was 153866, checked in by ryandesign@…, 13 months ago

guile: Update to 2.0.13

Resolves #52607

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.6 KB
Line 
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# $Id: Portfile 153866 2016-10-14 16:31:21Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                guile
7version             2.0.13
8categories          lang
9maintainers         nomaintainer
10platforms           darwin
11license             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
16universal_variant   no
17
18description         GNU's Ubiquitous Intelligent Language for Extension (guile)
19long_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
34distname            guile-${version}
35homepage            http://www.gnu.org/software/guile/guile.html
36master_sites        gnu
37
38checksums           rmd160  ae8d90f55e4c82d60e4ba7e5c161a5a1e4a4e7c5 \
39                    sha256  ee8073c4582bb4f06412452fdf5dd185aae607441f1313c824f44bdd668b0bde
40
41depends_lib         port:readline \
42                    port:gettext \
43                    port:libiconv \
44                    port:libtool \
45                    port:gmp \
46                    port:libunistring \
47                    port:boehmgc \
48                    port:libffi \
49                    port:ncurses
50
51# guile-config is a wrapper around pkg-config
52depends_lib-append  port:pkgconfig
53
54configure.args      CPPFLAGS="-I${prefix}/include" \
55                    LDFLAGS="-L${prefix}/lib" \
56                    --infodir="${prefix}/share/info" \
57                    --mandir="${prefix}/share/man" \
58                    --enable-regex \
59                    --disable-error-on-warning \
60                    --disable-silent-rules
61
62patchfiles          sierra.patch
63
64# Unable to cross compile, so we need to be able to run the built code
65if {${os.arch} eq "i386" && ${os.major} >= 11} {
66    supported_archs i386 x86_64
67    set universal_archs_supported {i386 x86_64}
68} elseif {${os.arch} eq "i386" && ${build_arch} eq "x86_64"} {
69    supported_archs i386 x86_64 ppc
70    set universal_archs_supported {i386 x86_64 ppc}
71} elseif {${os.arch} eq "i386"} {
72    supported_archs i386 ppc
73    set universal_archs_supported {i386 ppc}
74} elseif {${build_arch} eq "ppc64"} {
75    supported_archs ppc ppc64
76    set universal_archs_supported {ppc ppc64}
77} else {
78    supported_archs ${build_arch}
79    set universal_archs_supported ${build_arch}
80}
81
82platform darwin {
83#    if {[variant_isset universal]} {
84#        set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
85#        set merger_host(i386) i686-apple-${os.platform}${os.major}
86#        set merger_host(ppc64) powerpc64-apple-${os.platform}${os.major}
87#        set merger_host(ppc) powerpc-apple-${os.platform}${os.major}
88#        set merger_configure_args(x86_64) "--build=x86_64-apple-${os.platform}${os.major}"
89#        set merger_configure_args(i386) "--build=i686-apple-${os.platform}${os.major}"
90#        set merger_configure_args(ppc) "--build=powerpc-apple-${os.platform}${os.major}"
91#        set merger_configure_args(ppc64) "--build=powerpc64-apple-${os.platform}${os.major}"
92#    } else
93    if {${build_arch} eq "i386"} {
94        configure.args-append \
95            --host=i686-apple-${os.platform}${os.major} \
96            --build=i686-apple-${os.platform}${os.major}
97    } elseif {${build_arch} eq "x86_64"} {
98        configure.args-append \
99            --host=x86_64-apple-${os.platform}${os.major} \
100            --build=x86_64-apple-${os.platform}${os.major}
101    } elseif {${build_arch} eq "ppc"} {
102        configure.args-append \
103            --host=powerpc-apple-${os.platform}${os.major} \
104            --build=powerpc-apple-${os.platform}${os.major}
105    } elseif {${build_arch} eq "ppc64"} {
106        configure.args-append \
107            --host=powerpc64-apple-${os.platform}${os.major} \
108            --build=powerpc64-apple-${os.platform}${os.major}
109    }
110}
111
112
113livecheck.type  regex
114livecheck.url   "http://ftp.gnu.org/pub/gnu/guile/?C=N;O=D"
115livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.