From f38a3cc125e24b73db1307fa6ee5cfc21de3ca35 Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Fri, 23 Jan 2026 17:45:02 +0100 Subject: [PATCH 1/6] python3-ocrmypdf: update to 17.5.0 --- .../patches/tesseract_binary_name_fixup.patch | 33 ++++++++++--------- srcpkgs/python3-ocrmypdf/template | 14 ++++++-- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/srcpkgs/python3-ocrmypdf/patches/tesseract_binary_name_fixup.patch b/srcpkgs/python3-ocrmypdf/patches/tesseract_binary_name_fixup.patch index daf6f9224c2c64..417375d0189aab 100644 --- a/srcpkgs/python3-ocrmypdf/patches/tesseract_binary_name_fixup.patch +++ b/srcpkgs/python3-ocrmypdf/patches/tesseract_binary_name_fixup.patch @@ -1,29 +1,30 @@ ---- a/src/ocrmypdf/_exec/tesseract.py 2025-02-27 00:16:18.000000000 +0100 -+++ b/src/ocrmypdf/_exec/tesseract.py 2025-03-17 11:56:25.146770854 +0100 -@@ -95,7 +95,7 @@ - - - def version() -> Version: -- return TesseractVersion(get_version('tesseract', regex=r'tesseract\s(.+)')) -+ return TesseractVersion(get_version('tesseract-ocr', regex=r'tesseract\s(.+)')) - - - def has_thresholding() -> bool: -@@ -113,7 +113,7 @@ +--- a/src/ocrmypdf/_exec/tesseract.py 2020-02-02 01:00:00.000000000 +0100 ++++ b/src/ocrmypdf/_exec/tesseract.py 2026-05-28 15:12:12.345883573 +0200 +@@ -117,7 +117,7 @@ + + + PROBE = ToolProbe( +- program='tesseract', ++ program='tesseract-ocr', + version_regex=r'tesseract\s(.+)', + version_cls=TesseractVersion, + ) +@@ -140,7 +140,7 @@ msg += output return msg - + - args_tess = ['tesseract', '--list-langs'] + args_tess = ['tesseract-ocr', '--list-langs'] try: proc = run( args_tess, -@@ -135,7 +135,7 @@ - - +@@ -162,7 +162,7 @@ + + def tess_base_args(langs: list[str], engine_mode: int | None) -> list[str]: - args = ['tesseract'] + args = ['tesseract-ocr'] if langs: args.extend(['-l', '+'.join(langs)]) if engine_mode is not None: + diff --git a/srcpkgs/python3-ocrmypdf/template b/srcpkgs/python3-ocrmypdf/template index 0ebcadb0bdcb87..43479688a17ab5 100644 --- a/srcpkgs/python3-ocrmypdf/template +++ b/srcpkgs/python3-ocrmypdf/template @@ -1,15 +1,23 @@ # Template file for 'python3-ocrmypdf' pkgname=python3-ocrmypdf -version=16.13.0 +version=17.5.0 revision=1 build_style=python3-pep517 hostmakedepends="hatchling hatch-vcs" depends="python3-deprecation img2pdf python3-packaging python3-pdfminer.six python3-pikepdf python3-Pillow python3-pluggy python3-reportlab python3-rich - python3-pillow_heif tesseract-ocr ghostscript unpaper pngquant jbig2enc qpdf" + python3-pillow_heif tesseract-ocr ghostscript unpaper pngquant jbig2enc qpdf + python3-fpdf2 python3-pydantic python3-uharfbuzz" short_desc="Add OCR text layer to scanned PDF files" maintainer="Mateusz Sylwestrzak " license="MPL-2.0" homepage="https://github.com/ocrmypdf/OCRmyPDF" +changelog="https://raw.githubusercontent.com/ocrmypdf/OCRmyPDF/main/docs/releasenotes/version${version%%.*}.md" distfiles="${PYPI_SITE}/o/ocrmypdf/ocrmypdf-${version}.tar.gz" -checksum=29d37e915234ce717374863a9cc5dd32d29e063dfe60c51380dda71254c88248 +checksum=b4865cd5578614b69e759862035d66fa0a31c20bdad35dfa03b9322751f8d552 +noverifypydeps=yes # pypdfium2 and pdfium remain unpackaged, so let ocrmypdf fall back to Ghostscript (see https://ocrmypdf.readthedocs.io/en/latest/cookbook.html#select-a-rasterizer). + +post_install() { + vcompletion misc/completion/ocrmypdf.bash bash ocrmypdf + vcompletion misc/completion/ocrmypdf.fish fish ocrmypdf +} From 52398756b2215403fd016c68cbfa0d749e2c0276 Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Fri, 23 Jan 2026 17:45:58 +0100 Subject: [PATCH 2/6] New package: python3-fpdf2-2.8.7 --- srcpkgs/python3-fpdf2/template | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/python3-fpdf2/template diff --git a/srcpkgs/python3-fpdf2/template b/srcpkgs/python3-fpdf2/template new file mode 100644 index 00000000000000..c9a60b2929c9b4 --- /dev/null +++ b/srcpkgs/python3-fpdf2/template @@ -0,0 +1,13 @@ +# Template file for 'python3-fpdf2' +pkgname=python3-fpdf2 +version=2.8.7 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools_scm python3-wheel fonttools" +depends="python3-defusedxml python3-Pillow fonttools" +short_desc="Simple PDF generation for Python" +maintainer="Mateusz Sylwestrzak " +license="LGPL-3.0-only" +homepage="https://github.com/py-pdf/fpdf2" +distfiles="${PYPI_SITE}/f/fpdf2/fpdf2-${version}.tar.gz" +checksum=7060ccee5a9c7ab0a271fb765a36a23639f83ef8996c34e3d46af0a17ede57f9 From 3cec871066a81b1df3606d0bfa092301b224b317 Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Fri, 23 Jan 2026 17:47:10 +0100 Subject: [PATCH 3/6] New package: python3-uharfbuzz-0.54.1 --- srcpkgs/python3-uharfbuzz/template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/python3-uharfbuzz/template diff --git a/srcpkgs/python3-uharfbuzz/template b/srcpkgs/python3-uharfbuzz/template new file mode 100644 index 00000000000000..d5e1393ed1aff2 --- /dev/null +++ b/srcpkgs/python3-uharfbuzz/template @@ -0,0 +1,14 @@ +# Template file for 'python3-uharfbuzz' +pkgname=python3-uharfbuzz +version=0.54.1 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools_scm python3-wheel python3-Cython python3-pkgconfig" +makedepends="python3-devel" +depends="python3" +short_desc="Streamlined Cython bindings for the harfbuzz shaping engine" +maintainer="Mateusz Sylwestrzak " +license="Apache-2.0" +homepage="https://github.com/harfbuzz/uharfbuzz" +distfiles="${PYPI_SITE}/u/uharfbuzz/uharfbuzz-${version}.tar.gz" +checksum=ded760c284c686f1f17f5c4bf44527857ef488b7f0aebceae4c1ef1903ddddb3 From bb06890efe01b3e4f43e1575aeadc3d6962fe40a Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Thu, 26 Mar 2026 20:47:29 +0100 Subject: [PATCH 4/6] img2pdf: update to 0.6.3 --- srcpkgs/img2pdf/template | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template index d026e15adb85b9..77a12972e4d49e 100644 --- a/srcpkgs/img2pdf/template +++ b/srcpkgs/img2pdf/template @@ -1,14 +1,22 @@ # Template file for 'img2pdf' pkgname=img2pdf -version=0.6.1 -revision=2 -build_style=python3-module -hostmakedepends="python3-pikepdf python3-setuptools" -depends="colord python3-pdfrw python3-pikepdf python3-Pillow python3-tkinter" +version=0.6.3 +revision=1 +build_style=python3-pep517 +make_check_args="-k not(miff_cmyk)" +hostmakedepends="python3-flit_core" +depends="python3-pikepdf python3-Pillow" +checkdepends="python3-pytest python3-numpy python3-scipy ImageMagick poppler + ghostscript mupdf-tools netpbm exiftool colord ${depends}" short_desc="Lossless conversion of raster images to PDF" maintainer="Orphaned " -license="GPL-3.0-or-later" +license="LGPL-3.0-or-later" homepage="https://gitlab.mister-muffin.de/josch/img2pdf" distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz" -checksum=306e279eb832bc159d7d6294b697a9fbd11b4be1f799b14b3b2174fb506af289 -make_check=no # need to patch out some bitdepth checks +checksum=219518020f5bd242bdc46493941ea3f756f664c2e86f2454721e74353f58cd95 + +case "$XBPS_TARGET_MACHINE" in + i686) + make_check=no # 70 errors on this arch + ;; +esac From e46f4a7589c6fc01b657e5cc14c75c33f2215085 Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Thu, 26 Mar 2026 20:48:02 +0100 Subject: [PATCH 5/6] python3-pikepdf: update to 10.7.1 --- .../remove_pytest-xdist_dependency.patch | 19 ------------------- srcpkgs/python3-pikepdf/template | 15 ++++++++++++--- 2 files changed, 12 insertions(+), 22 deletions(-) delete mode 100644 srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch diff --git a/srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch b/srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch deleted file mode 100644 index ea844d5e4d7c4a..00000000000000 --- a/srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -35,7 +35,7 @@ - ''' - - [tool.cibuildwheel] --test-command = "pytest -nauto {project}/tests" -+test-command = "pytest {project}/tests" - test-extras = "test" - skip = "cp310-*" - test-skip = "*_arm64 *_universal2:arm64" -@@ -82,7 +82,6 @@ - minversion = "6.0" - norecursedirs = ["lib", ".pc", ".git", "venv"] - testpaths = ["tests"] --addopts = "-n auto" - - [tool.coverage.run] - concurrency = ["multiprocessing"] diff --git a/srcpkgs/python3-pikepdf/template b/srcpkgs/python3-pikepdf/template index 442b397035b7d6..ee27a9b10a019d 100644 --- a/srcpkgs/python3-pikepdf/template +++ b/srcpkgs/python3-pikepdf/template @@ -1,9 +1,10 @@ # Template file for 'python3-pikepdf' pkgname=python3-pikepdf -version=10.1.0 +version=10.7.1 revision=1 build_style=python3-pep517 -hostmakedepends="python3-pybind11 python3-wheel" +hostmakedepends="python3-pybind11 python3-wheel python3-scikit-build-core + ninja python3-nanobind" makedepends="libqpdf-devel python3-pybind11" depends="jbig2dec python3-deprecated python3-lxml python3-packaging python3-Pillow python3-setuptools" @@ -16,4 +17,12 @@ license="MPL-2.0" homepage="https://github.com/pikepdf/pikepdf" changelog="https://raw.githubusercontent.com/pikepdf/pikepdf/master/docs/releasenotes/version${version%%.*}.rst" distfiles="${PYPI_SITE}/p/pikepdf/pikepdf-${version}.tar.gz" -checksum=d75778283c354580a462d31bd4334f6ba92225e41ccd8bb949ec6e98a23d4eb2 +checksum=0fcaf7dd06a1b11940dabb2648cdaf8413216f2d2e883b3ebd8f6a8ea0893479 + +if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then + case "$XBPS_TARGET_MACHINE" in + x86_64*|i686) + make_check_args="-k not((test_save_to_dev_null)or(test_repr_stream))" + ;; + esac +fi From acb560f62a5a7c06d18e2c7cb1677ff1d465df02 Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Tue, 21 Apr 2026 12:33:16 +0200 Subject: [PATCH 6/6] jbig2enc: update to 0.31 --- srcpkgs/jbig2enc/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/jbig2enc/template b/srcpkgs/jbig2enc/template index 0a998f9b4cc36f..360c458f5bc526 100644 --- a/srcpkgs/jbig2enc/template +++ b/srcpkgs/jbig2enc/template @@ -1,16 +1,16 @@ # Template file for 'jbig2enc' pkgname=jbig2enc -version=0.30 +version=0.31 revision=1 build_style=gnu-configure -hostmakedepends="automake libtool" +hostmakedepends="automake libtool pkg-config" makedepends="leptonica-devel zlib-devel" short_desc="JBIG2 Encoder" maintainer="Mateusz Sylwestrzak " license="Apache-2.0" homepage="https://github.com/agl/jbig2enc" distfiles="https://github.com/agl/jbig2enc/archive/refs/tags/${version}.tar.gz" -checksum=4468442f666edc2cc4d38b11cde2123071a94edc3b403ebe60eb20ea3b2cc67b +checksum=35c255e44a9b1c4cbe27d2c84594a43d6666645156a2d186ba60f8832566141d pre_configure() { ./autogen.sh