diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-12-04 15:01:56 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-12-04 15:01:56 (GMT) |
commit | b88253492f364da79024745e2be2ede68b7164b7 (patch) | |
tree | 1577dbbc1fa772634f2b66bca88a530a8625d19c /abs/extra/r | |
parent | 35cc5b31365d6873920ffa2b185fd7744f70f9a8 (diff) | |
download | linhes_pkgbuild-b88253492f364da79024745e2be2ede68b7164b7.zip linhes_pkgbuild-b88253492f364da79024745e2be2ede68b7164b7.tar.gz linhes_pkgbuild-b88253492f364da79024745e2be2ede68b7164b7.tar.bz2 |
r: initial inclusion. dep of graphviz
Diffstat (limited to 'abs/extra/r')
-rw-r--r-- | abs/extra/r/PKGBUILD | 90 | ||||
-rw-r--r-- | abs/extra/r/R.conf | 2 | ||||
-rw-r--r-- | abs/extra/r/r.desktop | 11 | ||||
-rw-r--r-- | abs/extra/r/r.install | 16 | ||||
-rw-r--r-- | abs/extra/r/r.png | bin | 0 -> 4771 bytes |
5 files changed, 119 insertions, 0 deletions
diff --git a/abs/extra/r/PKGBUILD b/abs/extra/r/PKGBUILD new file mode 100644 index 0000000..7b4f031 --- /dev/null +++ b/abs/extra/r/PKGBUILD @@ -0,0 +1,90 @@ +# $Id$ +# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor: Damir Perisa <damir.perisa@bluewin.ch> +# Contributor: K. Piche <kpiche@rogers.com> + +pkgname=r +pkgver=3.1.2 +pkgrel=1 +pkgdesc="Language and environment for statistical computing and graphics" +arch=('i686' 'x86_64') +license=('GPL') +url=('http://www.r-project.org/') +depends=('blas' 'lapack' 'bzip2' 'libpng' 'libjpeg' 'libtiff' + 'ncurses' 'pcre' 'readline' 'zlib' 'perl' 'gcc-libs' + 'libxt' 'libxmu' 'pango' 'xz' 'desktop-file-utils' 'zip' 'unzip') +makedepends=('jdk7-openjdk' 'gcc-fortran' 'tk') +optdepends=('tk: tcl/tk interface' 'texlive-bin: latex sty files') +backup=('etc/R/Makeconf' 'etc/R/Renviron' 'etc/R/ldpaths' 'etc/R/repositories' 'etc/R/javaconf') +options=('!makeflags' '!emptydirs') +install=r.install +source=("http://cran.r-project.org/src/base/R-${pkgver%%.*}/R-${pkgver}.tar.gz" + 'r.desktop' + 'r.png' + 'R.conf') +sha1sums=('93809368e5735a630611633ac1fa99010020c5d6' + 'd7fa521345b230a4187d60d07d06ce4b6d573e3f' + 'a69a07ec363440efc18ce0a7f2af103375dea978' + '43668da6cfd1b4455a99f23e79e2059294dddac9') + +prepare() { + cd R-${pkgver} + # set texmf dir correctly in makefile + sed -i 's|$(rsharedir)/texmf|${datarootdir}/texmf|' share/Makefile.in + # fix for texinfo 5.X + sed -i 's|test ${makeinfo_version_min} -lt 7|test ${makeinfo_version_min} -lt 0|' configure +} + +build() { + cd R-${pkgver} + ./configure --prefix=/usr \ + --libdir=/usr/lib \ + --sysconfdir=/etc/R \ + --datarootdir=/usr/share \ + rsharedir=/usr/share/R/ \ + rincludedir=/usr/include/R/ \ + rdocdir=/usr/share/doc/R/ \ + --with-x \ + --enable-R-shlib \ + --with-lapack \ + --with-blas \ + F77=gfortran \ + LIBnn=lib + make + +# make libRmath.so + cd src/nmath/standalone + make shared +} + +package() { + cd R-${pkgver} + make DESTDIR="${pkgdir}" install + +# install libRmath.so + cd src/nmath/standalone + make DESTDIR="${pkgdir}" install + + # Fixup R wrapper scripts. + sed -i "s|${pkgdir} ||" "${pkgdir}/usr/bin/R" + rm "${pkgdir}/usr/lib/R/bin/R" + cd "${pkgdir}/usr/lib/R/bin" + ln -s ../../../bin/R + + # install some freedesktop.org compatibility + install -Dm644 "${srcdir}/r.desktop" \ + "${pkgdir}/usr/share/applications/r.desktop" + install -Dm644 "${srcdir}/r.png" \ + "${pkgdir}/usr/share/pixmaps/r.png" + + # move the config directory to /etc and create symlinks + install -d "${pkgdir}/etc/R" + cd "${pkgdir}/usr/lib/R/etc" + for i in *; do + mv -f ${i} "${pkgdir}/etc/R" + ln -s /etc/R/${i} ${i} + done + + # Install ld.so.conf.d file to ensure other applications access the shared lib + install -Dm644 "${srcdir}/R.conf" "${pkgdir}/etc/ld.so.conf.d/R.conf" +} diff --git a/abs/extra/r/R.conf b/abs/extra/r/R.conf new file mode 100644 index 0000000..e360859 --- /dev/null +++ b/abs/extra/r/R.conf @@ -0,0 +1,2 @@ +/usr/lib/R/lib + diff --git a/abs/extra/r/r.desktop b/abs/extra/r/r.desktop new file mode 100644 index 0000000..7732c9b --- /dev/null +++ b/abs/extra/r/r.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=R +GenericName=environment for statistical computing +Comment=language and environment for statistical computing and graphics +Exec=R +Icon=/usr/share/pixmaps/r.png +DocPath=/usr/lib/R/doc/html/index.html +StartupNotify=true +Terminal=true +Type=Application +Categories=Science; diff --git a/abs/extra/r/r.install b/abs/extra/r/r.install new file mode 100644 index 0000000..522ce52 --- /dev/null +++ b/abs/extra/r/r.install @@ -0,0 +1,16 @@ +post_install() { + update-desktop-database -q + if [[ -x /usr/bin/mktexlsr ]]; then + echo ">>> updating the filename database for texlive..." + mktexlsr --quiet usr/share/texmf + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} + diff --git a/abs/extra/r/r.png b/abs/extra/r/r.png Binary files differnew file mode 100644 index 0000000..1303ccd --- /dev/null +++ b/abs/extra/r/r.png |