[arch-commits] Commit in python-rpy2/repos (4 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Mon Dec 26 09:23:13 UTC 2016
Date: Monday, December 26, 2016 @ 09:23:13
Author: bpiotrowski
Revision: 202605
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
python-rpy2/repos/community-staging-i686/
python-rpy2/repos/community-staging-i686/PKGBUILD
(from rev 202604, python-rpy2/trunk/PKGBUILD)
python-rpy2/repos/community-staging-x86_64/
python-rpy2/repos/community-staging-x86_64/PKGBUILD
(from rev 202604, python-rpy2/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+)
Copied: python-rpy2/repos/community-staging-i686/PKGBUILD (from rev 202604, python-rpy2/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-12-26 09:23:13 UTC (rev 202605)
@@ -0,0 +1,41 @@
+# $Id$
+# 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.8.5
+pkgrel=2
+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)
+source=("https://pypi.io/packages/source/r/rpy2/rpy2-$pkgver.tar.gz")
+md5sums=('b1c3ef432b3a5c83cec06658eeb85581')
+
+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 python2-singledispatch)
+ cd rpy2-$pkgver
+
+ export CFLAGS+=" -DHAVE_UINTPTR_T=1" # workaround for https://bitbucket.org/rpy2/rpy2/issues/389/failed-to-compile-with-python-360-on-32
+ 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-staging-x86_64/PKGBUILD (from rev 202604, python-rpy2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-12-26 09:23:13 UTC (rev 202605)
@@ -0,0 +1,41 @@
+# $Id$
+# 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.8.5
+pkgrel=2
+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)
+source=("https://pypi.io/packages/source/r/rpy2/rpy2-$pkgver.tar.gz")
+md5sums=('b1c3ef432b3a5c83cec06658eeb85581')
+
+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 python2-singledispatch)
+ cd rpy2-$pkgver
+
+ export CFLAGS+=" -DHAVE_UINTPTR_T=1" # workaround for https://bitbucket.org/rpy2/rpy2/issues/389/failed-to-compile-with-python-360-on-32
+ 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