# -*- 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.36.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  8783cc619d97d2847a0d0f611923c610bd9adaa3 \
                    sha256  f48c2174c27d8cf13731447dd635d15bbe83216670a8d12dbfe6f06b236bbd2f \
                    size    1637016

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
