[arch-commits] Commit in python-rpy2 (5 files)
Antonio Rojas
arojas at archlinux.org
Sun Dec 21 09:07:26 UTC 2014
Date: Sunday, December 21, 2014 @ 10:07:26
Author: arojas
Revision: 124256
archrelease: copy trunk to community-i686, community-x86_64
Added:
python-rpy2/repos/
python-rpy2/repos/community-i686/
python-rpy2/repos/community-i686/PKGBUILD
(from rev 124255, python-rpy2/trunk/PKGBUILD)
python-rpy2/repos/community-x86_64/
python-rpy2/repos/community-x86_64/PKGBUILD
(from rev 124255, python-rpy2/trunk/PKGBUILD)
---------------------------+
community-i686/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 80 insertions(+)
Copied: python-rpy2/repos/community-i686/PKGBUILD (from rev 124255, python-rpy2/trunk/PKGBUILD)
===================================================================
--- repos/community-i686/PKGBUILD (rev 0)
+++ repos/community-i686/PKGBUILD 2014-12-21 09:07:26 UTC (rev 124256)
@@ -0,0 +1,40 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com>
+# Contributor: David Scholl <djscholl at gmail.com>
+# Contributor: David Pretty <david.pretty at gmail.com>
+
+pkgbase=python-rpy2
+pkgname=('python2-rpy2' 'python-rpy2')
+pkgver=2.5.3
+pkgrel=1
+pkgdesc="A very simple, yet robust, Python interface to the R Programming Language."
+arch=('i686' 'x86_64')
+url="http://rpy.sourceforge.net/"
+license=('MPL' 'GPL' 'LGPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-numpy' 'python2-numpy' 'r')
+depends=('python2-numpy' 'r')
+source=("http://pypi.python.org/packages/source/r/rpy2/rpy2-$pkgver.tar.gz")
+md5sums=('6adef51aa9ddd8cfcd63798f875244f9')
+
+prepare() {
+ cd rpy2-$pkgver
+ sed -i "s:Rlapack:lapack:" setup.py
+ sed -i "s:os.path.join(RHOME.strip(), 'include'):'/usr/include/R':" setup.py
+ sed -i "s:os.path.join(RHOME.strip(), 'include'):'/usr/include/R':" setup.py
+}
+
+package_python2-rpy2() {
+ depends=('python2-numpy' 'r')
+ cd rpy2-$pkgver
+
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i "$pkgdir"/usr/lib/python2.7/site-packages/rpy2/tests.py
+}
+
+package_python-rpy2() {
+ depends=('python-numpy' 'r')
+ cd rpy2-$pkgver
+
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+}
+
Copied: python-rpy2/repos/community-x86_64/PKGBUILD (from rev 124255, python-rpy2/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2014-12-21 09:07:26 UTC (rev 124256)
@@ -0,0 +1,40 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com>
+# Contributor: David Scholl <djscholl at gmail.com>
+# Contributor: David Pretty <david.pretty at gmail.com>
+
+pkgbase=python-rpy2
+pkgname=('python2-rpy2' 'python-rpy2')
+pkgver=2.5.3
+pkgrel=1
+pkgdesc="A very simple, yet robust, Python interface to the R Programming Language."
+arch=('i686' 'x86_64')
+url="http://rpy.sourceforge.net/"
+license=('MPL' 'GPL' 'LGPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-numpy' 'python2-numpy' 'r')
+depends=('python2-numpy' 'r')
+source=("http://pypi.python.org/packages/source/r/rpy2/rpy2-$pkgver.tar.gz")
+md5sums=('6adef51aa9ddd8cfcd63798f875244f9')
+
+prepare() {
+ cd rpy2-$pkgver
+ sed -i "s:Rlapack:lapack:" setup.py
+ sed -i "s:os.path.join(RHOME.strip(), 'include'):'/usr/include/R':" setup.py
+ sed -i "s:os.path.join(RHOME.strip(), 'include'):'/usr/include/R':" setup.py
+}
+
+package_python2-rpy2() {
+ depends=('python2-numpy' 'r')
+ cd rpy2-$pkgver
+
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i "$pkgdir"/usr/lib/python2.7/site-packages/rpy2/tests.py
+}
+
+package_python-rpy2() {
+ depends=('python-numpy' 'r')
+ cd rpy2-$pkgver
+
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+}
+
More information about the arch-commits
mailing list