# -*- 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 ocrmypdf version 16.4.3 revision 0 categories textproc homepage https://github.com/ocrmypdf/OCRmyPDF maintainers {@akierig fastmail.de:akierig} openmaintainer checksums rmd160 5b2f524ed6e5d03954aaafc491549e8e76d92b2d \ sha256 16116ca548bfb0c6f6e7c675e289449584a5024760f3ca0c7ecaa7685f5109ba \ size 6724079 description ${name} adds an OCR text layer to scanned PDF files, \ allowing them to be searched long_description {*}${description}. ${name} also supports plugins \ that enable customization of its processing steps, \ and it is highly tolerant of PDFs containing scanned \ images and “born digital” content that doesn’t require text recognition. supported_archs noarch platforms {darwin any} license MPL-2 variant python310 conflicts python311 python312 description "Use Python 3.10" {} variant python311 conflicts python310 python312 description "Use Python 3.11" {} variant python312 conflicts python310 python311 description "Use Python 3.12" {} if {[variant_isset python310]} { python.default_version 310 } elseif {[variant_isset python311]} { python.default_version 311 } else { default_variants +python312 python.default_version 312 } depends_build-append \ port:py${python.version}-setuptools_scm depends_lib-append port:ghostscript \ port:img2pdf \ port:jbig2enc \ port:libpng \ port:pngquant \ port:qpdf \ port:tesseract \ port:unpaper \ port:py${python.version}-deprecation \ port:py${python.version}-freetype \ port:py${python.version}-packaging \ port:py${python.version}-pdfminer \ port:py${python.version}-Pillow \ port:py${python.version}-pikepdf \ port:py${python.version}-pluggy \ port:py${python.version}-pybind11 \ port:py${python.version}-pyheif \ port:py${python.version}-rich notes " You will need to install the tesseract language ports of your choice. e.g., to add English and German support: port install tesseract-eng tesseract-deu"