# $Id$ PortSystem 1.0 name R version 2.7.1 categories math science maintainers kjell.konis@epfl.ch platforms darwin description R is GNU S - an interpreted language for statistical computing long_description \ R is a language and environment for statistical computing and graphics. \ R provides a wide variety of statistical (linear and nonlinear modelling, \ classical statistical tests, time-series analysis, classification, \ clustering, ...) and graphical techniques, and is highly extensible. homepage http://www.r-project.org/ master_sites http://cran.us.r-project.org/src/base/R-2/ \ http://cran.au.r-project.org/src/base/R-2/ \ http://cran.at.r-project.org/src/base/R-2/ \ http://cran.hu.r-project.org/src/base/R-2/ \ http://cran.r-project.org/src/base/R-2/ checksums md5 565b06a1f3f11020399934cc7b47a59d \ sha1 cdf5f6f85463c7be007306add2f4ca7cf7babfb7 \ rmd160 ac98e39d46ebc7581dd53da7f69a1e7abad269a4 depends_lib port:cairo \ port:expat \ port:fontconfig \ port:freetype \ port:gettext \ port:glib2 \ port:jpeg \ port:libiconv \ port:libpixman \ port:libpng \ port:pango \ port:readline \ port:tcl \ port:tk \ port:tiff \ port:xrender \ port:zlib \ lib:libX11.6:XFree86 variant gcc42 description {Build with gcc42} { configure.compiler macports-gcc-4.2 depends_lib-append port:gcc42 } variant gcc43 description {Build with gcc43 (default)} { configure.compiler macports-gcc-4.3 depends_lib-append port:gcc43 } if {![variant_isset gcc42] && ![variant_isset gcc43]} { default_variants +gcc43 } post-extract { reinplace "s|R_HOME|\"${prefix}/lib/R\"|" ${worksrcpath}/src/unix/Rscript.c } configure.args --mandir=\\\${prefix}/share/man \ --enable-R-shlib \ --with-blas='-framework vecLib' \ --with-lapack \ --disable-R-framework \ --without-aqua \ --with-tcl-config=${prefix}/lib/tclConfig.sh \ --with-tk-config=${prefix}/lib/tkConfig.sh test.run yes test.target check destroot.destdir prefix=${destroot}${prefix} post-destroot { foreach r { "/bin/R" "/lib/R/bin/R" } { foreach dir { "R_HOME_DIR" "R_SHARE_DIR" "R_INCLUDE_DIR" "R_DOC_DIR" } { reinplace "s|${dir}=${destroot}|${dir}=|" \ "${destroot}${prefix}${r}" } } system "install_name_tool -id ${prefix}/lib/R/lib/libR.dylib \ ${destroot}${prefix}/lib/R/lib/libR.dylib" foreach so [ exec find ${destroot}${prefix}/lib/R -name "\*.so" ] { regsub ":$" ${so} "" destroot_so_path regsub ${destroot} ${destroot_so_path} "" so_path system "install_name_tool -id ${so_path} ${destroot_so_path}" system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib ${destroot_so_path}" } }