Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions srcpkgs/ghostscript/patches/32bit.patch
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
--- a/base/gdevmpla.c
+++ b/base/gdevmpla.c
@@ -1954,12 +1954,12 @@ mem_planar_strip_copy_rop2(gx_device * d
int i;
int j;
intptr_t chunky_sraster;
- intptr_t nbytes;
+ int64_t nbytes;
byte **line_ptrs;
byte *sbuf, *buf;

chunky_sraster = sraster * (intptr_t)mdev->num_planar_planes;
- if (check_64bit_multiply(height, chunky_sraster, (size_t *)&nbytes) != 0)
+ if (check_64bit_multiply(height, chunky_sraster, &nbytes) != 0)
return gs_note_error(gs_error_undefinedresult);
buf = gs_alloc_bytes(mdev->memory, nbytes, "mem_planar_strip_copy_rop(buf)");
if (buf == NULL) {
@@ -2003,7 +2003,7 @@ mem_planar_strip_copy_rop2(gx_device * d
intptr_t i;
intptr_t chunky_t_raster;
int chunky_t_height;
- intptr_t nbytes;
+ int64_t nbytes;
byte **line_ptrs;
byte *tbuf, *buf;
gx_strip_bitmap newtex;
--- a/brotli/c/dec/decode.c
+++ b/brotli/c/dec/decode.c
@@ -434,10 +434,10 @@ static BROTLI_INLINE void PreloadSymbol(
Expand Down
15 changes: 4 additions & 11 deletions srcpkgs/ghostscript/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'ghostscript'
pkgname=ghostscript
version=10.06.0
version=10.08.0
revision=1
hostmakedepends="automake libtool pkg-config"
makedepends="$(vopt_if cups cups-devel) dbus-devel fontconfig-devel jasper-devel jbig2dec-devel
Expand All @@ -10,10 +10,9 @@ short_desc="Interpreter for the PostScript language"
maintainer="Orphaned <orphan@voidlinux.org>"
license="AGPL-3.0-or-later, CPL-1.0"
homepage="https://www.ghostscript.com/"
changelog="https://ghostscript.readthedocs.io/en/latest/News.html"
changelog="https://ghostscript.readthedocs.io/en/gs10.02.0/News.html"
changelog="https://ghostscript.readthedocs.io/en/gs${version}/News.html"
distfiles="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${version//./}/ghostscript-${version}.tar.xz"
checksum=64352648c2c081c8a9fb1a12dc1965e01ead7c57f58b72d1b54f6ef1cef3c561
checksum=c20492bc8ebb96c87fa2e52a0926e1cda8cde95d66145e018ac713fed5da38cf

CFLAGS=-fPIC

Expand All @@ -30,7 +29,7 @@ esac

pre_configure() {
# force it to use system libs.
rm -rf cups/libs expat freetype jbig2dec jpeg lcms2mt libpng openjpeg tiff zlib
rm -r cups/libs freetype jbig2dec jpeg lcms2mt libpng openjpeg tiff zlib

# add missing LDFLAGS
vsed -i 's/-L$(BINDIR)/& $(LDFLAGS)/g' base/unix-dll.mak
Expand Down Expand Up @@ -73,16 +72,10 @@ do_install() {
# install license
vlicense LICENSE

# remove unwanted localized man-pages
rm -rf ${DESTDIR}/usr/share/man/[^man1]*

# install libijs
cd ijs
make DESTDIR=${DESTDIR} install

# Remove conflicting files with cups-filters.
$(vopt_if cups 'rm -f ${DESTDIR}/usr/lib/cups/filter/{gstopxl,gstoraster}')

cd ..
# Install missing file
vinstall base/gserrors.h 644 usr/include/ghostscript
Expand Down
18 changes: 14 additions & 4 deletions srcpkgs/python3-fpdf2/template
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
# Template file for 'python3-fpdf2'
pkgname=python3-fpdf2
version=2.8.7
version=2.8.8
revision=1
build_style=python3-pep517
# python3-camelot is required for table extraction
# python3-endesive is needed for signing
# currently they're not packaged, so ignore them
# test_variable_font.py is broken with current fonttools
make_check_args="--ignore=test/table/test_table_extraction.py
--deselect=test/signing/test_sign.py
--deselect=test/fonts/test_variable_font.py"
hostmakedepends="python3-setuptools_scm python3-wheel fonttools"
depends="python3-defusedxml python3-Pillow fonttools"
checkdepends="$depends python3-pytest python3-pytest-cov python3-pypdf python3-qrcode
python3-Brotli python3-uharfbuzz python3-cryptography python3-lxml qpdf"
short_desc="Simple PDF generation for Python"
maintainer="Mateusz Sylwestrzak <slymattz@gmail.com>"
license="LGPL-3.0-only"
homepage="https://github.com/py-pdf/fpdf2"
distfiles="${PYPI_SITE}/f/fpdf2/fpdf2-${version}.tar.gz"
checksum=7060ccee5a9c7ab0a271fb765a36a23639f83ef8996c34e3d46af0a17ede57f9
homepage="https://py-pdf.github.io/fpdf2/index.html"
changelog="https://raw.githubusercontent.com/py-pdf/fpdf2/master/CHANGELOG.md"
distfiles="https://github.com/py-pdf/fpdf2/archive/refs/tags/${version}.tar.gz"
checksum=bb449d5b06f7a8ab5442d291ee2c40207be6d31317df0d331a81bb096d66a2e4
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Let ocrmypdf fall back to Ghostscript as pypdfium2 remains unpackaged
(see https://ocrmypdf.readthedocs.io/en/latest/cookbook.html#select-a-rasterizer).

--- a/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
+++ b/pyproject.toml 2026-09-17 18:16:45.395737431 +0200
@@ -22,7 +22,6 @@
# whose shape settled in 11 and is pinned by tests
"pluggy>=1",
"pydantic>=2.12.5",
- "pypdfium2>=5.0.0",
"rich>=13",
"typing-extensions>=4.12; python_version < '3.13'",
"uharfbuzz>=0.53.2",
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--- 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
+++ b/src/ocrmypdf/_exec/tesseract.py 2026-08-29 13:45:25.024584331 +0200
@@ -117,7 +117,7 @@


PROBE = ToolProbe(
- program='tesseract',
+ program='tesseract-ocr',
Expand All @@ -12,19 +12,18 @@
@@ -140,7 +140,7 @@
msg += output
return msg

- args_tess = ['tesseract', '--list-langs']
+ args_tess = ['tesseract-ocr', '--list-langs']
try:
proc = run(
args_tess,
@@ -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:

This file was deleted.

9 changes: 7 additions & 2 deletions srcpkgs/python3-ocrmypdf/template
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Template file for 'python3-ocrmypdf'
pkgname=python3-ocrmypdf
version=17.8.1
version=17.12.1
revision=1
build_style=python3-pep517
make_check_args="
--ignore=tests/test_pypdfium.py
--deselect=tests/test_rotation.py::test_rotated_skew_timeout[pypdfium]
--deselect=tests/test_rotation.py::test_rotate_deskew_ocr_timeout[pypdfium]
--deselect=tests/test_rotation.py::test_rasterize_rotates[pypdfium]
Expand All @@ -21,7 +22,11 @@ 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=6f72e4da5fd7805e5d677c0fc55ad380c70e1c7ad33dd9ce2402575194803e08
checksum=aca73a23a80cf2f46a4c15040b0035203dbf74054b7a0c3a7ee93b05abc555a6

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
make_check_args+=" --deselect=tests/test_helpers.py::test_malloc_trim_found_on_glibc"
fi

post_install() {
vcompletion misc/completion/ocrmypdf.bash bash ocrmypdf
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/python3-pikepdf/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'python3-pikepdf'
pkgname=python3-pikepdf
version=10.10.0
version=10.13.0.post1
revision=1
build_style=python3-pep517
hostmakedepends="ninja python3-scikit-build-core python3-nanobind"
Expand All @@ -14,7 +14,7 @@ license="MPL-2.0"
homepage="https://github.com/pikepdf/pikepdf"
changelog="https://raw.githubusercontent.com/pikepdf/pikepdf/main/docs/releasenotes/version${version%%.*}.md"
distfiles="${PYPI_SITE}/p/pikepdf/pikepdf-${version}.tar.gz"
checksum=9f134806b2fe608ccb21379a664ddcefeac3f6944100d343b350299d3c69754e
checksum=4b73f926ebae81f04bf14527af330bd00bb268be767e0f189f7c4c3e4ad7ae0a

export CMAKE_ARGS="-DPython_INCLUDE_DIR:PATH=${XBPS_CROSS_BASE}/${py3_inc}"

Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/python3-uharfbuzz/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'python3-uharfbuzz'
pkgname=python3-uharfbuzz
version=0.56.0
version=0.56.1
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools_scm python3-wheel python3-Cython python3-pkgconfig"
Expand All @@ -13,4 +13,4 @@ license="Apache-2.0"
homepage="https://github.com/harfbuzz/uharfbuzz"
changelog="https://github.com/harfbuzz/uharfbuzz/releases"
distfiles="${PYPI_SITE}/u/uharfbuzz/uharfbuzz-${version}.tar.gz"
checksum=77f4ad1c9f32f44cc6f0c0c4f98fab54587719c96c810a043d01669f704d3e0c
checksum=a0a6928ed66b166a931ebe5df9ac551b9c42983513030233dcd95b41fa827f97