Skip to content

Commit f38a3cc

Browse files
committed
python3-ocrmypdf: update to 17.5.0
1 parent 96a2039 commit f38a3cc

2 files changed

Lines changed: 28 additions & 19 deletions

File tree

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
1-
--- a/src/ocrmypdf/_exec/tesseract.py 2025-02-27 00:16:18.000000000 +0100
2-
+++ b/src/ocrmypdf/_exec/tesseract.py 2025-03-17 11:56:25.146770854 +0100
3-
@@ -95,7 +95,7 @@
4-
5-
6-
def version() -> Version:
7-
- return TesseractVersion(get_version('tesseract', regex=r'tesseract\s(.+)'))
8-
+ return TesseractVersion(get_version('tesseract-ocr', regex=r'tesseract\s(.+)'))
9-
10-
11-
def has_thresholding() -> bool:
12-
@@ -113,7 +113,7 @@
1+
--- a/src/ocrmypdf/_exec/tesseract.py 2020-02-02 01:00:00.000000000 +0100
2+
+++ b/src/ocrmypdf/_exec/tesseract.py 2026-05-28 15:12:12.345883573 +0200
3+
@@ -117,7 +117,7 @@
4+
5+
6+
PROBE = ToolProbe(
7+
- program='tesseract',
8+
+ program='tesseract-ocr',
9+
version_regex=r'tesseract\s(.+)',
10+
version_cls=TesseractVersion,
11+
)
12+
@@ -140,7 +140,7 @@
1313
msg += output
1414
return msg
15-
15+
1616
- args_tess = ['tesseract', '--list-langs']
1717
+ args_tess = ['tesseract-ocr', '--list-langs']
1818
try:
1919
proc = run(
2020
args_tess,
21-
@@ -135,7 +135,7 @@
22-
23-
21+
@@ -162,7 +162,7 @@
22+
23+
2424
def tess_base_args(langs: list[str], engine_mode: int | None) -> list[str]:
2525
- args = ['tesseract']
2626
+ args = ['tesseract-ocr']
2727
if langs:
2828
args.extend(['-l', '+'.join(langs)])
2929
if engine_mode is not None:
30+

srcpkgs/python3-ocrmypdf/template

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
# Template file for 'python3-ocrmypdf'
22
pkgname=python3-ocrmypdf
3-
version=16.13.0
3+
version=17.5.0
44
revision=1
55
build_style=python3-pep517
66
hostmakedepends="hatchling hatch-vcs"
77
depends="python3-deprecation img2pdf python3-packaging python3-pdfminer.six
88
python3-pikepdf python3-Pillow python3-pluggy python3-reportlab python3-rich
9-
python3-pillow_heif tesseract-ocr ghostscript unpaper pngquant jbig2enc qpdf"
9+
python3-pillow_heif tesseract-ocr ghostscript unpaper pngquant jbig2enc qpdf
10+
python3-fpdf2 python3-pydantic python3-uharfbuzz"
1011
short_desc="Add OCR text layer to scanned PDF files"
1112
maintainer="Mateusz Sylwestrzak <slymattz@gmail.com>"
1213
license="MPL-2.0"
1314
homepage="https://github.com/ocrmypdf/OCRmyPDF"
15+
changelog="https://raw.githubusercontent.com/ocrmypdf/OCRmyPDF/main/docs/releasenotes/version${version%%.*}.md"
1416
distfiles="${PYPI_SITE}/o/ocrmypdf/ocrmypdf-${version}.tar.gz"
15-
checksum=29d37e915234ce717374863a9cc5dd32d29e063dfe60c51380dda71254c88248
17+
checksum=b4865cd5578614b69e759862035d66fa0a31c20bdad35dfa03b9322751f8d552
18+
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).
19+
20+
post_install() {
21+
vcompletion misc/completion/ocrmypdf.bash bash ocrmypdf
22+
vcompletion misc/completion/ocrmypdf.fish fish ocrmypdf
23+
}

0 commit comments

Comments
 (0)