# -*- 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-spaCy-models
version             2.3.2
revision            0

platforms           {darwin any}
supported_archs     noarch

license             MIT

maintainers         nomaintainer

description         Models for the spaCy Natural Language Processing (NLP) library
long_description    {*}${description}

homepage            https://spacy.io/models

python.versions     310

distfiles
build {}

if {${name} ne ${subport}} {

    depends_build-append \
                    port:py${python.version}-packaging \
                    port:py${python.version}-typer \
                    port:py${python.version}-jinja2

    depends_lib-append \
                    port:py${python.version}-spaCy

    destroot.cmd    ${python.bin}
    destroot.pre_args
    destroot.args   -m spacy download en

}

livecheck.type none
