# -*- 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

# GitHub has a bit newer version, but avoid upgrading until this is resolved:
# https://github.com/uribo/sudachir/issues/8
R.setup             cran uribo sudachir 0.1.0
revision            1
categories-append   textproc japanese
maintainers         nomaintainer
license             Apache-2
description         R interface to Sudachi, a Japanese morphological analyzer
long_description    {*}${description}
homepage            https://uribo.github.io/sudachir
checksums           rmd160  be1072407cd2a6c6d2db51ca24ccc99a17e88a2f \
                    sha256  cbb135132982695f62ad656c67a86e749e3e7292afb7eea3433f433f18003e27 \
                    size    60901
supported_archs     noarch
platforms           {darwin any}

depends_lib-append  port:R-cli \
                    port:R-dplyr \
                    port:R-glue \
                    port:R-magrittr \
                    port:R-purrr \
                    port:R-rlang \
                    port:R-reticulate \
                    port:R-tibble \
                    port:R-tidyselect

# Use the same Python which R-reticulate uses:
depends_run-append  port:python311

depends_test-append port:R-roxygen2 \
                    port:R-rstudioapi \
                    port:R-testthat

test.run            yes
