# -*- 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
PortGroup                       github 1.0

github.setup        madmaze pytesseract 0.3.2 v

name                py-pytesseract

python.versions     37 38

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

checksums           rmd160  575f2587a9e1e9285384f3335fa3ef348c9468f4 \
                    sha256  8d44012e14009e229d0cd2166c2ce51e1db8bdbd5a92580f94e17f1ef4c0bb9f \
                    size    331627

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

    depends_run-append \
        port:tesseract

    livecheck.type        none
}
