development/R: Updated for version 2.7.2

This commit is contained in:
Joel J. Adamson 2010-05-11 22:22:13 +02:00 committed by David Somero
parent 3b9a349a3b
commit 85dcbddb77
2 changed files with 19 additions and 10 deletions

View File

@ -1,10 +1,11 @@
#! /bin/sh
#!/bin/sh
# Slackware build script for R
# Written by Joel J. Adamson
# Modified by SlackBuilds.org
PRGNAM=R
VERSION=2.6.2
VERSION=2.7.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -18,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
rm -rf $PKG
@ -29,18 +32,24 @@ cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# mandir and infodir are ignored, so don't bother with them
# adjust the path variable; you need pdflatex to build the LaTeX
# documentation
PATH=/usr/share/texmf/bin:$PATH
# Set configure options
# If your app is written in C++, you'll also need to add a line for CXXFLAGS
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-perl=/usr/bin/perl \
--build=$ARCH-slackware-linux
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
make || exit 1
make install DESTDIR=$PKG || exit 1
make install-info DESTDIR=$PKG || exit 1
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
@ -69,4 +78,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

View File

@ -1,8 +1,8 @@
PRGNAM="R"
VERSION="2.62"
VERSION="2.7.2"
HOMEPAGE="http://www.r-project.org"
DOWNLOAD="http://mirrors.ibiblio.org/pub/mirrors/CRAN/src/base/R-2/R-2.6.2.tar.gz"
MD5SUM="1099cbf02c624ceb459d9bbc4d0d1448"
DOWNLOAD="http://mirrors.ibiblio.org/pub/mirrors/CRAN/src/base/R-2/R-2.7.2.tar.gz"
MD5SUM="6122945e9301825b97a506151b3cefde"
MAINTAINER="Joel J. Adamson"
EMAIL="sparrow1240@gmail.com"
APPROVED="rworkman"
APPROVED="David Somero"