Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-text/OCRmyPDF/
Date: Wed, 01 Jun 2022 05:03:15
Message-Id: 1654059770.608f81933ffd462a0074c713f411f087be046c99.cybertailor@gentoo
1 commit: 608f81933ffd462a0074c713f411f087be046c99
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Wed Jun 1 04:56:22 2022 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Wed Jun 1 05:02:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=608f8193
7
8 app-text/OCRmyPDF: fix deps
9
10 Closes: https://bugs.gentoo.org/816729
11 Closes: https://bugs.gentoo.org/836141
12 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
13
14 .../{OCRmyPDF-13.4.6.ebuild => OCRmyPDF-13.4.6-r1.ebuild} | 12 +++++++-----
15 1 file changed, 7 insertions(+), 5 deletions(-)
16
17 diff --git a/app-text/OCRmyPDF/OCRmyPDF-13.4.6.ebuild b/app-text/OCRmyPDF/OCRmyPDF-13.4.6-r1.ebuild
18 similarity index 85%
19 rename from app-text/OCRmyPDF/OCRmyPDF-13.4.6.ebuild
20 rename to app-text/OCRmyPDF/OCRmyPDF-13.4.6-r1.ebuild
21 index 0692a0bae..6a22b6003 100644
22 --- a/app-text/OCRmyPDF/OCRmyPDF-13.4.6.ebuild
23 +++ b/app-text/OCRmyPDF/OCRmyPDF-13.4.6-r1.ebuild
24 @@ -6,11 +6,11 @@ EAPI=8
25 PYTHON_COMPAT=( python3_{8..10} )
26 DISTUTILS_USE_SETUPTOOLS=rdepend
27
28 -inherit bash-completion-r1 distutils-r1
29 +inherit bash-completion-r1 distutils-r1 optfeature
30
31 DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files"
32 HOMEPAGE="https://github.com/ocrmypdf/OCRmyPDF"
33 -SRC_URI="https://github.com/ocrmypdf/OCRmyPDF/archive/v${PV}.tar.gz -> ${P}.tar.gz"
34 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
35
36 LICENSE="MPL-2.0"
37 SLOT="0"
38 @@ -18,7 +18,6 @@ KEYWORDS="~amd64"
39
40 # This uses *a lot* of RAM, I have 32gb and these tests tried to use it all
41 RESTRICT="test"
42 -IUSE="jbig2enc"
43
44 RDEPEND="
45 app-text/ghostscript-gpl
46 @@ -36,17 +35,16 @@ RDEPEND="
47 media-gfx/pngquant
48 media-libs/leptonica
49 virtual/python-cffi[${PYTHON_USEDEP}]
50 - jbig2enc? ( media-libs/jbig2enc )
51 "
52 DEPEND="
53 test? (
54 dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
55 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
56 ~dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
57 )
58 "
59
60 distutils_enable_tests pytest
61 +
62 distutils_enable_sphinx docs --no-autodoc
63
64 src_install() {
65 @@ -55,3 +53,7 @@ src_install() {
66 insinto /usr/share/fish/vendor_completions.d
67 doins misc/completion/ocrmypdf.fish
68 }
69 +
70 +pkg_postinst() {
71 + optfeature "JBIG2 support" media-libs/jbig2enc
72 +}