Gentoo Archives: gentoo-commits

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