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 Jul 2022 12:16:27
Message-Id: 1656935994.2fca7460b00323be79f923caf6ff82e5d0f6c727.telans@gentoo
1 commit: 2fca7460b00323be79f923caf6ff82e5d0f6c727
2 Author: James Beddek <telans <AT> posteo <DOT> de>
3 AuthorDate: Mon Jul 4 11:59:54 2022 +0000
4 Commit: Theo Anderson <telans <AT> posteo <DOT> de>
5 CommitDate: Mon Jul 4 11:59:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2fca7460
7
8 app-text/OCRmyPDF: add 13.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-13.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 0d41e1813..625e70793 100644
18 --- a/app-text/OCRmyPDF/Manifest
19 +++ b/app-text/OCRmyPDF/Manifest
20 @@ -1,2 +1,3 @@
21 DIST OCRmyPDF-13.4.3.tar.gz 7889740 BLAKE2B d107b83f0d66fe6d19cc22bf76851650cd75c79900eff2c1e68d02a15ffb875dfa97472f8a8e80fe7051a7a8d33b9729855277121ed2e204b50729b6171bde26 SHA512 301efe2492de00527cacb8640eea68bf3f5398ca53a932872f3c62ef85616fc45e2c08c662cb42cfca69c6e2b5debf8860b192421c4370e7191cea5dbc4bf32d
22 DIST OCRmyPDF-13.4.6.tar.gz 7890082 BLAKE2B 5d1fe4a0147dc7ca5bf5d1468e6cb23b57d436b80ec60b3cec9af4b1768af10fb387b724975e0c5e83aaa79806d4ba7a984fcf1d78f8bfaf97f42edfefa20f81 SHA512 fedf17630af21e94e45373aec45966cca2baa8abaca604a2a6820a74e62cf115bad376234b69dffad1ab26e50d5b891b1255026262512b518547f133f12c33d5
23 +DIST OCRmyPDF-13.6.0.tar.gz 7897382 BLAKE2B e05df2c44b32c1de17e7352f821c4bfb86dffad1c5bbb3440fab09b5172ba0bae99de4fe93039cf70e56f901a1afc0659f06c8760fb6f1b12edb7658a9b0cb7e SHA512 d58b154dd6affd9ef69b1ff79b20daee7ac9021601a3db2b9d571410b179a826de09f4b68a4683724749856fd27e2cca608e150c94aeca8bfdbc8c4d11d22a20
24
25 diff --git a/app-text/OCRmyPDF/OCRmyPDF-13.6.0.ebuild b/app-text/OCRmyPDF/OCRmyPDF-13.6.0.ebuild
26 new file mode 100644
27 index 000000000..923bd29e7
28 --- /dev/null
29 +++ b/app-text/OCRmyPDF/OCRmyPDF-13.6.0.ebuild
30 @@ -0,0 +1,58 @@
31 +# Copyright 2020-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit bash-completion-r1 distutils-r1 optfeature
39 +
40 +DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files"
41 +HOMEPAGE="https://github.com/ocrmypdf/OCRmyPDF"
42 +SRC_URI="https://github.com/ocrmypdf/OCRmyPDF/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="MPL-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +RESTRICT="test" # Exhausts RAM
48 +
49 +RDEPEND="
50 + app-text/ghostscript-gpl
51 + app-text/tesseract
52 + app-text/unpaper
53 + dev-python/cffi[${PYTHON_USEDEP}]
54 + >=dev-python/coloredlogs-15.0.1[${PYTHON_USEDEP}]
55 + >=dev-python/packaging-20[${PYTHON_USEDEP}]
56 + >dev-python/pdfminer-six-20200720[${PYTHON_USEDEP}]
57 + >dev-python/pikepdf-5.0.0[${PYTHON_USEDEP}]
58 + >=dev-python/pillow-8.2.0[${PYTHON_USEDEP}]
59 + >=dev-python/pluggy-0.13.0[${PYTHON_USEDEP}]
60 + >=dev-python/reportlab-3.5.66[${PYTHON_USEDEP}]
61 + >=dev-python/tqdm-4[${PYTHON_USEDEP}]
62 + >=media-gfx/img2pdf-0.3.0[${PYTHON_USEDEP}]
63 + media-gfx/pngquant
64 + media-libs/leptonica
65 + virtual/python-cffi[${PYTHON_USEDEP}]
66 +"
67 +DEPEND="
68 + test? (
69 + dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
70 + ~dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
71 + )
72 +"
73 +
74 +distutils_enable_tests pytest
75 +distutils_enable_sphinx docs --no-autodoc
76 +
77 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
78 +
79 +src_install() {
80 + distutils-r1_src_install
81 + newbashcomp misc/completion/ocrmypdf.bash "${PN,,}"
82 + insinto /usr/share/fish/vendor_completions.d
83 + doins misc/completion/ocrmypdf.fish
84 +}
85 +
86 +pkg_postinst() {
87 + optfeature "JBIG2 support" media-libs/jbig2enc
88 +}