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