diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/rpy | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/rpy')
-rw-r--r-- | dev-python/rpy/Manifest | 5 | ||||
-rw-r--r-- | dev-python/rpy/metadata.xml | 21 | ||||
-rw-r--r-- | dev-python/rpy/rpy-2.6.2.ebuild | 52 | ||||
-rw-r--r-- | dev-python/rpy/rpy-2.9.0.ebuild | 53 |
4 files changed, 131 insertions, 0 deletions
diff --git a/dev-python/rpy/Manifest b/dev-python/rpy/Manifest new file mode 100644 index 000000000000..3e70e41d75e0 --- /dev/null +++ b/dev-python/rpy/Manifest @@ -0,0 +1,5 @@ +DIST rpy2-2.6.2.tar.gz 171655 BLAKE2B f590e63dbbb6f5aa9f18d7475136005fa993d32af41e12a8e33fda0232a73d444f83341aa2dac3ec8300cf68de83e377d5f6caabb27b5d439af795126670e286 SHA512 7a060ccc26a03dc93d75edb85d92f1ab31af96ba140932ff8e699cd5855e6078b1e0ffceed135d32deb6c8f273ebcc8b02be38e9b8fc66778cc2adab5745f542 +DIST rpy2-2.9.0.tar.gz 193062 BLAKE2B 92492821856e516f8f620397cba2e0ffb17718156c7c3a0bc8df8e744f0adf1ea6006e5c762ba99aa142fe06d327a240bf5d616175e81a80d28a21265c9771aa SHA512 55be876fb7316a08f507f3a332ed29d71b52f733c1986482f141e694d66d0e01a51a9c3f0260f6fe0086d7bfbc1f58b678cda4570665e4f1ffdb120c793ef1b2 +EBUILD rpy-2.6.2.ebuild 1272 BLAKE2B 9fb524d995efdec86cc5a8c74108271c351088147aa0cc3ecdc7923837a253d3c5fd2231a1c5deb57e1345b6f069d0bd65a58559bf78eae8bd05fd187d3a3e07 SHA512 ffe9e3963adc64a4e5de4e77ffafae68ec4983d5e9466f83b94331ee6cee915c0e8c607abbc58facec613807bcc0b90fff28df521758b818a2cb019c4c2e691c +EBUILD rpy-2.9.0.ebuild 1235 BLAKE2B 75829181d85fbd8ac0855f341c94ed18fa58edb0c18ce649cbfde8798b6582aae2b91f4e45d7ba3780d73e90f6382efb342779b1ecad22396311fa9ad8748563 SHA512 78320e0935556d87647273a63899a0b8a84483ba963614b6fa5ff5a130698a99b3f04d61709b7a74559ed1b1fbee8078e3ef226fec5b2a2009f4676dfb9e61b6 +MISC metadata.xml 700 BLAKE2B 42fce60e594dbff010837724886940504b6d01545afbb9330238139855b4350247180cd05875935e9ce807808e02979733b000eb15558a7dd764b7e444a7b4c1 SHA512 f70b91d3a53220b814460d8836d0d04500b0c9fa62395a8264d81a8d952ec8f2090d20cfa55cd60ccd2698a947b61c6284c036abc298a9c18a7807302c15d8af diff --git a/dev-python/rpy/metadata.xml b/dev-python/rpy/metadata.xml new file mode 100644 index 000000000000..d11f5cf28f8c --- /dev/null +++ b/dev-python/rpy/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + 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. + </longdescription> + <upstream> + <remote-id type="pypi">rpy2</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/rpy/rpy-2.6.2.ebuild b/dev-python/rpy/rpy-2.6.2.ebuild new file mode 100644 index 000000000000..fd21854dc537 --- /dev/null +++ b/dev-python/rpy/rpy-2.6.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 flag-o-matic + +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" + +RDEPEND=" + >=dev-lang/R-3.1 + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/pandas-0.13.1[${PYTHON_USEDEP}] + virtual/python-singledispatch[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" +PDEPEND="dev-python/ipython[${PYTHON_USEDEP}]" + +# ggplot2 is an optional test dep but not in portage +S="${WORKDIR}/${MY_P}" + +# Tarball absent of doc files in doc folder +# https://bitbucket.org/rpy2/rpy2/issues/229 + +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 + ${PYTHON} -m 'rpy2.tests' || die +} 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..1c5b0ecc9c3b --- /dev/null +++ b/dev-python/rpy/rpy-2.9.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( 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="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}] + 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 +} |