# $Id$ PortSystem 1.0 name R version 2.11.0 categories math science maintainers epfl.ch:kjell.konis 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 modeling, \ 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.ms.unimelb.edu.au/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 c6c1e866299f533617750889c729bfb3 \ sha1 86af359879afaf18bf0cd9ca36f2957d7b146ba3 \ rmd160 358d5ba19bd534e9f5be56f517bd217c235599dc depends_lib port:gettext \ port:icu \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:jpeg \ port:libiconv \ path:lib/pkgconfig/pango.pc:pango \ port:readline \ port:tcl \ port:tk \ port:tiff \ port:xorg-libXmu \ port:xorg-libXScrnSaver universal_variant no variant gcc42 conflicts gcc43 gcc44 description {Build with gcc42} { configure.compiler macports-gcc-4.2 depends_lib-append port:gcc42 } variant gcc43 conflicts gcc42 gcc44 description {Build with gcc43} { configure.compiler macports-gcc-4.3 depends_lib-append port:gcc43 } variant gcc44 conflicts gcc42 gcc43 description {Build with gcc44} { configure.compiler macports-gcc-4.4 depends_lib-append port:gcc44 } if {![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44]} { default_variants +gcc43 } post-extract { reinplace "s|R_HOME|\"${prefix}/lib/R\"|" "${worksrcpath}/src/unix/Rscript.c" } configure.args --mandir=\\\${prefix}/share/man \ --enable-BLAS-shlib \ --enable-R-shlib \ --disable-nls \ --without-libintl-prefix \ --disable-R-framework \ --without-aqua \ --with-tcl-config=${prefix}/lib/tclConfig.sh \ --with-tk-config=${prefix}/lib/tkConfig.sh \ --x-include=${prefix}/include \ --x-lib=${prefix}/lib 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}" } } foreach v { "rhome" "rincludedir" } { reinplace "s|${v}=${destroot}|${v}=|" "${destroot}${prefix}/lib/pkgconfig/libR.pc" } foreach dylib [ exec find ${destroot}${prefix}/lib/R/lib -name "\*.dylib" ] { regsub ":$" ${dylib} "" destroot_dylib_path regsub ${destroot} ${destroot_dylib_path} "" dylib_path system "install_name_tool -id ${dylib_path} ${destroot_dylib_path}" system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ ${destroot_dylib_path}" system "install_name_tool -change libRblas.dylib ${prefix}/lib/R/lib/libRblas.dylib \ ${destroot_dylib_path}" system "install_name_tool -change libRlapack.dylib ${prefix}/lib/R/lib/libRlapack.dylib \ ${destroot_dylib_path}" } 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}" system "install_name_tool -change libRblas.dylib ${prefix}/lib/R/lib/libRblas.dylib \ ${destroot_so_path}" system "install_name_tool -change libRlapack.dylib ${prefix}/lib/R/lib/libRlapack.dylib \ ${destroot_so_path}" } reinplace "s|-dylib_file libRblas\.dylib:\$\(R_HOME\)/lib\$\(R_ARCH\)/libRblas\.dylib| |" \ "${destroot}${prefix}/lib/R/etc/Makeconf" }