Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: dev-qt/qtspeech/
Date: Mon, 23 Aug 2021 01:14:09
Message-Id: 1629681218.afcff079f245a0bab63d4e7a69e608cad67d5f54.asturm@gentoo
1 commit: afcff079f245a0bab63d4e7a69e608cad67d5f54
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 22 21:15:22 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 23 01:13:38 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=afcff079
7
8 dev-qt/qtspeech: Add IUSE=flite
9
10 Bug: https://bugs.gentoo.org/807583
11 Package-Manager: Portage-3.0.22, Repoman-3.0.3
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 dev-qt/qtspeech/metadata.xml | 3 +++
15 dev-qt/qtspeech/qtspeech-5.15.9999.ebuild | 18 ++++++++++++++++--
16 2 files changed, 19 insertions(+), 2 deletions(-)
17
18 diff --git a/dev-qt/qtspeech/metadata.xml b/dev-qt/qtspeech/metadata.xml
19 index 32568f62..020b892f 100644
20 --- a/dev-qt/qtspeech/metadata.xml
21 +++ b/dev-qt/qtspeech/metadata.xml
22 @@ -9,6 +9,9 @@
23 <bugs-to>https://bugreports.qt.io/</bugs-to>
24 <doc>https://doc.qt.io/</doc>
25 </upstream>
26 + <use>
27 + <flag name="flite">Enable text-to-speech synthesizer plugin using <pkg>app-accessibility/flite</pkg> engine</flag>
28 + </use>
29 <slots>
30 <subslots>
31 Must only be used by packages that are known to use private parts of the Qt API.
32
33 diff --git a/dev-qt/qtspeech/qtspeech-5.15.9999.ebuild b/dev-qt/qtspeech/qtspeech-5.15.9999.ebuild
34 index 8a71d241..c2273fe4 100644
35 --- a/dev-qt/qtspeech/qtspeech-5.15.9999.ebuild
36 +++ b/dev-qt/qtspeech/qtspeech-5.15.9999.ebuild
37 @@ -11,11 +11,25 @@ if [[ ${QT5_BUILD_TYPE} == release ]]; then
38 KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
39 fi
40
41 -# TODO: flite plugin - needs 2.0.0 (not yet in tree)
42 -IUSE=""
43 +IUSE="alsa flite"
44
45 RDEPEND="
46 >=app-accessibility/speech-dispatcher-0.8.7
47 ~dev-qt/qtcore-${PV}
48 + flite? (
49 + >=app-accessibility/flite-2[alsa?]
50 + ~dev-qt/qtmultimedia-${PV}[alsa?]
51 + alsa? ( media-libs/alsa-lib )
52 + )
53 "
54 DEPEND="${RDEPEND}"
55 +
56 +src_prepare() {
57 + qt_use_disable_config flite flite \
58 + src/plugins/tts/tts.pro
59 +
60 + qt_use_disable_config alsa flite_alsa \
61 + src/plugins/tts/flite/flite.pro
62 +
63 + qt5-build_src_prepare
64 +}