Ticket #47479: R-Portfile.diff

File R-Portfile.diff, 4.6 KB (added by kjellpk (Kjell Konis), 9 years ago)
  • Portfile

    old new  
    77name                        R
    88
    99set major 3
    10 set minor 1
    11 set point 2
     10set minor 2
     11set point 0
    1212
    1313#Remember to remove revision line when bumping version
    1414version                     ${major}.${minor}.${point}
     
    3232master_sites                http://cran.rstudio.com/src/base/R-3/ \
    3333                            http://cran.r-project.org/src/base/R-3/
    3434
    35 checksums                   rmd160  b2aaa42daac1ae5d114995de514d211d78a4e0a6 \
    36                             sha256  bcd150afcae0e02f6efb5f35a6ab72432be82e849ec52ce0bb89d8c342a8fa7a
     35checksums                   rmd160  a67e255e77baf7db164ee8a869c03137a33a6571 \
     36                            sha256  f5ae953f18ba6f3d55b46556bbbf73441350f9fd22625402b723a2b81ff64f35
    3737
    3838depends_build               port:pkgconfig
    3939
    4040depends_lib                 port:readline \
    4141                            port:icu \
    42                             port:libiconv
     42                            port:libiconv \
     43                            port:zlib
    4344
    4445universal_variant           no
    4546
     
    5152
    5253configure.pre_args          --prefix=${frameworks_dir}
    5354
    54 configure.args              --enable-R-framework \
     55configure.args              --enable-memory-profiling \
    5556                            --enable-R-shlib \
    5657                            --enable-BLAS-shlib \
    57                             --disable-openmp \
    58                             --with-readline \
    59                             --with-aqua \
    6058                            --without-tcltk \
    6159                            --without-cairo \
    62                             --with-libpng \
    63                             --without-jpeglib \
     60                            --with-system-zlib \
     61                            --without-internal-tzcode \
    6462                            --without-recommended-packages \
    65                             --with-ICU \
    6663                            --without-x \
    6764                            --with-included-gettext \
    68                             --without-internal-tzcode
     65                            --without-system-xz #bug introduced in R-3.2.0, doesn't link to system copy, put port:xz back too
     66
     67if {${os.major} < 13} {
     68    configure.args-append --disable-openmp
     69}
    6970
    7071platform darwin 13 {
    7172    configure.cflags-append -flax-vector-conversions
    7273}
    7374
    74 variant accelerate conflicts builtin_lapack description {build using the BLAS and Lapack in Apple's Accelerate framework} {
    75     configure.args-append   --with-blas="-framework Accelerate" \
    76                             --with-lapack="-framework Accelerate"
     75variant accelerate conflicts atlas builtin_lapack description {build using the BLAS and Lapack in Apple's Accelerate framework} {
     76    configure.args-append   --with-blas="-framework Accelerate" --with-lapack
    7777}
    7878
    7979variant atlas conflicts accelerate builtin_lapack description {build using the BLAS in the atlas port} {
     
    8282    #See A.3.2 in R Installation and Administration for why atlas LAPACK not used
    8383}
    8484
    85 variant builtin_lapack conflicts accelerate description {build using reference BLAS and Lapack} {
     85variant builtin_lapack conflicts accelerate atlas description {build using reference BLAS and Lapack} {
    8686    configure.args-append   --without-blas --without-lapack
    8787}
    8888
     
    9292                            path:lib/pkgconfig/glib-2.0.pc:glib2 \
    9393                            port:freetype \
    9494                            port:fontconfig \
    95                             port:gettext
     95                            port:gettext \
     96                            port:libpng \
     97                            port:tiff \
     98                            port:jpeg
    9699    configure.args-delete   --without-cairo
    97100    configure.args-append   --with-cairo
    98101}
     
    173176                            port:xorg-libXt \
    174177                            port:tiff \
    175178                            port:jpeg \
    176                             port:libpng \
    177                             port:zlib
     179                            port:libpng
    178180    configure.args-delete   --without-x \
    179181                            --without-jpeglib
    180182    configure.args-append   --with-x \
     
    191193}
    192194
    193195if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} {
    194     default_variants-append +accelerate
     196    default_variants-append +builtin_lapack
    195197}
    196198
    197199test.run                    yes
     
    248250livecheck.type      regex
    249251livecheck.url       [lindex ${master_sites} 0]
    250252livecheck.regex     >${name}-(\[0-9.\]+)${extract.suffix}<
     253
     254
     255