mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
app-text/OCRmyPDF: add 12.6.0
Signed-off-by: James Beddek <telans@posteo.de>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST OCRmyPDF-12.0.2.tar.gz 7895055 BLAKE2B 4fab449f9edf8788c74773da0e73adca9dc686afcbc69d9d6263049044b202744244eab4f4d6e5596461c55d399320a5e7604c6a8080c0d6a05ea6df15314eac SHA512 8bc749353d88dd1e0b2fbd313ba45fa5bf79b70c0366bde21dbe457ce269d02bea64e797e73b823fe9c02b2bd18f181f6cea414306ab1470e244e4201f86781a
|
||||
DIST OCRmyPDF-12.6.0.tar.gz 7897200 BLAKE2B e183280e11414a7b2bedd339e971f1c74697d9847771e24592207e5bfe82af184544576c067856cdee9d8409bdca856e8aeb48c8e5b4e32154b69111fba2d775 SHA512 0792fccec7ecdfc93a02c4e29d0c88076c191aed3a2848c4db5d6b18ad4837a24e325dfc961aaa7c68407de7dd471e45e7b6389d6cf8f9465fe3892038696e97
|
||||
|
||||
58
app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild
Normal file
58
app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# Copyright 2020-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..8} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files"
|
||||
HOMEPAGE="https://github.com/jbarlow83/OCRmyPDF"
|
||||
SRC_URI="https://github.com/jbarlow83/OCRmyPDF/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# This uses *a lot* of RAM, I have 32gb and these tests tried to use it all
|
||||
RESTRICT="test"
|
||||
IUSE="jbig2enc"
|
||||
|
||||
RDEPEND="
|
||||
app-text/ghostscript-gpl
|
||||
app-text/tesseract
|
||||
app-text/unpaper
|
||||
dev-python/cffi[${PYTHON_USEDEP}]
|
||||
dev-python/coloredlogs[${PYTHON_USEDEP}]
|
||||
>=dev-python/pdfminer-six-20191110[${PYTHON_USEDEP}]
|
||||
<=dev-python/pdfminer-six-20201018[${PYTHON_USEDEP}]
|
||||
dev-python/pikepdf[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pluggy[${PYTHON_USEDEP}]
|
||||
dev-python/reportlab[${PYTHON_USEDEP}]
|
||||
dev-python/tqdm[${PYTHON_USEDEP}]
|
||||
media-gfx/img2pdf[${PYTHON_USEDEP}]
|
||||
media-gfx/pngquant
|
||||
media-libs/leptonica
|
||||
virtual/python-cffi[${PYTHON_USEDEP}]
|
||||
jbig2enc? ( media-libs/jbig2enc )
|
||||
"
|
||||
DEPEND="
|
||||
test? (
|
||||
dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
~dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx docs --no-autodoc
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
newbashcomp misc/completion/ocrmypdf.bash "${PN,,}"
|
||||
insinto /usr/share/fish/vendor_completions.d
|
||||
doins misc/completion/ocrmypdf.fish
|
||||
}
|
||||
Reference in New Issue
Block a user