summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/rpy/Manifest1
-rw-r--r--dev-python/rpy/metadata.xml1
-rw-r--r--dev-python/rpy/rpy-2.8.6.ebuild52
3 files changed, 53 insertions, 1 deletions
diff --git a/dev-python/rpy/Manifest b/dev-python/rpy/Manifest
index e27e38c11c43..ee2b4f653452 100644
--- a/dev-python/rpy/Manifest
+++ b/dev-python/rpy/Manifest
@@ -1,2 +1,3 @@
DIST rpy2-2.6.2.tar.gz 171655 SHA256 2e28886b2a6a138cfc057f9b7cddade253e61c9abb43f0eae20dace58b6dfced SHA512 7a060ccc26a03dc93d75edb85d92f1ab31af96ba140932ff8e699cd5855e6078b1e0ffceed135d32deb6c8f273ebcc8b02be38e9b8fc66778cc2adab5745f542 WHIRLPOOL 26d9a9c13e4efa22a232507cfff0b13d650e0528f635dfa9fe464cde50462d2d94a668d1566b537bafaa5462eb66e96005296c6295308b1e3d1c5639da2879b6
DIST rpy2-2.8.5.tar.gz 184190 SHA256 09c63bc934d666f4ec16e74caf52eb516e035557407a93591e8da694a1718ca6 SHA512 737649bea67f0cb2a73dfedfe6f342b52bd8e73840b0da6eb64c8a61d25665d74394df6070ed67ec7a59632798e12fce05225e5c1ec5de587f1ae40ce5074b99 WHIRLPOOL 2e6c449ca766ff73a20abff12ef6df5791a77d2ca3cf5e90862700370bddf20b9b4ded65c870ef84ab840bb282d66cffc10c078a4417a8e1074dfebc7d87c421
+DIST rpy2-2.8.6.tar.gz 191192 SHA256 004d13734a7b9a85cbc1e7a93ec87df741e28db1273ab5b0d9efaac04a9c5f98 SHA512 614fd404c2bcd51a503e05bd2ea51fe39ddf20b16088496e9d9f0017ccbd06707f26341243c33669ae4ddf5b37ed748546cab9d4d23b9c26fd39319d9831dcfe WHIRLPOOL ef160afafcec1db0c337ae53882586130f8e2d33c836633fe8fbeaf83202c525f1eb46b0ea944b2ef67446809c0cd1456f22bcce107e8157ef9de4a1daefcd8c
diff --git a/dev-python/rpy/metadata.xml b/dev-python/rpy/metadata.xml
index 281c84a2d00f..d11f5cf28f8c 100644
--- a/dev-python/rpy/metadata.xml
+++ b/dev-python/rpy/metadata.xml
@@ -17,6 +17,5 @@
</longdescription>
<upstream>
<remote-id type="pypi">rpy2</remote-id>
- <remote-id type="sourceforge">rpy</remote-id>
</upstream>
</pkgmetadata>
diff --git a/dev-python/rpy/rpy-2.8.6.ebuild b/dev-python/rpy/rpy-2.8.6.ebuild
new file mode 100644
index 000000000000..860a83e5bc0e
--- /dev/null
+++ b/dev-python/rpy/rpy-2.8.6.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1 flag-o-matic virtualx
+
+MYSLOT=2
+MY_PN=${PN}${MYSLOT}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Python interface to the R Programming Language"
+HOMEPAGE="http://rpy2.bitbucket.io/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="AGPL-3 GPL-2 LGPL-2.1 MPL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+# ggplot2 is a test dep but not in portage
+RESTRICT="test"
+
+RDEPEND="
+ >=dev-lang/R-3.2
+ dev-python/numpy[${PYTHON_USEDEP}]
+ >=dev-python/pandas-0.13.1[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ virtual/python-singledispatch[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ test? ( >=dev-lang/R-3.2[X,png] )
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+PDEPEND="dev-python/ipython[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}"
+
+python_compile() {
+ if ! python_is_python3; then
+ local CFLAGS=${CFLAGS}
+ append-cflags -fno-strict-aliasing
+ fi
+ distutils-r1_python_compile
+}
+
+python_test() {
+ cd "${BUILD_DIR}"/lib || die
+ virtx "${EPYTHON}" -m 'rpy2.tests' || die
+}