# -*- 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-kraken
version             4.2.0
license             Apache-2
maintainers         nomaintainer
supported_archs     noarch
platforms           {darwin any}

description         OCR/HTR engine for all the languages
long_description    kraken is a turn-key OCR system optimized for \
                    historical and non-Latin script material.

homepage            https://kraken.re/

checksums           rmd160  77e316855d8cb35895aa21a55cde130f24302bf6 \
                    sha256  243364d00654abd3a24c9705712e726b562beae70aef869a469f86a7dddb5183 \
                    size    11492471

python.versions     310

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-pbr \
                    port:py${python.version}-setuptools

    depends_run-append \
                    port:py${python.version}-jsonschema \
                    port:py${python.version}-lxml \
                    port:py${python.version}-requests \
                    port:py${python.version}-click \
                    port:py${python.version}-numpy \
                    port:py${python.version}-Pillow \
                    port:py${python.version}-regex \
                    port:py${python.version}-scipy \
                    port:py${python.version}-protobuf3 \
                    port:py${python.version}-coremltools \
                    port:py${python.version}-jinja2 \
                    port:py${python.version}-bidi \
                    port:py${python.version}-torchvision \
                    port:py${python.version}-pytorch \
                    port:py${python.version}-scikit-image\
                    port:py${python.version}-shapely\
                    port:py${python.version}-pyarrow \
                    port:py${python.version}-pytorch-lightning \
                    port:py${python.version}-rich
}
