commit:     1e819fa478274a14c58626703981369f81926548
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  7 09:03:06 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Jun  7 12:01:19 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e819fa4

dev-qt/qtspeech: add 6.10.9999

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-qt/qtspeech/qtspeech-6.10.9999.ebuild | 44 +++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/dev-qt/qtspeech/qtspeech-6.10.9999.ebuild 
b/dev-qt/qtspeech/qtspeech-6.10.9999.ebuild
new file mode 100644
index 000000000000..f58e66d72af1
--- /dev/null
+++ b/dev-qt/qtspeech/qtspeech-6.10.9999.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# tests are kind of flaky, sometimes hang, and also fail with clang
+# (not that it's unusable with clang) -- may be worth revisiting
+# eventually given qtspeech is still somewhat new (added in 6.4.0)
+QT6_RESTRICT_TESTS=1
+
+inherit qt6-build
+
+DESCRIPTION="Text-to-speech library for the Qt6 framework"
+
+if [[ ${QT6_BUILD_TYPE} == release ]]; then
+       KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+fi
+
+IUSE="flite qml +speechd"
+# can build with neither, but then it is just mock tts and may be confusing
+REQUIRED_USE="|| ( flite speechd )"
+
+RDEPEND="
+       ~dev-qt/qtbase-${PV}:6
+       ~dev-qt/qtmultimedia-${PV}:6
+       flite? ( app-accessibility/flite )
+       qml? ( ~dev-qt/qtdeclarative-${PV}:6 )
+       speechd? ( app-accessibility/speech-dispatcher )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake_use_find_package qml Qt6Qml)
+               $(qt_feature flite)
+               $(qt_feature speechd)
+
+               # flite_alsa was likely to work around old issues in flite, it 
does
+               # nothing but add -lasound (no code change, and is unneeded)
+               -DQT_FEATURE_flite_alsa=OFF
+       )
+
+       qt6-build_src_configure
+}

Reply via email to