Gentoo Archives: gentoo-commits

From: Theo Anderson <telans@××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-text/OCRmyPDF/
Date: Mon, 04 Oct 2021 08:11:34
Message-Id: 1633333904.2269a56bdffe5e5ff7ba7de5d628482b453c6650.telans@gentoo
1 commit: 2269a56bdffe5e5ff7ba7de5d628482b453c6650
2 Author: James Beddek <telans <AT> posteo <DOT> de>
3 AuthorDate: Mon Oct 4 07:51:44 2021 +0000
4 Commit: Theo Anderson <telans <AT> posteo <DOT> de>
5 CommitDate: Mon Oct 4 07:51:44 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2269a56b
7
8 app-text/OCRmyPDF: add 12.6.0
9
10 Signed-off-by: James Beddek <telans <AT> posteo.de>
11
12 app-text/OCRmyPDF/Manifest | 1 +
13 app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild | 58 ++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/app-text/OCRmyPDF/Manifest b/app-text/OCRmyPDF/Manifest
17 index 1c431256e..ad570a2cb 100644
18 --- a/app-text/OCRmyPDF/Manifest
19 +++ b/app-text/OCRmyPDF/Manifest
20 @@ -1 +1,2 @@
21 DIST OCRmyPDF-12.0.2.tar.gz 7895055 BLAKE2B 4fab449f9edf8788c74773da0e73adca9dc686afcbc69d9d6263049044b202744244eab4f4d6e5596461c55d399320a5e7604c6a8080c0d6a05ea6df15314eac SHA512 8bc749353d88dd1e0b2fbd313ba45fa5bf79b70c0366bde21dbe457ce269d02bea64e797e73b823fe9c02b2bd18f181f6cea414306ab1470e244e4201f86781a
22 +DIST OCRmyPDF-12.6.0.tar.gz 7897200 BLAKE2B e183280e11414a7b2bedd339e971f1c74697d9847771e24592207e5bfe82af184544576c067856cdee9d8409bdca856e8aeb48c8e5b4e32154b69111fba2d775 SHA512 0792fccec7ecdfc93a02c4e29d0c88076c191aed3a2848c4db5d6b18ad4837a24e325dfc961aaa7c68407de7dd471e45e7b6389d6cf8f9465fe3892038696e97
23
24 diff --git a/app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild b/app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild
25 new file mode 100644
26 index 000000000..35a9ead06
27 --- /dev/null
28 +++ b/app-text/OCRmyPDF/OCRmyPDF-12.6.0.ebuild
29 @@ -0,0 +1,58 @@
30 +# Copyright 2020-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{7..8} )
36 +DISTUTILS_USE_SETUPTOOLS=rdepend
37 +
38 +inherit bash-completion-r1 distutils-r1
39 +
40 +DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files"
41 +HOMEPAGE="https://github.com/jbarlow83/OCRmyPDF"
42 +SRC_URI="https://github.com/jbarlow83/OCRmyPDF/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="MPL-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +
48 +# This uses *a lot* of RAM, I have 32gb and these tests tried to use it all
49 +RESTRICT="test"
50 +IUSE="jbig2enc"
51 +
52 +RDEPEND="
53 + app-text/ghostscript-gpl
54 + app-text/tesseract
55 + app-text/unpaper
56 + dev-python/cffi[${PYTHON_USEDEP}]
57 + dev-python/coloredlogs[${PYTHON_USEDEP}]
58 + >=dev-python/pdfminer-six-20191110[${PYTHON_USEDEP}]
59 + <=dev-python/pdfminer-six-20201018[${PYTHON_USEDEP}]
60 + dev-python/pikepdf[${PYTHON_USEDEP}]
61 + dev-python/pillow[${PYTHON_USEDEP}]
62 + dev-python/pluggy[${PYTHON_USEDEP}]
63 + dev-python/reportlab[${PYTHON_USEDEP}]
64 + dev-python/tqdm[${PYTHON_USEDEP}]
65 + media-gfx/img2pdf[${PYTHON_USEDEP}]
66 + media-gfx/pngquant
67 + media-libs/leptonica
68 + virtual/python-cffi[${PYTHON_USEDEP}]
69 + jbig2enc? ( media-libs/jbig2enc )
70 +"
71 +DEPEND="
72 + test? (
73 + dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
74 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
75 + ~dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
76 + )
77 +"
78 +
79 +distutils_enable_tests pytest
80 +distutils_enable_sphinx docs --no-autodoc
81 +
82 +src_install() {
83 + distutils-r1_src_install
84 + newbashcomp misc/completion/ocrmypdf.bash "${PN,,}"
85 + insinto /usr/share/fish/vendor_completions.d
86 + doins misc/completion/ocrmypdf.fish
87 +}