| 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 83167 2011-08-26 22:42:08Z dports@macports.org $ |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | PortGroup muniversal 1.0 |
|---|
| 6 | |
|---|
| 7 | name guile2 |
|---|
| 8 | version 2.0.5 |
|---|
| 9 | categories lang |
|---|
| 10 | maintainers Pavel gmail.com:pavel.kaygorodov |
|---|
| 11 | platforms darwin |
|---|
| 12 | license LGPL-2.1+ |
|---|
| 13 | |
|---|
| 14 | description GNU's Ubiquitous Intelligent Language for Extension (guile) |
|---|
| 15 | long_description \ |
|---|
| 16 | Guile is an interpreter for the Scheme programming \ |
|---|
| 17 | language, packaged for use in a wide variety of \ |
|---|
| 18 | environments. Guile implements Scheme as described in \ |
|---|
| 19 | the Revised^5 Report on the Algorithmic Language Scheme \ |
|---|
| 20 | (usually known as R5RS), providing clean and general \ |
|---|
| 21 | data and control structures. \ |
|---|
| 22 | \ |
|---|
| 23 | Guile goes beyond the rather austere language presented \ |
|---|
| 24 | in R5RS, extending it with a module system, full access \ |
|---|
| 25 | to POSIX system calls, networking support, multiple \ |
|---|
| 26 | threads, dynamic linking, a foreign function call \ |
|---|
| 27 | interface, powerful string processing, and many other \ |
|---|
| 28 | features needed for programming in the real world. |
|---|
| 29 | |
|---|
| 30 | #user_notes You may need to set the environment variable \ |
|---|
| 31 | # DYLD_LIBRARY_PATH to ${prefix}/lib (or wherever \ |
|---|
| 32 | # the guile libraries have been installed) if you want \ |
|---|
| 33 | # to load guile modules from an application linked with \ |
|---|
| 34 | # libguile. This should only apply to developers using \ |
|---|
| 35 | # guile as an extension language. |
|---|
| 36 | |
|---|
| 37 | distname guile-${version} |
|---|
| 38 | homepage http://www.gnu.org/software/guile/guile.html |
|---|
| 39 | master_sites ftp://ftp.gnu.org/pub/gnu/guile/ |
|---|
| 40 | |
|---|
| 41 | checksums md5 bcf70d54b44c99cb9acd3f63c5486b4b \ |
|---|
| 42 | sha1 0cf94962ab637975bf2ad00afa15638dcc67408f \ |
|---|
| 43 | rmd160 51deb23e2ab26e89e9b97f3937ada1609b0329fd |
|---|
| 44 | |
|---|
| 45 | #patchfiles patch-srfi-60.c.diff \ |
|---|
| 46 | # patch-libguile-fports.c.diff |
|---|
| 47 | |
|---|
| 48 | depends_lib port:readline \ |
|---|
| 49 | port:gettext \ |
|---|
| 50 | port:libiconv \ |
|---|
| 51 | port:libtool \ |
|---|
| 52 | port:gmp \ |
|---|
| 53 | port:libunistring \ |
|---|
| 54 | port:libffi \ |
|---|
| 55 | port:boehmgc-devel |
|---|
| 56 | |
|---|
| 57 | configure.compiler macports-gcc-4.4 |
|---|
| 58 | |
|---|
| 59 | configure.args CPPFLAGS="-I${prefix}/include" \ |
|---|
| 60 | LDFLAGS="-L${prefix}/lib" \ |
|---|
| 61 | --infodir="${prefix}/share/info" \ |
|---|
| 62 | --mandir="${prefix}/share/man" \ |
|---|
| 63 | --enable-regex \ |
|---|
| 64 | --disable-error-on-warning |
|---|
| 65 | |
|---|
| 66 | post-patch { |
|---|
| 67 | # This changes configure to do what the author actually intended based on their comments |
|---|
| 68 | reinplace "s|-Werror -Wmissing-braces|-Werror=missing-braces|" ${worksrcpath}/configure |
|---|
| 69 | } |
|---|
| 70 | |
|---|
| 71 | if {${os.platform} == "darwin" && ($build_arch == "x86_64" || $build_arch == "ppc64")} { |
|---|
| 72 | configure.args-append --build=${build_arch}-apple-darwin${os.version} |
|---|
| 73 | } |
|---|
| 74 | |
|---|
| 75 | #post-destroot { |
|---|
| 76 | # file delete ${destroot}${prefix}/share/${name}/1.6/ice-9/and-let\*.scm |
|---|
| 77 | # } |
|---|
| 78 | |
|---|
| 79 | livecheck.type regex |
|---|
| 80 | livecheck.url "http://ftp.gnu.org/pub/gnu/guile/?C=N;O=D" |
|---|
| 81 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
|---|