Date: Sunday, December 21, 2014 @ 10:06:21 Author: arojas Revision: 124255
Splitting sage-mathematics Added: python-rpy2/ python-rpy2/trunk/ python-rpy2/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Added: python-rpy2/trunk/PKGBUILD =================================================================== --- python-rpy2/trunk/PKGBUILD (rev 0) +++ python-rpy2/trunk/PKGBUILD 2014-12-21 09:06:21 UTC (rev 124255) @@ -0,0 +1,40 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com> +# Contributor: David Scholl <djsch...@gmail.com> +# Contributor: David Pretty <david.pre...@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 +} + Property changes on: python-rpy2/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property