[111649] trunk/dports/math/R/Portfile
larryv at macports.org
larryv at macports.org
Fri Sep 27 14:54:56 PDT 2013
Revision: 111649
https://trac.macports.org/changeset/111649
Author: larryv at macports.org
Date: 2013-09-27 14:54:55 -0700 (Fri, 27 Sep 2013)
Log Message:
-----------
R: Update to 3.0.2 and add +atlas, +tests, and modeline (maintainer, #40602).
Modified Paths:
--------------
trunk/dports/math/R/Portfile
Modified: trunk/dports/math/R/Portfile
===================================================================
--- trunk/dports/math/R/Portfile 2013-09-27 21:50:50 UTC (rev 111648)
+++ trunk/dports/math/R/Portfile 2013-09-27 21:54:55 UTC (rev 111649)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
@@ -5,11 +6,10 @@
set major 3
set minor 0
-set point 1
+set point 2
name R
version ${major}.${minor}.${point}
-revision 3
categories math science
maintainers me.com:kjell.konis
license {GPL-2 GPL-3}
@@ -32,8 +32,8 @@
http://cran.hu.r-project.org/src/base/R-3/ \
http://cran.r-project.org/src/base/R-3/
-checksums rmd160 09910626891c2962b5c05d204b14d59444da0c3b \
- sha256 af90488af3141103b211dc81b6f17d1f0faf4f17684c579a32dfeb25d0d87134
+checksums rmd160 8e91603754c965b402bb201c4e5f5a2043262537 \
+ sha256 956e05ad60447955049285420b5a48e0526aa4db676fd9eadb4bcfb7ccdc024b
depends_build port:pkgconfig
@@ -75,11 +75,17 @@
--with-lapack="-framework vecLib"
}
+variant atlas conflicts accelerate builtin_lapack description {build using the BLAS in the atlas port} {
+ depends_lib-append port:atlas
+ configure.args-append --with-blas="-L/MacPorts/lib -lptf77blas -latlas"
+ #See A.3.2 in R Installation and Administration for why atlas LAPACK not used
+}
+
variant builtin_lapack conflicts accelerate description {build using reference BLAS and Lapack} {
configure.args-append --without-blas --without-lapack
}
-variant cairo requires x11 description {Include cairo support in R's x11 graphics device} {
+variant cairo requires x11 description {include cairo support in R's x11 graphics device} {
depends_lib-append path:lib/pkgconfig/cairo.pc:cairo \
path:lib/pkgconfig/pango.pc:pango \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
@@ -140,12 +146,12 @@
}
}
-variant recommended description {Install recommended R packages} {
+variant recommended description {install recommended R packages} {
configure.args-delete --without-recommended-packages
configure.args-append --with-recommended-packages
}
-variant tcltk requires x11 description {Use tcltk} {
+variant tcltk requires x11 description {enable use of tcltk} {
depends_lib-append port:tcl \
port:tk \
port:xorg-libXScrnSaver \
@@ -157,7 +163,11 @@
--with-tk-config=${prefix}/lib/tkConfig.sh
}
-variant x11 description {
+variant tests description {include tests of R installation} {
+ destroot.target-append install-tests
+}
+
+variant x11 description {enable use of x11} {
depends_lib-append port:xorg-libsm \
port:xorg-libice \
port:xorg-libX11 \
@@ -180,10 +190,13 @@
default_variants-append +cairo
}
-if {![variant_isset accelerate] && ![variant_isset builtin_lapack]} {
+if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} {
default_variants-append +accelerate
}
+test.run yes
+test.target check
+
destroot.destdir prefix=${destroot}${frameworks_dir}
post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130927/4ff7f821/attachment-0001.html>
More information about the macports-changes
mailing list