commit: 0c46abe474f6200261505b180c50686d033c10b8
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 12 22:14:19 2026 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Jan 12 22:17:55 2026 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=0c46abe4
kde-plasma/spectacle: Drop IUSE ocr, now runtime optional
Upstream commit b1bb21c0b015889c0ec6e9e9e414bb452e926f69
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
kde-plasma/spectacle/metadata.xml | 1 -
kde-plasma/spectacle/spectacle-9999.ebuild | 19 +++++++------------
2 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/kde-plasma/spectacle/metadata.xml
b/kde-plasma/spectacle/metadata.xml
index 2d43af650e..8213019cba 100644
--- a/kde-plasma/spectacle/metadata.xml
+++ b/kde-plasma/spectacle/metadata.xml
@@ -9,7 +9,6 @@
<bugs-to>https://bugs.kde.org/</bugs-to>
</upstream>
<use>
- <flag name="ocr">Enable Optical Character Recognition support
via <pkg>app-text/tesseract</pkg></flag>
<flag name="share">Enable support for a share menu using
<pkg>kde-frameworks/purpose</pkg></flag>
</use>
</pkgmetadata>
diff --git a/kde-plasma/spectacle/spectacle-9999.ebuild
b/kde-plasma/spectacle/spectacle-9999.ebuild
index 3d2344f7b4..c8c72112c2 100644
--- a/kde-plasma/spectacle/spectacle-9999.ebuild
+++ b/kde-plasma/spectacle/spectacle-9999.ebuild
@@ -7,7 +7,7 @@ ECM_HANDBOOK="optional"
ECM_TEST="forceoptional"
KFMIN=9999
QTMIN=6.10.1
-inherit ecm plasma.kde.org xdg
+inherit ecm optfeature plasma.kde.org xdg
DESCRIPTION="Screenshot capture utility"
HOMEPAGE="https://apps.kde.org/spectacle/"
@@ -15,7 +15,7 @@ HOMEPAGE="https://apps.kde.org/spectacle/"
LICENSE="LGPL-2+ handbook? ( FDL-1.3 )"
SLOT="6"
KEYWORDS=""
-IUSE="ocr share"
+IUSE="share"
# slot op: Uses Qt::GuiPrivate for qtx11extras_p.h
COMMON_DEPEND="
@@ -49,7 +49,6 @@ COMMON_DEPEND="
x11-libs/xcb-util
x11-libs/xcb-util-cursor
x11-libs/xcb-util-image
- ocr? ( app-text/tesseract:= )
share? ( >=kde-frameworks/purpose-${KFMIN}:6 )
"
DEPEND="${COMMON_DEPEND}
@@ -66,18 +65,14 @@ BDEPEND="
virtual/pkgconfig
"
-src_prepare() {
- ecm_src_prepare
- # TODO: try to get a build switch upstreamed
- if ! use ocr; then
- sed -e "s/^pkg_check_modules.*tesseract/#&/" \
- -i CMakeLists.txt || die
- fi
-}
-
src_configure() {
local mycmakeargs=(
$(cmake_use_find_package share KF6Purpose)
)
ecm_src_configure
}
+
+pkg_postinst() {
+ optfeature "text recognition in screenshots" "app-text/tesseract"
+ xdg_pkg_postinst
+}