Ticket #31513: R-Portfile.diff

File R-Portfile.diff, 2.8 KB (added by kjell.konis@…, 13 years ago)

R is now at version 2.14.0

  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name             R
    6 version          2.13.1
    7 revision        1
     6conflicts        R-framework
     7version          2.14.0
    88categories       math science
    99maintainers      epfl.ch:kjell.konis
     10license          GPL-2 GPL-3
    1011platforms        darwin
    1112
    1213description      R is GNU S - an interpreted language for statistical computing
     
    2526                 http://cran.hu.r-project.org/src/base/R-2/ \
    2627                 http://cran.r-project.org/src/base/R-2/
    2728
    28 checksums        sha1    8b9d48c7a654186064f369652ea34a085eff239b \
    29                  rmd160  3d83b907f6c81980a7e65bdf942936d6ce02a850
     29checksums        rmd160  f2f2805c8660d58050be1d11abf376843dbb40ea \
     30                 sha256  036204f56f8128e633a5d2fe56ebe0ba5a5e8501abe2056736d12a99bf69b910
     31
     32depends_build    port:pkgconfig
    3033
    3134depends_lib      port:gettext \
    3235                 port:icu \
    3336                 path:lib/pkgconfig/glib-2.0.pc:glib2 \
    3437                 port:jpeg \
    3538                 port:libiconv \
     39                 path:lib/pkgconfig/cairo.pc:cairo \
    3640                 path:lib/pkgconfig/pango.pc:pango \
    3741                 port:readline \
    3842                 port:tcl \
     
    6872    depends_lib-append port:gcc45
    6973}
    7074
    71 platform darwin 10 {
    72     variant aqua description {Enable quartz graphics device} {
     75variant aqua description {Enable quartz graphics device} {
     76    if {${os.platform} == "darwin" && ${os.major} == 10} {
    7377        # This variant uses a hack in "CFString.h" that does not define the problematic CF_FORMAT_FUNCTION
    7478        # and CF_FORMAT_ARGUMENT macros if __INTEL_COMPILER is defined. Currently, that is the ONLY place
    7579        # in the 10.6 SDK where the __INTEL_COMPILER macro is checked, but that may change in the future.
     
    7882        configure.args-append   --with-aqua
    7983        patchfiles-append       patch-QuartzDevice_h.diff
    8084        configure.objc          /usr/bin/gcc-4.2
     85    } else {
     86        ui_error "The +aqua variant is for Snow Leopard (Mac OS X 10.6) only - for Aqua support on Lion (Mac OS X 10.7) use the R-framework port"
     87        return -code error
    8188    }
    8289}
    8390
     
    8794    default_variants-append +gcc44
    8895}
    8996
    90 post-extract {
     97post-patch {
    9198  reinplace "s|R_HOME|\"${prefix}/lib/R\"|" "${worksrcpath}/src/unix/Rscript.c"
    9299}
    93100
     
    97104                 --enable-BLAS-shlib \
    98105                 --enable-R-shlib \
    99106                 --disable-nls \
    100                  --without-libintl-prefix \
    101107                 --disable-R-framework \
    102108                 --without-aqua \
    103109                 --with-tcl-config=${prefix}/lib/tclConfig.sh \