Ticket #54112: Portfile.2

File Portfile.2, 4.6 KB (added by gnw3, 7 years ago)

guile version 2.0.14 Portfile

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
3PortSystem 1.0
4
5name                guile20
6version             2.0.14
7#revision            0
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.
33conflicts           guile
34
35distname            guile-${version}
36dist_subdir         guile
37
38homepage            http://www.gnu.org/software/guile/guile.html
39master_sites        gnu
40
41checksums           rmd160  754aaf1bf3c6bed9afdde49c5154b87047408a1e \
42                    sha256  8aeb2f353881282fe01694cce76bb72f7ffdd296a12c7a1a39255c27b0dfe5f1
43
44depends_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
55depends_lib-append  port:pkgconfig
56
57configure.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
66if {${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
83platform 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
114livecheck.type  regex
115livecheck.url   "http://ftp.gnu.org/pub/gnu/guile/?C=N;O=D"
116livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"