From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/rpy/Manifest | 1 + dev-python/rpy/metadata.xml | 22 ++++++++++++++++++ dev-python/rpy/rpy-2.9.0.ebuild | 51 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 dev-python/rpy/Manifest create mode 100644 dev-python/rpy/metadata.xml create mode 100644 dev-python/rpy/rpy-2.9.0.ebuild (limited to 'dev-python/rpy') diff --git a/dev-python/rpy/Manifest b/dev-python/rpy/Manifest new file mode 100644 index 000000000000..33a30f5de822 --- /dev/null +++ b/dev-python/rpy/Manifest @@ -0,0 +1 @@ +DIST rpy2-2.9.0.tar.gz 193062 BLAKE2B 92492821856e516f8f620397cba2e0ffb17718156c7c3a0bc8df8e744f0adf1ea6006e5c762ba99aa142fe06d327a240bf5d616175e81a80d28a21265c9771aa SHA512 55be876fb7316a08f507f3a332ed29d71b52f733c1986482f141e694d66d0e01a51a9c3f0260f6fe0086d7bfbc1f58b678cda4570665e4f1ffdb120c793ef1b2 diff --git a/dev-python/rpy/metadata.xml b/dev-python/rpy/metadata.xml new file mode 100644 index 000000000000..30e2b981dad4 --- /dev/null +++ b/dev-python/rpy/metadata.xml @@ -0,0 +1,22 @@ + + + + + python@gentoo.org + Python + + + sci@gentoo.org + Gentoo Science Project + + + RPy provides a robust Python interface to the R programming + language. It can manage R objects and can execute arbitrary R + functions. All the errors from the R language are converted to + Python exceptions. + + + rpy2 + + gentoo-staging + diff --git a/dev-python/rpy/rpy-2.9.0.ebuild b/dev-python/rpy/rpy-2.9.0.ebuild new file mode 100644 index 000000000000..c81957215420 --- /dev/null +++ b/dev-python/rpy/rpy-2.9.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7} ) +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="https://rpy.sourceforge.net/ + https://pypi.org/project/rpy2/" +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}] +" +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' +} -- cgit v1.3.1