# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           R 1.0

# Revert to GitHub once updated there.
R.setup             cran rstudio reticulate 1.35.0
revision            0
categories-append   python
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             Apache-2
description         Interface to Python
long_description    {*}${description}
homepage            https://rstudio.github.io/reticulate
checksums           rmd160  8266e6355be8d78a999682f085418c6a06be574d \
                    sha256  5e13f302859a265c198bb12d6e237b7ea35c2631661e90f5c7a4c378d67f2319 \
                    size    1624633

set py_ver          3.11
set py_ver_nodot    [string map {. {}} ${py_ver}]
depends_run-append  port:python${py_ver_nodot}

depends_lib-append  port:R-here \
                    port:R-jsonlite \
                    port:R-png \
                    port:R-rappdirs \
                    port:R-Rcpp \
                    port:R-RcppTOML \
                    port:R-rlang \
                    port:R-withr

depends_test-append port:R-callr \
                    port:R-cli \
                    port:R-glue \
                    port:R-knitr \
                    port:R-pillar \
                    port:R-rmarkdown \
                    port:R-testthat

test.run            yes
