# -*- 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.40.0
revision            0
categories-append   python
maintainers         nomaintainer
license             Apache-2
description         Interface to Python
long_description    {*}${description}
homepage            https://rstudio.github.io/reticulate
checksums           rmd160  8dbab9b82bba2f1edadb7d5e3c1709b91acb42e3 \
                    sha256  cdfd7b966480008e097141c271a826f25906117d7adb3e168a302450342a28d8 \
                    size    1640550

set py_ver          3.12
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
