Gentoo Archives: gentoo-commits

From: Carlos Eduardo <carana2099@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-text/OCRmyPDF/
Date: Tue, 22 Feb 2022 21:25:45
Message-Id: 1645565132.685a9bc05472da434eb121ddd9ff4941c2322499.carana2099@gentoo
1 commit: 685a9bc05472da434eb121ddd9ff4941c2322499
2 Author: Carlos Eduardo <carana2099 <AT> gmail <DOT> com>
3 AuthorDate: Tue Feb 22 21:25:32 2022 +0000
4 Commit: Carlos Eduardo <carana2099 <AT> gmail <DOT> com>
5 CommitDate: Tue Feb 22 21:25:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=685a9bc0
7
8 app-text/OCRmyPDF: add 13.4.0
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Carlos Eduardo <carana2099 <AT> gmail.com>
12
13 app-text/OCRmyPDF/Manifest | 1 +
14 app-text/OCRmyPDF/OCRmyPDF-13.4.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 8680e73f5..829604781 100644
19 --- a/app-text/OCRmyPDF/Manifest
20 +++ b/app-text/OCRmyPDF/Manifest
21 @@ -1,3 +1,4 @@
22 DIST OCRmyPDF-12.0.2.tar.gz 7895055 BLAKE2B 4fab449f9edf8788c74773da0e73adca9dc686afcbc69d9d6263049044b202744244eab4f4d6e5596461c55d399320a5e7604c6a8080c0d6a05ea6df15314eac SHA512 8bc749353d88dd1e0b2fbd313ba45fa5bf79b70c0366bde21dbe457ce269d02bea64e797e73b823fe9c02b2bd18f181f6cea414306ab1470e244e4201f86781a
23 DIST OCRmyPDF-12.6.0.tar.gz 7897200 BLAKE2B e183280e11414a7b2bedd339e971f1c74697d9847771e24592207e5bfe82af184544576c067856cdee9d8409bdca856e8aeb48c8e5b4e32154b69111fba2d775 SHA512 0792fccec7ecdfc93a02c4e29d0c88076c191aed3a2848c4db5d6b18ad4837a24e325dfc961aaa7c68407de7dd471e45e7b6389d6cf8f9465fe3892038696e97
24 DIST OCRmyPDF-13.2.0.tar.gz 7885396 BLAKE2B 0eea864d056d2238f7ea244a7fc9b6a548409caf9264349be2e0d5be5dea7ddc474f5e95ce92ad926992e42b27cdedf77005d124782374be5b6606a01338aa69 SHA512 476924ad440042fb75a9cd56fb90a93b636fc805393087952d704602f92bd0d33ed5701b45ed037b312874800857da784b367eaea3858dc0b38e4b1d49417e52
25 +DIST OCRmyPDF-13.4.0.tar.gz 7889193 BLAKE2B 42923508524df38ed62f1a0c4d6b308dac8e00a44b428dee2dd5494915778910e434d5bf8a5957fe48685c0263b3151044794b14cbc209e4a3909da1e2411fe3 SHA512 1b581ba469e0f625481c551d9b53c553745a02c748bd2e16bd7a589f4eacfd3f21ba5d435b52286694220627de0d3d7202513191ee5e1e04b7bdd392d0abc5cd
26
27 diff --git a/app-text/OCRmyPDF/OCRmyPDF-13.4.0.ebuild b/app-text/OCRmyPDF/OCRmyPDF-13.4.0.ebuild
28 new file mode 100644
29 index 000000000..ec16fef12
30 --- /dev/null
31 +++ b/app-text/OCRmyPDF/OCRmyPDF-13.4.0.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 2020-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{7,8,9} )
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 +}