public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: media-gfx/skanpage/
Date: Sat,  9 Jul 2022 12:52:57 +0000 (UTC)	[thread overview]
Message-ID: <1657357330.95c1b63e5aff6c71470dd7b58b7ce3e7f1c191be.asturm@gentoo> (raw)

commit:     95c1b63e5aff6c71470dd7b58b7ce3e7f1c191be
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  9 09:02:10 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jul  9 09:02:10 2022 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=95c1b63e

media-gfx/skanpage: Add IUSE ocr

Upstream commit abba322680d51d35426724a6c48400b91247a5b8

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-gfx/skanpage/metadata.xml         |  3 +++
 media-gfx/skanpage/skanpage-9999.ebuild | 14 +++++++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/media-gfx/skanpage/metadata.xml b/media-gfx/skanpage/metadata.xml
index 2fdbf33d96..b479028573 100644
--- a/media-gfx/skanpage/metadata.xml
+++ b/media-gfx/skanpage/metadata.xml
@@ -5,4 +5,7 @@
 		<email>kde@gentoo.org</email>
 		<name>Gentoo KDE Project</name>
 	</maintainer>
+	<use>
+		<flag name="ocr">Enable support for Optical Character Recognition via <pkg>app-text/tesseract</pkg></flag>
+	</use>
 </pkgmetadata>

diff --git a/media-gfx/skanpage/skanpage-9999.ebuild b/media-gfx/skanpage/skanpage-9999.ebuild
index 2db0d768ef..0d2f3d11f4 100644
--- a/media-gfx/skanpage/skanpage-9999.ebuild
+++ b/media-gfx/skanpage/skanpage-9999.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="https://apps.kde.org/skanpage/"
 LICENSE="|| ( GPL-2 GPL-3 ) CC0-1.0"
 SLOT="5"
 KEYWORDS=""
-IUSE=""
+IUSE="ocr"
 
 DEPEND="
 	>=dev-qt/qtconcurrent-${QTMIN}:5
@@ -37,5 +37,17 @@ DEPEND="
 	>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
 	>=kde-frameworks/kxmlgui-${KFMIN}:5
 	>=kde-frameworks/purpose-${KFMIN}:5
+	ocr? (
+		app-text/tesseract:=
+		media-libs/leptonica:=
+	)
 "
 RDEPEND="${DEPEND}"
+
+src_configure() {
+	local mycmakeargs=(
+		$(cmake_use_find_package ocr Tesseract)
+		$(cmake_use_find_package ocr Leptonica)
+	)
+	ecm_src_configure
+}


             reply	other threads:[~2022-07-09 12:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-09 12:52 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-02 10:28 [gentoo-commits] proj/kde:master commit in: media-gfx/skanpage/ Andreas Sturmlechner
2024-05-16 14:26 Andreas Sturmlechner
2024-05-16 14:26 Andreas Sturmlechner
2024-02-27 22:28 Sam James
2024-02-26 19:59 Andreas Sturmlechner
2024-01-07 13:26 Andreas Sturmlechner
2022-08-02 22:02 Sam James
2022-07-09 12:52 Andreas Sturmlechner
2022-05-18 12:13 Andreas Sturmlechner
2022-04-25  2:30 Sam James
2022-04-21 21:17 Sam James
2022-04-21 21:17 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1657357330.95c1b63e5aff6c71470dd7b58b7ce3e7f1c191be.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox