# -*- 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.31
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  654fbe582a87083a64ec76ed87dc7d540e1772f8 \
                    sha256  9295ffa2fe6a0861e71f174306e456d371722d54e4da3cacbb65f39e92edd9a7 \
                    size    1597525

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
