commit:     608f81933ffd462a0074c713f411f087be046c99
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Jun  1 04:56:22 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Jun  1 05:02:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=608f8193

app-text/OCRmyPDF: fix deps

Closes: https://bugs.gentoo.org/816729
Closes: https://bugs.gentoo.org/836141
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 .../{OCRmyPDF-13.4.6.ebuild => OCRmyPDF-13.4.6-r1.ebuild}    | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/app-text/OCRmyPDF/OCRmyPDF-13.4.6.ebuild 
b/app-text/OCRmyPDF/OCRmyPDF-13.4.6-r1.ebuild
similarity index 85%
rename from app-text/OCRmyPDF/OCRmyPDF-13.4.6.ebuild
rename to app-text/OCRmyPDF/OCRmyPDF-13.4.6-r1.ebuild
index 0692a0bae..6a22b6003 100644
--- a/app-text/OCRmyPDF/OCRmyPDF-13.4.6.ebuild
+++ b/app-text/OCRmyPDF/OCRmyPDF-13.4.6-r1.ebuild
@@ -6,11 +6,11 @@ EAPI=8
 PYTHON_COMPAT=( python3_{8..10} )
 DISTUTILS_USE_SETUPTOOLS=rdepend
 
-inherit bash-completion-r1 distutils-r1
+inherit bash-completion-r1 distutils-r1 optfeature
 
 DESCRIPTION="OCRmyPDF adds an OCR text layer to scanned PDF files"
 HOMEPAGE="https://github.com/ocrmypdf/OCRmyPDF";
-SRC_URI="https://github.com/ocrmypdf/OCRmyPDF/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="MPL-2.0"
 SLOT="0"
@@ -18,7 +18,6 @@ KEYWORDS="~amd64"
 
 # This uses *a lot* of RAM, I have 32gb and these tests tried to use it all
 RESTRICT="test"
-IUSE="jbig2enc"
 
 RDEPEND="
        app-text/ghostscript-gpl
@@ -36,17 +35,16 @@ RDEPEND="
        media-gfx/pngquant
        media-libs/leptonica
        virtual/python-cffi[${PYTHON_USEDEP}]
-       jbig2enc? ( media-libs/jbig2enc )
 "
 DEPEND="
        test? (
                dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
-               dev-python/pytest-xdist[${PYTHON_USEDEP}]
                ~dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}]
        )
 "
 
 distutils_enable_tests pytest
+
 distutils_enable_sphinx docs --no-autodoc
 
 src_install() {
@@ -55,3 +53,7 @@ src_install() {
        insinto /usr/share/fish/vendor_completions.d
        doins misc/completion/ocrmypdf.fish
 }
+
+pkg_postinst() {
+       optfeature "JBIG2 support" media-libs/jbig2enc
+}

Reply via email to