# -*- 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.2 revision 0 categories textproc homepage https://github.com/ocrmypdf/OCRmyPDF maintainers {@akierig fastmail.de:akierig} openmaintainer checksums rmd160 6defb29c7a9a844553212aa2a7268906d5248881 \ sha256 dd08d32b3d989ba6d7b9f0dcebe3c1bcc049d06609916ac476c1f985b7605111 \ size 6691821 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"