[arch-commits] Commit in r/repos (12 files)

Eric Bélanger eric at nymeria.archlinux.org
Sat Mar 23 01:21:27 UTC 2013


    Date: Saturday, March 23, 2013 @ 02:21:26
  Author: eric
Revision: 180545

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  r/repos/staging-i686/
  r/repos/staging-i686/PKGBUILD
    (from rev 180544, r/trunk/PKGBUILD)
  r/repos/staging-i686/R.conf
    (from rev 180544, r/trunk/R.conf)
  r/repos/staging-i686/r.desktop
    (from rev 180544, r/trunk/r.desktop)
  r/repos/staging-i686/r.install
    (from rev 180544, r/trunk/r.install)
  r/repos/staging-i686/r.png
    (from rev 180544, r/trunk/r.png)
  r/repos/staging-x86_64/
  r/repos/staging-x86_64/PKGBUILD
    (from rev 180544, r/trunk/PKGBUILD)
  r/repos/staging-x86_64/R.conf
    (from rev 180544, r/trunk/R.conf)
  r/repos/staging-x86_64/r.desktop
    (from rev 180544, r/trunk/r.desktop)
  r/repos/staging-x86_64/r.install
    (from rev 180544, r/trunk/r.install)
  r/repos/staging-x86_64/r.png
    (from rev 180544, r/trunk/r.png)

--------------------------+
 staging-i686/PKGBUILD    |   90 +++++++++++++++++++++++++++++++++++++++++++++
 staging-i686/R.conf      |    2 +
 staging-i686/r.desktop   |   11 +++++
 staging-i686/r.install   |   16 ++++++++
 staging-x86_64/PKGBUILD  |   90 +++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/R.conf    |    2 +
 staging-x86_64/r.desktop |   11 +++++
 staging-x86_64/r.install |   16 ++++++++
 8 files changed, 238 insertions(+)

Copied: r/repos/staging-i686/PKGBUILD (from rev 180544, r/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2013-03-23 01:21:26 UTC (rev 180545)
@@ -0,0 +1,90 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+# Contributor: K. Piche <kpiche at rogers.com>
+
+pkgname=r
+pkgver=2.15.3
+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')
+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')
+options=('!makeflags' '!emptydirs')
+install=r.install
+source=("http://cran.r-project.org/src/base/R-2/R-${pkgver}.tar.gz"
+	'r.desktop'
+	'r.png'
+	'R.conf')
+sha1sums=('a05b68f31b00d8038d9f0a8562cfc0c8e32d9621'
+          '13aa29219bcaa102e575de8c1c8e0833d233e836'
+          'a69a07ec363440efc18ce0a7f2af103375dea978'
+          '43668da6cfd1b4455a99f23e79e2059294dddac9')
+
+build() {
+   cd "${srcdir}/R-${pkgver}"
+   sed -i 's|#define NeedFunctionPrototypes 0|#define NeedFunctionPrototypes 1|g' src/modules/X11/dataentry.c
+
+  # 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
+
+   ./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 "${srcdir}/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"
+}

Copied: r/repos/staging-i686/R.conf (from rev 180544, r/trunk/R.conf)
===================================================================
--- staging-i686/R.conf	                        (rev 0)
+++ staging-i686/R.conf	2013-03-23 01:21:26 UTC (rev 180545)
@@ -0,0 +1,2 @@
+/usr/lib/R/lib
+

Copied: r/repos/staging-i686/r.desktop (from rev 180544, r/trunk/r.desktop)
===================================================================
--- staging-i686/r.desktop	                        (rev 0)
+++ staging-i686/r.desktop	2013-03-23 01:21:26 UTC (rev 180545)
@@ -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=Education;Science;Math;

Copied: r/repos/staging-i686/r.install (from rev 180544, r/trunk/r.install)
===================================================================
--- staging-i686/r.install	                        (rev 0)
+++ staging-i686/r.install	2013-03-23 01:21:26 UTC (rev 180545)
@@ -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
+}
+

Copied: r/repos/staging-i686/r.png (from rev 180544, r/trunk/r.png)
===================================================================
(Binary files differ)

Copied: r/repos/staging-x86_64/PKGBUILD (from rev 180544, r/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2013-03-23 01:21:26 UTC (rev 180545)
@@ -0,0 +1,90 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+# Contributor: K. Piche <kpiche at rogers.com>
+
+pkgname=r
+pkgver=2.15.3
+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')
+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')
+options=('!makeflags' '!emptydirs')
+install=r.install
+source=("http://cran.r-project.org/src/base/R-2/R-${pkgver}.tar.gz"
+	'r.desktop'
+	'r.png'
+	'R.conf')
+sha1sums=('a05b68f31b00d8038d9f0a8562cfc0c8e32d9621'
+          '13aa29219bcaa102e575de8c1c8e0833d233e836'
+          'a69a07ec363440efc18ce0a7f2af103375dea978'
+          '43668da6cfd1b4455a99f23e79e2059294dddac9')
+
+build() {
+   cd "${srcdir}/R-${pkgver}"
+   sed -i 's|#define NeedFunctionPrototypes 0|#define NeedFunctionPrototypes 1|g' src/modules/X11/dataentry.c
+
+  # 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
+
+   ./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 "${srcdir}/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"
+}

Copied: r/repos/staging-x86_64/R.conf (from rev 180544, r/trunk/R.conf)
===================================================================
--- staging-x86_64/R.conf	                        (rev 0)
+++ staging-x86_64/R.conf	2013-03-23 01:21:26 UTC (rev 180545)
@@ -0,0 +1,2 @@
+/usr/lib/R/lib
+

Copied: r/repos/staging-x86_64/r.desktop (from rev 180544, r/trunk/r.desktop)
===================================================================
--- staging-x86_64/r.desktop	                        (rev 0)
+++ staging-x86_64/r.desktop	2013-03-23 01:21:26 UTC (rev 180545)
@@ -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=Education;Science;Math;

Copied: r/repos/staging-x86_64/r.install (from rev 180544, r/trunk/r.install)
===================================================================
--- staging-x86_64/r.install	                        (rev 0)
+++ staging-x86_64/r.install	2013-03-23 01:21:26 UTC (rev 180545)
@@ -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
+}
+

Copied: r/repos/staging-x86_64/r.png (from rev 180544, r/trunk/r.png)
===================================================================
(Binary files differ)




More information about the arch-commits mailing list