Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-text/OCRmyPDF/
Date: Tue, 09 Feb 2021 14:46:23
Message-Id: 1612751173.5624c81713ee766e07f9908dc4f509e32328d92b.andrewammerlaan@gentoo
1 commit: 5624c81713ee766e07f9908dc4f509e32328d92b
2 Author: Theo Anderson <telans <AT> posteo <DOT> de>
3 AuthorDate: Mon Feb 8 02:26:02 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Mon Feb 8 02:26:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5624c817
7
8 app-text/OCRmyPDF: bump to 11.6.0
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Theo Anderson <telans <AT> posteo.de>
12
13 app-text/OCRmyPDF/Manifest | 1 +
14 app-text/OCRmyPDF/OCRmyPDF-11.6.0.ebuild | 58 ++++++++++++++++++++++++++++++++
15 app-text/OCRmyPDF/metadata.xml | 2 +-
16 3 files changed, 60 insertions(+), 1 deletion(-)
17
18 diff --git a/app-text/OCRmyPDF/Manifest b/app-text/OCRmyPDF/Manifest
19 index 7422812d..a55fe201 100644
20 --- a/app-text/OCRmyPDF/Manifest
21 +++ b/app-text/OCRmyPDF/Manifest
22 @@ -1,2 +1,3 @@
23 DIST OCRmyPDF-11.4.5.tar.gz 7882974 BLAKE2B dd2c73e3aa78f0dadebcd25879aa315836e703bd089663a310af5b5231a03bf4cfe3acdbc4a658a99b92d585cd992134fdc1d3a12d7b2a74e205fe5b2ffa1b50 SHA512 4abf32733f520c0f8d99a9b1631d37ac339067b55756a9d9d4f0c182eca96f251ab7779d1c0af913891a57f3d103cc028ce3899dc263869ac6af3cf6f75e1ead
24 DIST OCRmyPDF-11.5.0.tar.gz 7884615 BLAKE2B e0b298e011aa648b9d94febbead532d97af510e7281d1d0a8b828843627b9ad326a863e4bc7060a6fd746f114676449ea3575d94d60c30cf08873b06eb31b244 SHA512 e40d28a6b21e729077f34d3e1012965a3f162e4374c0e8c88acc05b143c14626829f25f2c91bb8995aca7609778fac78c91d89c6186109194fc1f211a3462e41
25 +DIST OCRmyPDF-11.6.0.tar.gz 7884950 BLAKE2B 408693ccb73e3c4c0298de27f2c8bff76ca50805a2dc1f84d25e8e5731d31631be238780a8b169d6d42c8a948b58d8708d95b0f0baf30d75deae4e4eac787106 SHA512 d77bbd5adb67a5e354162690665db62cd5baaa6f68443d2303f319d029c0a61b93d9363f5758fabf6d84959a8e07c164be7518f4bcc9f1d4d3408f116bc8caad
26
27 diff --git a/app-text/OCRmyPDF/OCRmyPDF-11.6.0.ebuild b/app-text/OCRmyPDF/OCRmyPDF-11.6.0.ebuild
28 new file mode 100644
29 index 00000000..ed5786c9
30 --- /dev/null
31 +++ b/app-text/OCRmyPDF/OCRmyPDF-11.6.0.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 2020-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{7..8} )
39 +DISTUTILS_USE_SETUPTOOLS=rdepend
40 +
41 +inherit bash-completion-r1 distutils-r1
42 +
43 +DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files"
44 +HOMEPAGE="https://github.com/jbarlow83/OCRmyPDF"
45 +SRC_URI="https://github.com/jbarlow83/OCRmyPDF/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="MPL-2.0"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +
51 +# This uses *a lot* of RAM, I have 32gb and these tests tried to use it all
52 +RESTRICT="test"
53 +IUSE="jbig2enc"
54 +
55 +RDEPEND="
56 + app-text/ghostscript-gpl
57 + app-text/tesseract
58 + app-text/unpaper
59 + dev-python/cffi[${PYTHON_USEDEP}]
60 + dev-python/coloredlogs[${PYTHON_USEDEP}]
61 + >=dev-python/pdfminer-six-20191110[${PYTHON_USEDEP}]
62 + <=dev-python/pdfminer-six-20201018[${PYTHON_USEDEP}]
63 + dev-python/pikepdf[${PYTHON_USEDEP}]
64 + dev-python/pillow[${PYTHON_USEDEP}]
65 + dev-python/pluggy[${PYTHON_USEDEP}]
66 + dev-python/reportlab[${PYTHON_USEDEP}]
67 + dev-python/tqdm[${PYTHON_USEDEP}]
68 + media-gfx/img2pdf[${PYTHON_USEDEP}]
69 + media-gfx/pngquant
70 + media-libs/leptonica
71 + virtual/python-cffi[${PYTHON_USEDEP}]
72 + jbig2enc? ( media-libs/jbig2enc )
73 +"
74 +DEPEND="
75 + test? (
76 + dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
77 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
78 + ~dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
79 + )
80 +"
81 +
82 +distutils_enable_tests pytest
83 +distutils_enable_sphinx docs --no-autodoc
84 +
85 +src_install() {
86 + distutils-r1_src_install
87 + newbashcomp misc/completion/ocrmypdf.bash "${PN,,}"
88 + insinto /usr/share/fish/vendor_completions.d
89 + doins misc/completion/ocrmypdf.fish
90 +}
91
92 diff --git a/app-text/OCRmyPDF/metadata.xml b/app-text/OCRmyPDF/metadata.xml
93 index bb2748b2..411f0ece 100644
94 --- a/app-text/OCRmyPDF/metadata.xml
95 +++ b/app-text/OCRmyPDF/metadata.xml
96 @@ -11,7 +11,7 @@
97 </maintainer>
98 <use>
99 <flag name="jbig2enc">
100 - Uses <pkg>media-libs/jbig2enc</pkg> for better compression algorithm
101 + Uses <pkg>media-libs/jbig2enc</pkg> for a better compression algorithm
102 </flag>
103 </use>
104 </pkgmetadata>