# -*- 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-pytesseract
version             0.3.13
revision            0

python.versions     310 311 312 313

platforms           {darwin any}
supported_archs     noarch
maintainers         {danchr @danchr} openmaintainer
license             Apache-2
categories-append   graphics
description         Python-tesseract is a python wrapper for Google's Tesseract-OCR
long_description    {*}${description}

homepage            https://github.com/madmaze/pytesseract

checksums           rmd160  6a663ff10ddb36122f65417a32d77074b812ce60 \
                    sha256  4bf5f880c99406f52a3cfc2633e42d9dc67615e69d8a509d74867d3baddb5db9 \
                    size    17689

if {${name} ne ${subport}} {
    depends_lib-append  \
        port:py${python.version}-Pillow \
        port:py${python.version}-packaging

    depends_run-append \
        port:tesseract
}
