Browse Source

d/R: Upgraded to R-3.0.2.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
e7238c9415
  1. 1
      d/R/R-2.15.1.tar.gz.sha1
  2. 1
      d/R/R-3.0.2.tar.gz.sha1
  3. 15
      d/R/R.SlackBuild

1
d/R/R-2.15.1.tar.gz.sha1

@ -1 +0,0 @@
f0e6912be6dfc0d1fdc4be66048304d8befe8424 R-2.15.1.tar.gz

1
d/R/R-3.0.2.tar.gz.sha1

@ -0,0 +1 @@
f5d9daef00e09d36a465ff7b0bf4cab136bea227 R-3.0.2.tar.gz

15
d/R/R.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2009,2010,2011 Damien Goutte-Gattat
# Copyright (C) 2008,2009,2010,2011,2013 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -25,13 +25,12 @@
# Latest R sourcecode is available at: <http://www.r-project.org/>.
#
# Recommends: l/libatlas
# Optional: l/icu
# Source package infos
NAMESRC=${NAMESRC:-R}
VERSION=${VERSION:-2.15.1}
VERSION=${VERSION:-3.0.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://cran.cict.fr/src/base/R-2/$ARCHIVE}
WGET=${WGET:-http://ftp.igh.cnrs.fr/pub/CRAN/src/base/R-3/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-R}
@ -86,6 +85,7 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
JAVA_HOME=/usr/lib$LIBDIRSUFFIX/jdk1.7.0_45/jre \
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
@ -95,7 +95,7 @@ CXXFLAGS=$CPUOPT \
--infodir=/usr/info \
--enable-R-shlib \
--with-blas \
--with-lapack="-lcblas -latlas -llapack" \
--with-lapack="-llapack -lcblas -latlas" \
--with-system-zlib \
--with-system-bzlib \
--with-system-pcre
@ -103,14 +103,13 @@ make -j $JOBS
make install-strip DESTDIR=$PKG
make install-info DESTDIR=$PKG
# Compress man pages, suppress info dir.* file
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 '{}' \;
rm -f $PKG/usr/info/dir
# Install the documentation at the right place
mkdir -p $PKG/usr/doc
mv $PKG/usr/lib$LIBDIRSUFFIX/R/doc $PKG/usr/doc/$NAME
mv $PKG/usr/lib$LIBDIRSUFFIX/R/{COPYING,NEWS,NEWS.pdf,SVN-REVISION} \
mv $PKG/usr/lib$LIBDIRSUFFIX/R/{COPYING,NEWS,NEWS.0,NEWS.1,NEWS.2,NEWS.pdf,SVN-REVISION} \
$PKG/usr/doc/$NAME/
# Copy slack-desc file

Loading…
Cancel
Save