1 |
commit: d0da00f8e5381f4002886e6a5a3966768134ccf6 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sun Oct 30 12:39:55 2022 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Sun Oct 30 13:09:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d0da00f8 |
7 |
|
8 |
app-text/OCRmyPDF: add missing deps and stuff |
9 |
|
10 |
Closes: https://bugs.gentoo.org/878795 |
11 |
Closes: https://bugs.gentoo.org/862121 |
12 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
13 |
|
14 |
...PDF-14.0.1.ebuild => OCRmyPDF-14.0.1-r1.ebuild} | 40 ++++++++++++++-------- |
15 |
1 file changed, 25 insertions(+), 15 deletions(-) |
16 |
|
17 |
diff --git a/app-text/OCRmyPDF/OCRmyPDF-14.0.1.ebuild b/app-text/OCRmyPDF/OCRmyPDF-14.0.1-r1.ebuild |
18 |
similarity index 55% |
19 |
rename from app-text/OCRmyPDF/OCRmyPDF-14.0.1.ebuild |
20 |
rename to app-text/OCRmyPDF/OCRmyPDF-14.0.1-r1.ebuild |
21 |
index 813f3f1f0..dadc4dfa5 100644 |
22 |
--- a/app-text/OCRmyPDF/OCRmyPDF-14.0.1.ebuild |
23 |
+++ b/app-text/OCRmyPDF/OCRmyPDF-14.0.1-r1.ebuild |
24 |
@@ -10,50 +10,60 @@ inherit bash-completion-r1 distutils-r1 optfeature |
25 |
|
26 |
DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files" |
27 |
HOMEPAGE="https://github.com/ocrmypdf/OCRmyPDF" |
28 |
-SRC_URI="https://github.com/ocrmypdf/OCRmyPDF/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
29 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
30 |
|
31 |
-LICENSE="MPL-2.0" |
32 |
+LICENSE="CC-BY-SA-2.5 CC-BY-SA-4.0 MIT MPL-2.0 ZLIB" |
33 |
SLOT="0" |
34 |
KEYWORDS="~amd64" |
35 |
-RESTRICT="test" # Exhausts RAM |
36 |
|
37 |
RDEPEND=" |
38 |
>=app-text/ghostscript-gpl-9.50 |
39 |
+ >=app-text/pdfminer-20201018[${PYTHON_USEDEP}] |
40 |
>=app-text/tesseract-4.1.1 |
41 |
- app-text/unpaper |
42 |
- dev-python/cffi[${PYTHON_USEDEP}] |
43 |
- >=dev-python/coloredlogs-15.0.1[${PYTHON_USEDEP}] |
44 |
+ >=dev-python/coloredlogs-14.0[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/deprecation-2.1.0[${PYTHON_USEDEP}] |
46 |
>=dev-python/packaging-20[${PYTHON_USEDEP}] |
47 |
- >dev-python/pdfminer-six-20200720[${PYTHON_USEDEP}] |
48 |
- >dev-python/pikepdf-5.0.0[${PYTHON_USEDEP}] |
49 |
+ >dev-python/pikepdf-5.0.1[${PYTHON_USEDEP}] |
50 |
>=dev-python/pillow-8.2.0[${PYTHON_USEDEP}] |
51 |
>=dev-python/pluggy-0.13.0[${PYTHON_USEDEP}] |
52 |
>=dev-python/reportlab-3.5.66[${PYTHON_USEDEP}] |
53 |
>=dev-python/tqdm-4[${PYTHON_USEDEP}] |
54 |
>=media-gfx/img2pdf-0.3.0[${PYTHON_USEDEP}] |
55 |
- media-gfx/pngquant |
56 |
- media-libs/leptonica |
57 |
- virtual/python-cffi[${PYTHON_USEDEP}] |
58 |
" |
59 |
-DEPEND=" |
60 |
+BDEPEND=" |
61 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
62 |
test? ( |
63 |
+ >=app-text/unpaper-6.1 |
64 |
dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
65 |
- ~dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}] |
67 |
+ >=media-libs/jbig2enc-0.29 |
68 |
+ >=media-gfx/pngquant-2.5 |
69 |
) |
70 |
" |
71 |
|
72 |
distutils_enable_tests pytest |
73 |
-distutils_enable_sphinx docs --no-autodoc |
74 |
+ |
75 |
+distutils_enable_sphinx docs \ |
76 |
+ dev-python/sphinx-issues \ |
77 |
+ dev-python/sphinx_rtd_theme |
78 |
|
79 |
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
80 |
|
81 |
+src_prepare() { |
82 |
+ distutils-r1_src_prepare |
83 |
+ sed -e "/-n auto/d" -i pyproject.toml || die |
84 |
+} |
85 |
+ |
86 |
src_install() { |
87 |
distutils-r1_src_install |
88 |
newbashcomp misc/completion/ocrmypdf.bash "${PN,,}" |
89 |
+ |
90 |
insinto /usr/share/fish/vendor_completions.d |
91 |
doins misc/completion/ocrmypdf.fish |
92 |
} |
93 |
|
94 |
pkg_postinst() { |
95 |
- optfeature "JBIG2 support" media-libs/jbig2enc |
96 |
+ optfeature "JBIG2 optimization support" media-libs/jbig2enc |
97 |
+ optfeature "PNG optimization support" media-gfx/pngquant |
98 |
+ optfeature "image cleaning support" app-text/unpaper |
99 |
} |