# -*- 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.6.1 revision 0 categories textproc homepage https://github.com/ocrmypdf/OCRmyPDF maintainers {@akierig fastmail.de:akierig} openmaintainer checksums rmd160 aa933da5586749c9f254041a885d6cdf48540eda \ sha256 c5c86223aa7f860734ce5db84975bbca223251357e1a6160291ff64019aee185 \ size 6690095 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}-hatchling \ port:py${python.version}-hatch-vcs 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"