commit:     8557e52864425f96e1e45d636d2fc2f07db143a2
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sun Mar 17 08:52:40 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Mar 20 11:57:12 2024 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=8557e528

dev-libs/ktextaddons: disable vosk plugin specifically

* Patch broken by upstream changes. It's better to just disable vosk
  plugin and build the other available plugins.

* Committer comment: Option available since upstream commit
  e8990e7e375073632af7409beff5442fdf569f7b "Add option for enabled it"

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Closes: https://github.com/gentoo/kde/pull/983
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/ktextaddons-9999-no-textspeechtotext.patch     | 16 ----------------
 dev-libs/ktextaddons/ktextaddons-9999.ebuild             |  5 ++---
 2 files changed, 2 insertions(+), 19 deletions(-)

diff --git 
a/dev-libs/ktextaddons/files/ktextaddons-9999-no-textspeechtotext.patch 
b/dev-libs/ktextaddons/files/ktextaddons-9999-no-textspeechtotext.patch
deleted file mode 100644
index bcc7cbdc8a..0000000000
--- a/dev-libs/ktextaddons/files/ktextaddons-9999-no-textspeechtotext.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-Unpackaged dependencies.
-
-https://bugs.gentoo.org/919236
-https://bugs.gentoo.org/919234
-
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -100,7 +100,7 @@ add_subdirectory(textgrammarcheck)
- add_subdirectory(texttranslator)
- add_subdirectory(textemoticons)
- add_subdirectory(textutils)
--if (QT_MAJOR_VERSION STREQUAL "6")
-+if (FALSE)
-     find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} CONFIG REQUIRED 
MultimediaWidgets)
-     add_subdirectory(textspeechtotext)
- endif()

diff --git a/dev-libs/ktextaddons/ktextaddons-9999.ebuild 
b/dev-libs/ktextaddons/ktextaddons-9999.ebuild
index 6242a3cbfb..b3cf3493b8 100644
--- a/dev-libs/ktextaddons/ktextaddons-9999.ebuild
+++ b/dev-libs/ktextaddons/ktextaddons-9999.ebuild
@@ -42,12 +42,11 @@ RDEPEND="${DEPEND}
        !${CATEGORY}/${PN}:5
 "
 
-# TODO: unpackaged vosk, kaldi (bugs #919236, 919234)
-PATCHES=( "${FILESDIR}/${P}-no-textspeechtotext.patch" )
-
 src_configure() {
        local mycmakeargs=(
                $(cmake_use_find_package speech Qt6TextToSpeech)
+               # TODO: unpackaged vosk, kaldi (bugs #919236, 919234)
+               -DSPEAK_TO_TEXT_VOSK_PLUGIN=OFF
        )
        ecm_src_configure
 }

Reply via email to