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

name                py-sacrebleu
version             2.4.3
revision            0

license             Apache-2
maintainers         nomaintainer
platforms           {darwin any}
supported_archs     noarch

description         Hassle-free computation of shareable, comparable, and \
                    reproducible BLEU, chrF, and TER scores

long_description    SacreBLEU provides hassle-free computation of \
                    shareable, comparable, and reproducible BLEU \
                    scores. Inspired by Rico Sennrich's \
                    multi-bleu-detok.perl, it produces the official \
                    WMT scores but works with plain text. It also \
                    knows all the standard test sets and handles \
                    downloading, processing, and tokenization for you.

homepage            https://github.com/mjpost/sacrebleu

checksums           rmd160  512d693aa83906f4e3b46a279d1505fba08a6573 \
                    sha256  e734b1e0baeaea6ade0fefc9d23bac3df50bf15775d8b78edc108db63654192a \
                    size    1896720

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-portalocker

    variant ja description {Extras for Japanese language support} {
        depends_run-append \
                    port:py${python.version}-mecab-python3
    }

    test.run        yes
}
