Changeset 105543


Ignore:
Timestamp:
Apr 24, 2013, 4:06:17 PM (7 years ago)
Author:
larryv@…
Message:

R: Update to 3.0.0 and obsolete R-framework (maintainer, #38735).

Technically, the R-framework port is becoming the new R port (maintaining its history, I hope).

Location:
trunk/dports/math
Files:
2 added
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/R/Portfile

    r104220 r105543  
    33PortSystem 1.0
    44
    5 set major 2
    6 set minor 15
    7 set point 3
    8 
    9 name                        R-framework
    10 conflicts                   R
     5set major 3
     6set minor 0
     7set point 0
     8
     9name                        R
    1110version                     ${major}.${minor}.${point}
    1211categories                  math science
     
    2625homepage                    http://www.r-project.org/
    2726
    28 master_sites                http://cran.us.r-project.org/src/base/R-2/ \
    29                             http://cran.ms.unimelb.edu.au/src/base/R-2/ \
    30                             http://cran.at.r-project.org/src/base/R-2/ \
    31                             http://cran.hu.r-project.org/src/base/R-2/ \
    32                             http://cran.r-project.org/src/base/R-2/
    33 
    34 distname                    R-${version}
    35 dist_subdir                 R
    36 
    37 checksums                   rmd160  d588100f075e3a370a2cd6400e3c61dcc5b7a09e \
    38                             sha256  c583a38f8dad3bc012c08116f4ba1eb2182cadfad4b0f8d7bd3cdba24bc255d6
     27master_sites                http://cran.us.r-project.org/src/base/R-3/ \
     28                            http://cran.ms.unimelb.edu.au/src/base/R-3/ \
     29                            http://cran.at.r-project.org/src/base/R-3/ \
     30                            http://cran.hu.r-project.org/src/base/R-3/ \
     31                            http://cran.r-project.org/src/base/R-3/
     32
     33checksums                   rmd160  a2ad8818298cf29db4fe69df64d895769170694d \
     34                            sha256  dd65c24f1497610f3ff16008da99b4f52286d6424fbd61f08037c4f10f57ff16
    3935
    4036depends_build               port:pkgconfig
     
    5147    reinplace "s|R_HOME|\"${resources}\"|" "${worksrcpath}/src/unix/Rscript.c"
    5248}
    53 
    54 configure.env-append        r_arch=${build_arch}
    5549
    5650configure.pre_args          --prefix=${frameworks_dir}
     
    8478}
    8579
    86 variant accelerate conflicts atlas builtin_lapack description {build using the BLAS and Lapack in Apple's Accelerate framework} {
     80variant accelerate conflicts builtin_lapack description {build using the BLAS and Lapack in Apple's Accelerate framework} {
    8781    configure.args-append   --with-blas="-framework vecLib" \
    8882                            --with-lapack="-framework vecLib"
    8983}
    9084
    91 variant atlas conflicts accelerate builtin_lapack description {build using the BLAS and Lapack provided by the atlas port} {
    92     #more in post-destroot phase
    93     configure.args-append   --without-blas --without-lapack
    94 }
    95 
    96 variant builtin_lapack conflicts accelerate atlas description {build using reference BLAS and Lapack} {
     85variant builtin_lapack conflicts accelerate description {build using reference BLAS and Lapack} {
    9786    configure.args-append   --without-blas --without-lapack
    9887}
     
    10695    configure.compiler      macports-gcc-4.5
    10796    configure.objc          /usr/bin/gcc
    108     configure.env-append    "OBJCXX=${configure.objc}"
     97    configure.env-append    "OBJCXX=/usr/bin/g++"
    10998}
    11099
     
    113102    configure.compiler      macports-gcc-4.6
    114103    configure.objc          /usr/bin/gcc
    115     configure.env-append    "OBJCXX=${configure.objc}"
     104    configure.env-append    "OBJCXX=/usr/bin/g++"
    116105}
    117106
     
    120109    configure.compiler      macports-gcc-4.7
    121110    configure.objc          /usr/bin/gcc
    122     configure.env-append    "OBJCXX=${configure.objc}"
     111    configure.env-append    "OBJCXX=/usr/bin/g++"
    123112}
    124113
     
    158147default_variants +cairo +recommended +x11
    159148
    160 if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} {
     149if {![variant_isset accelerate] && ![variant_isset builtin_lapack]} {
    161150    default_variants-append +accelerate
    162151}
     
    179168    }
    180169
    181     reinplace "s|R_ARCH=/`arch`|R_ARCH=/${build_arch}|" "${destroot}${resources}/bin/R"
    182     reinplace "s|-F${destroot}|-F|" "${destroot}${resources}/etc/${build_arch}/Makeconf"
    183     reinplace "s|OBJCXX = |OBJCXX = /usr/bin/g++|" "${destroot}${resources}/etc/${build_arch}/Makeconf"
    184     reinplace "s|OBJC_LIBS = none |OBJC_LIBS = -lobjc |" "${destroot}${resources}/etc/${build_arch}/Makeconf"
    185 
    186     file delete ${destroot}${resources}/lib/libR.dylib
    187     file delete ${destroot}${resources}/lib/libRblas.dylib
    188     file delete ${destroot}${resources}/lib/libRlapack.dylib
     170    reinplace "s|-F${destroot}|-F|" "${destroot}${resources}/etc/Makeconf"
    189171
    190172    foreach dylib [ exec find ${destroot}${frameworks_dir}/R.framework -name "\*.dylib" ] {
     
    192174        regsub ${destroot} ${destroot_dylib_path} "" dylib_path
    193175        system "install_name_tool -id ${dylib_path} ${destroot_dylib_path}"
    194         system "install_name_tool -change ${destroot}${resources}/lib/libR.dylib ${resources}/lib/${build_arch}/libR.dylib \
     176        system "install_name_tool -change ${destroot}${resources}/lib/libR.dylib ${resources}/lib/libR.dylib \
    195177            ${destroot_dylib_path}"
    196         system "install_name_tool -change ${destroot}${resources}/lib/libRblas.dylib ${resources}/lib/${build_arch}/libRblas.dylib \
     178        system "install_name_tool -change ${destroot}${resources}/lib/libRblas.dylib ${resources}/lib/libRblas.dylib \
    197179            ${destroot_dylib_path}"
    198         system "install_name_tool -change ${destroot}${resources}/lib/libRlapack.dylib ${resources}/lib/${build_arch}/libRlapack.dylib \
     180        system "install_name_tool -change ${destroot}${resources}/lib/libRlapack.dylib ${resources}/lib/libRlapack.dylib \
    199181            ${destroot_dylib_path}"
    200182    }
     
    204186        regsub ${destroot} ${destroot_so_path} "" so_path
    205187        system "install_name_tool -id ${so_path} ${destroot_so_path}"
    206         system "install_name_tool -change ${destroot}${resources}/lib/libR.dylib ${resources}/lib/${build_arch}/libR.dylib \
     188        system "install_name_tool -change ${destroot}${resources}/lib/libR.dylib ${resources}/lib/libR.dylib \
    207189            ${destroot_so_path}"
    208         system "install_name_tool -change ${destroot}${resources}/lib/libRblas.dylib ${resources}/lib/${build_arch}/libRblas.dylib \
     190        system "install_name_tool -change ${destroot}${resources}/lib/libRblas.dylib ${resources}/lib/libRblas.dylib \
    209191            ${destroot_so_path}"
    210         system "install_name_tool -change ${destroot}${resources}/lib/libRlapack.dylib ${resources}/lib/${build_arch}/libRlapack.dylib \
     192        system "install_name_tool -change ${destroot}${resources}/lib/libRlapack.dylib ${resources}/lib/libRlapack.dylib \
    211193            ${destroot_so_path}"
    212194    }
    213195
    214     system "install_name_tool -change ${destroot}${resources}/lib/libR.dylib ${resources}/lib/${build_arch}/libR.dylib \
    215         ${destroot}${resources}/bin/exec/${build_arch}/R"
    216     system "install_name_tool -change ${destroot}${resources}/lib/libRblas.dylib ${resources}/lib/${build_arch}/libRblas.dylib \
    217         ${destroot}${resources}/bin/exec/${build_arch}/R"
    218 
    219     ln -s ${build_arch}/libR.dylib ${destroot}${resources}/lib/libR.dylib
    220 
    221     if {[variant_isset atlas]} {
    222         file delete ${destroot}${resources}/lib/${build_arch}/libRblas.dylib
    223         file delete ${destroot}${resources}/lib/${build_arch}/libRlapack.dylib
    224         ln -s ${prefix}/lib/libtatlas.dylib ${destroot}${resources}/lib/${build_arch}/libRblas.dylib
    225         ln -s ${prefix}/lib/libtatlas.dylib ${destroot}${resources}/lib/${build_arch}/libRlapack.dylib
    226         ln -s ${prefix}/lib/libtatlas.dylib ${destroot}${resources}/lib/libRblas.dylib
    227         ln -s ${prefix}/lib/libtatlas.dylib ${destroot}${resources}/lib/libRlapack.dylib
    228     } else {
    229         ln -s ${build_arch}/libRblas.dylib ${destroot}${resources}/lib/libRblas.dylib
    230         ln -s ${build_arch}/libRlapack.dylib ${destroot}${resources}/lib/libRlapack.dylib
    231     }
     196    system "install_name_tool -change ${destroot}${resources}/lib/libR.dylib ${resources}/lib/libR.dylib \
     197        ${destroot}${resources}/bin/exec/R"
     198    system "install_name_tool -change ${destroot}${resources}/lib/libRblas.dylib ${resources}/lib/libRblas.dylib \
     199        ${destroot}${resources}/bin/exec/R"
    232200
    233201    ln -s ${resources}/bin/R ${destroot}${prefix}/bin/R
     
    237205livecheck.type      regex
    238206livecheck.url       [lindex ${master_sites} 0]
    239 livecheck.regex     >R-(\[0-9.\]+)${extract.suffix}<
    240 
    241 
    242 
     207livecheck.regex     >${name}-(\[0-9.\]+)${extract.suffix}<
Note: See TracChangeset for help on using the changeset viewer.