1 |
commit: 61f2aae7af18c4a89ff7a1ec525c9d67abbabdab |
2 |
Author: Theo Anderson <telans <AT> posteo <DOT> de> |
3 |
AuthorDate: Sat Dec 26 08:41:36 2020 +0000 |
4 |
Commit: Theo Anderson <telans <AT> posteo <DOT> de> |
5 |
CommitDate: Sat Dec 26 09:09:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=61f2aae7 |
7 |
|
8 |
app-text/OCRmyPDF: bump to 11.4.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.12, 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.4.1.ebuild | 68 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 69 insertions(+) |
16 |
|
17 |
diff --git a/app-text/OCRmyPDF/Manifest b/app-text/OCRmyPDF/Manifest |
18 |
index 14db1f0d..3e241f2b 100644 |
19 |
--- a/app-text/OCRmyPDF/Manifest |
20 |
+++ b/app-text/OCRmyPDF/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST OCRmyPDF-11.4.0.tar.gz 7880918 BLAKE2B 2031a0d8f5676d84be7e4d52a2b8457143dfb85248bc925d452ebe652190da0f34a464478a9cda8ed0650eeb5db5019f83530ea0b74b57079e1cab0e43a20b16 SHA512 f6ed03eacf3dd0aa554841b70e6b2fbb8a7cc7854723a4fb0a52b7b3fcf26387f9bb60b9db57f67af53a979edc66666a3dadbdd10c20fbb375cfaf46339e6737 |
23 |
+DIST OCRmyPDF-11.4.1.tar.gz 7880882 BLAKE2B 80bcce4775e9192cc23f0b9ed0ba8fcbb4b585c628b796f69b60d2e84bcf8157812cf5fa769688af1e71626d41ba249d56ac5cc6bcf4f4fc3a60fa4b5809320b SHA512 bd27d66b24b63584d1945fd29b08e4d8dcffd989b7285ec0d94559514da676cbb7cd6910453d553f859d501ce5a10bb90554574f0e435bbf6d4037d89d0dd4aa |
24 |
|
25 |
diff --git a/app-text/OCRmyPDF/OCRmyPDF-11.4.1.ebuild b/app-text/OCRmyPDF/OCRmyPDF-11.4.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..ce3eb17d |
28 |
--- /dev/null |
29 |
+++ b/app-text/OCRmyPDF/OCRmyPDF-11.4.1.ebuild |
30 |
@@ -0,0 +1,68 @@ |
31 |
+# Copyright 2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7..8} ) |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+ |
39 |
+inherit bash-completion-r1 distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files" |
42 |
+HOMEPAGE="https://github.com/jbarlow83/OCRmyPDF" |
43 |
+MY_GITHUB_AUTHOR="jbarlow83" |
44 |
+SRC_URI="https://github.com/${MY_GITHUB_AUTHOR}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
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 |
+ jbig2enc? ( media-libs/jbig2enc ) |
68 |
+ media-gfx/img2pdf[${PYTHON_USEDEP}] |
69 |
+ media-gfx/pngquant |
70 |
+ media-libs/leptonica |
71 |
+ virtual/python-cffi[${PYTHON_USEDEP}] |
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 |
+python_prepare_all() { |
85 |
+ # do not depend on deprecated dep |
86 |
+ sed -i -e '/pytest-runner/d' setup.py || die |
87 |
+ |
88 |
+ distutils-r1_python_prepare_all |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ distutils-r1_src_install |
93 |
+ |
94 |
+ newbashcomp "${S}"/misc/completion/ocrmypdf.bash "${PN,,}" |
95 |
+ |
96 |
+ insinto /usr/share/fish/vendor_completions.d |
97 |
+ doins "${S}"/misc/completion/ocrmypdf.fish |
98 |
+} |