aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-11-05 00:38:59 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-11-05 00:43:43 +0500
commit3ddaec13abe81b0110747332fda01149daeb0081 (patch)
treec7b669a200d4860ecb7a9e9cdd75113dc669936b /app-text/OCRmyPDF
parentkde-frameworks/kirigami-addons: try to fix tests (diff)
downloadguru-3ddaec13abe81b0110747332fda01149daeb0081.tar.gz
guru-3ddaec13abe81b0110747332fda01149daeb0081.tar.bz2
guru-3ddaec13abe81b0110747332fda01149daeb0081.zip
app-text/OCRmyPDF: try to fix tests
Closes: https://bugs.gentoo.org/879103 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'app-text/OCRmyPDF')
-rw-r--r--app-text/OCRmyPDF/OCRmyPDF-14.0.1-r2.ebuild (renamed from app-text/OCRmyPDF/OCRmyPDF-14.0.1-r1.ebuild)5
1 files changed, 3 insertions, 2 deletions
diff --git a/app-text/OCRmyPDF/OCRmyPDF-14.0.1-r1.ebuild b/app-text/OCRmyPDF/OCRmyPDF-14.0.1-r2.ebuild
index dadc4dfa5..c15e0a32d 100644
--- a/app-text/OCRmyPDF/OCRmyPDF-14.0.1-r1.ebuild
+++ b/app-text/OCRmyPDF/OCRmyPDF-14.0.1-r2.ebuild
@@ -15,11 +15,12 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="CC-BY-SA-2.5 CC-BY-SA-4.0 MIT MPL-2.0 ZLIB"
SLOT="0"
KEYWORDS="~amd64"
+IUSE="jpeg png webp"
RDEPEND="
>=app-text/ghostscript-gpl-9.50
>=app-text/pdfminer-20201018[${PYTHON_USEDEP}]
- >=app-text/tesseract-4.1.1
+ >=app-text/tesseract-4.1.1[jpeg?,tiff,png?,webp?]
>=dev-python/coloredlogs-14.0[${PYTHON_USEDEP}]
>=dev-python/deprecation-2.1.0[${PYTHON_USEDEP}]
>=dev-python/packaging-20[${PYTHON_USEDEP}]
@@ -64,6 +65,6 @@ src_install() {
pkg_postinst() {
optfeature "JBIG2 optimization support" media-libs/jbig2enc
- optfeature "PNG optimization support" media-gfx/pngquant
optfeature "image cleaning support" app-text/unpaper
+ use png && optfeature "PNG optimization support" media-gfx/pngquant
}