commit:     b1440e106cd0987260ae0d7ba5c55b42a141a2ab
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Apr 19 13:44:25 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Apr 19 18:31:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b1440e10

dev-R/reticulate: new package

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-R/reticulate/Manifest               |  1 +
 dev-R/reticulate/metadata.xml           | 17 +++++++++++
 dev-R/reticulate/reticulate-1.24.ebuild | 54 +++++++++++++++++++++++++++++++++
 3 files changed, 72 insertions(+)

diff --git a/dev-R/reticulate/Manifest b/dev-R/reticulate/Manifest
new file mode 100644
index 000000000..a813b112f
--- /dev/null
+++ b/dev-R/reticulate/Manifest
@@ -0,0 +1 @@
+DIST reticulate_1.24.tar.gz 1537517 BLAKE2B 
8e2da502c5f9bd87a5c42261e2d456bc08a826c5afe690332a15d8d4c5d76a1488040ce3a436a1ce8e9eb6b5df0138ce11f32d4f46995f4fe806e5cf0f618125
 SHA512 
f6bcbb97162874b776adf0baa1cbd5723f232d6e15fe678b256af38b6287aa40d7266903ac3201d4e6f72b2eb0df85ef9854c4aa3dd07f02d7de2bf8b619397c

diff --git a/dev-R/reticulate/metadata.xml b/dev-R/reticulate/metadata.xml
new file mode 100644
index 000000000..7da3f7fc2
--- /dev/null
+++ b/dev-R/reticulate/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <description>co-maintainers welcome</description>
+               <email>[email protected]</email>
+               <name>Alessandro Barbieri</name>
+       </maintainer>
+       <longdescription>
+               Interface to 'Python' // Interface to 'Python' modules, classes,
+               and functions. When calling into 'Python', R data types are
+               automatically converted to their equivalent 'Python' types.
+               When values are returned from 'Python' to R they are converted
+               back to R types. Compatible with all versions of 'Python' =
+               2.7.
+       </longdescription>
+</pkgmetadata>

diff --git a/dev-R/reticulate/reticulate-1.24.ebuild 
b/dev-R/reticulate/reticulate-1.24.ebuild
new file mode 100644
index 000000000..0cc67c0b6
--- /dev/null
+++ b/dev-R/reticulate/reticulate-1.24.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+
+inherit python-single-r1 R-packages
+
+DESCRIPTION='Interface to Python'
+HOMEPAGE="
+       https://rstudio.github.io/reticulate/
+       https://github.com/rstudio/reticulate
+       https://cran.r-project.org/package=reticulate
+"
+
+KEYWORDS="~amd64"
+LICENSE='Apache-2.0'
+
+DEPEND="
+       dev-R/jsonlite
+       dev-R/rappdirs
+       >=dev-R/Rcpp-0.12.7
+       >=dev-lang/R-3.0
+       dev-R/RcppTOML
+       virtual/Matrix
+       dev-R/here
+       dev-R/png
+       dev-R/withr
+"
+RDEPEND="
+       ${DEPEND}
+       ${PYTHON_DEPS}
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_install() {
+       R-packages_src_install
+
+       python_optimize 
"/usr/$(get_libdir)/R/site-library/reticulate/python/rpytools"
+
+       # enforce python implementation
+       cat "RETICULATE_PYTHON=\"${PYTHON}\"" > "${T}/99reticulate" || die
+       doenvd "${T}/99reticulate"
+}
+
+SUGGESTED_PACKAGES="
+       dev-R/callr
+       dev-R/knitr
+       dev-R/rlang
+       dev-R/rmarkdown
+       dev-R/testthat
+"

Reply via email to