Install this version:
emerge -a =app-text/ocrmypdf-17.13.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-text/ocrmypdf-17.13.0
Or alternatively:
emerge --autounmask-write -a =app-text/ocrmypdf-17.13.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 17.13.0 | 8 | ~amd64 | 0 |
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYPI_VERIFY_REPO="https://github.com/ocrmypdf/OCRmyPDF"
PYTHON_COMPAT=( python3_14 )
inherit distutils-r1 pypi shell-completion
DESCRIPTION="Add an OCR text layer to scanned PDF files"
HOMEPAGE="
https://pypi.org/project/ocrmypdf
https://github.com/ocrmypdf/OCRmyPDF
"
LICENSE="CC-BY-SA-2.5 CC-BY-SA-4.0 MIT MPL-2.0 ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="heif"
DEPEND="
app-text/unpaper
dev-python/uharfbuzz[${PYTHON_USEDEP}]
media-gfx/pngquant
media-libs/jbig2enc
heif? ( dev-python/pillow-heif[${PYTHON_USEDEP}] )
"
RDEPEND="
${DEPEND}
app-text/ghostscript-gpl
app-text/pdfminer[${PYTHON_USEDEP}]
app-text/tesseract[jpeg,tiff,png,webp]
dev-python/fpdf2[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pikepdf[${PYTHON_USEDEP}]
dev-python/pillow[jpeg2k,lcms,${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/rich[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
dev-python/uharfbuzz[${PYTHON_USEDEP}]
>=media-gfx/img2pdf-0.5[${PYTHON_USEDEP}]
"
BDEPEND="
${DEPEND}
dev-python/hatch-vcs[${PYTHON_USEDEP}]
test? (
dev-python/coverage[${PYTHON_USEDEP}]
app-text/tessdata_fast[l10n_de,l10n_en]
dev-python/hypothesis[${PYTHON_USEDEP}]
dev-python/python-xmp-toolkit[${PYTHON_USEDEP}]
dev-python/reportlab[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( hypothesis pytest-cov pytest-xdist )
EPYTEST_XDIST="yes"
EPYTEST_IGNORE=(
# Tests shell completion for bash and fish,
# if not run inside docker.
tests/test_completion.py
)
EPYTEST_DESELECT=(
# Fails if Tesseract was compiled with Clang
tests/test_rotation.py::test_rotate_deskew_ocr_timeout
# XFAIL reason should be a string, not a tuple
tests/test_metadata.py::test_malformed_docinfo
)
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinx-issues dev-python/sphinx-rtd-theme
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
python_test() {
epytest -o addopts=
}
src_install() {
distutils-r1_src_install
newbashcomp misc/completion/ocrmypdf.bash ocrmypdf
dofishcomp misc/completion/ocrmypdf.fish
}
Manage flags for this package:
euse -i <flag> -p app-text/ocrmypdf |
euse -E <flag> -p app-text/ocrmypdf |
euse -D <flag> -p app-text/ocrmypdf
app-text/unpaper dev-python/uharfbuzz[] media-gfx/pngquant media-libs/jbig2enc heif? ( dev-python/pillow-heif[] )
app-text/unpaper dev-python/uharfbuzz[] media-gfx/pngquant media-libs/jbig2enc heif? ( dev-python/pillow-heif[] ) app-text/ghostscript-gpl app-text/pdfminer[] app-text/tesseract[jpeg,tiff,png,webp] dev-python/fpdf2[] dev-python/packaging[] dev-python/pikepdf[] dev-python/pillow[jpeg2k,lcms,] dev-python/pydantic[] dev-python/rich[] dev-python/typing-extensions[] dev-python/uharfbuzz[] >=media-gfx/img2pdf-0.5[]
app-text/unpaper dev-python/uharfbuzz[] media-gfx/pngquant media-libs/jbig2enc heif? ( dev-python/pillow-heif[] ) dev-python/hatch-vcs[] test? ( dev-python/coverage[] app-text/tessdata_fast[l10n_de,l10n_en] dev-python/hypothesis[] dev-python/python-xmp-toolkit[] dev-python/reportlab[] )