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: Sat, 29 Jan 2022 22:43:57
Message-Id: 1643496189.fdeb1562163d8942513011b1c247561e0471089f.carana2099@gentoo
1 commit: fdeb1562163d8942513011b1c247561e0471089f
2 Author: Carlos Eduardo <carana2099 <AT> gmail <DOT> com>
3 AuthorDate: Sat Jan 29 22:43:09 2022 +0000
4 Commit: Carlos Eduardo <carana2099 <AT> gmail <DOT> com>
5 CommitDate: Sat Jan 29 22:43:09 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fdeb1562
7
8 app-text/OCRmyPDF: add 13.2.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.2.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 ad570a2cb..8680e73f5 100644
19 --- a/app-text/OCRmyPDF/Manifest
20 +++ b/app-text/OCRmyPDF/Manifest
21 @@ -1,2 +1,3 @@
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
26 diff --git a/app-text/OCRmyPDF/OCRmyPDF-13.2.0.ebuild b/app-text/OCRmyPDF/OCRmyPDF-13.2.0.ebuild
27 new file mode 100644
28 index 000000000..ec16fef12
29 --- /dev/null
30 +++ b/app-text/OCRmyPDF/OCRmyPDF-13.2.0.ebuild
31 @@ -0,0 +1,58 @@
32 +# Copyright 2020-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{7,8,9} )
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 +}