summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormelikamp <melikamp@melikamp.net>2012-04-15 22:17:26 -0400
committerErik Hanson <erik@slackbuilds.org>2012-04-16 05:35:58 -0500
commitaf844f8c9cdcaabba33285609994346175b8235e (patch)
tree80fdbf3f1d3639035105b973b3de7449115f3c11
parent9d564ba2a9957d06a1147663fdb485b9227a6e37 (diff)
downloadslackbuilds-af844f8c9cdcaabba33285609994346175b8235e.tar.gz
academic/R: Updated for version 2.15.0.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--academic/R/R.SlackBuild21
-rw-r--r--academic/R/R.info8
-rw-r--r--academic/R/README8
3 files changed, 30 insertions, 7 deletions
diff --git a/academic/R/R.SlackBuild b/academic/R/R.SlackBuild
index f66ea2759c..b73b2c4f8a 100644
--- a/academic/R/R.SlackBuild
+++ b/academic/R/R.SlackBuild
@@ -1,9 +1,10 @@
#!/bin/sh
-# SlackBuild script for R, by melikamp.
+# SlackBuild script for R, by melikamp, Andrew Rowland.
+# (Contributors are listed in order of first participation.)
# This program is free software: it is placed into the Public Domain
-# by the author. A verbose dedication is available at
+# by the author(s). A verbose dedication is available at
# http://creativecommons.org/publicdomain/zero/1.0/legalcode
# This program is distributed in the hope that it will be useful, but
@@ -13,10 +14,21 @@
# the Universe as we know it.
PRGNAM=R
-VERSION=2.14.1
+VERSION=2.15.0
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+if [ "${R_SHLIB:-yes}" = "yes" ]; then
+ r_shlib="--enable-R-shlib"
+else
+ r_shlib="--disable-R-shlib"
+fi
+if [ "${BLAS_SHLIB:-yes}" = "yes" ]; then
+ blas_shlib="--enable-BLAS-shlib"
+else
+ blas_shlib="--disable-BLAS-shlib"
+fi
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -68,9 +80,12 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
rdocdir=/usr/doc/$PRGNAM-$VERSION \
+ $r_shlib \
+ $blas_shlib \
--build=$ARCH-slackware-linux
make
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/R/lib # work around make install bug
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
diff --git a/academic/R/R.info b/academic/R/R.info
index 9ec141fa20..c68c650662 100644
--- a/academic/R/R.info
+++ b/academic/R/R.info
@@ -1,10 +1,10 @@
PRGNAM="R"
-VERSION="2.14.1"
+VERSION="2.15.0"
HOMEPAGE="http://www.r-project.org/"
-DOWNLOAD="http://cran.stat.ucla.edu/src/base/R-2/R-2.14.1.tar.gz"
-MD5SUM="ba5b6fb15b660670ea29b885348f322a"
+DOWNLOAD="http://cran.stat.ucla.edu/src/base/R-2/R-2.15.0.tar.gz"
+MD5SUM="905f638990492618559202cc1e48a867"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="melikamp"
EMAIL="melikamp@melikamp.net"
-APPROVED="rworkman"
+APPROVED="dsomero"
diff --git a/academic/R/README b/academic/R/README
index 31f2747c43..cd6a7109c8 100644
--- a/academic/R/README
+++ b/academic/R/README
@@ -16,3 +16,11 @@ calculation and graphical display. Among other things it has
`S') which includes conditionals, loops, user defined recursive
functions and input and output facilities. (Indeed most of the
system supplied functions are themselves written in the S language.)
+
+If you do not need to build the R shared library (which is needed if
+you would like to call R functions from other applications), execute
+the script as R_SHLIB=no ./R.SlackBuild
+
+If you do not need to build the BLAS shared library (which is useful
+for swapping default unaccelerated BLAS for an accelerated one),
+execute the script as BLAS_SHLIB=no ./R.SlackBuild