commit:     f9c775e6b33840ed34f393b69750927026309eed
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 19 22:20:48 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Oct 19 22:30:58 2017 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=f9c775e6

kde-apps/kdepim-runtime: Add USE=speech

Upstream commit 132d5d83940f0304d036601a41a6f428cbd6c999

Package-Manager: Portage-2.3.11, Repoman-2.3.3

 kde-apps/kdepim-runtime/kdepim-runtime-17.08.49.9999.ebuild | 13 +++++++++++--
 kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild          | 13 +++++++++++--
 kde-apps/kdepim-runtime/metadata.xml                        |  3 +++
 3 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/kde-apps/kdepim-runtime/kdepim-runtime-17.08.49.9999.ebuild 
b/kde-apps/kdepim-runtime/kdepim-runtime-17.08.49.9999.ebuild
index 0ecb11150c..bd81677e4e 100644
--- a/kde-apps/kdepim-runtime/kdepim-runtime-17.08.49.9999.ebuild
+++ b/kde-apps/kdepim-runtime/kdepim-runtime-17.08.49.9999.ebuild
@@ -11,9 +11,9 @@ inherit kde5
 DESCRIPTION="Runtime plugin collection to extend the functionality of KDE PIM"
 LICENSE="GPL-2+ LGPL-2.1+"
 KEYWORDS=""
-IUSE=""
+IUSE="speech"
 
-# TODO kolab, Qt5TextToSpeech
+# TODO kolab
 CDEPEND="
        $(add_frameworks_dep kcodecs)
        $(add_frameworks_dep kcompletion)
@@ -59,6 +59,7 @@ CDEPEND="
        $(add_qt_dep qtxml)
        dev-libs/cyrus-sasl:2
        dev-libs/libical:=
+       speech? ( $(add_qt_dep qtspeech) )
 "
 DEPEND="${CDEPEND}
        $(add_qt_dep qtxmlpatterns)
@@ -70,3 +71,11 @@ RDEPEND="${CDEPEND}
 "
 
 RESTRICT+=" test"
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_find_package speech Qt5TextToSpeech)
+       )
+
+       kde5_src_configure
+}

diff --git a/kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild 
b/kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild
index 2b617c483c..f0529ba8dd 100644
--- a/kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild
+++ b/kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild
@@ -11,9 +11,9 @@ inherit kde5
 DESCRIPTION="Runtime plugin collection to extend the functionality of KDE PIM"
 LICENSE="GPL-2+ LGPL-2.1+"
 KEYWORDS=""
-IUSE=""
+IUSE="speech"
 
-# TODO kolab, Qt5TextToSpeech
+# TODO kolab
 CDEPEND="
        $(add_frameworks_dep kcodecs)
        $(add_frameworks_dep kcompletion)
@@ -58,6 +58,7 @@ CDEPEND="
        $(add_qt_dep qtxml)
        dev-libs/cyrus-sasl:2
        dev-libs/libical:=
+       speech? ( $(add_qt_dep qtspeech) )
 "
 DEPEND="${CDEPEND}
        $(add_qt_dep qtxmlpatterns)
@@ -70,3 +71,11 @@ RDEPEND="${CDEPEND}
 "
 
 RESTRICT+=" test"
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_find_package speech Qt5TextToSpeech)
+       )
+
+       kde5_src_configure
+}

diff --git a/kde-apps/kdepim-runtime/metadata.xml 
b/kde-apps/kdepim-runtime/metadata.xml
index 2fdbf33d96..b337e66e24 100644
--- a/kde-apps/kdepim-runtime/metadata.xml
+++ b/kde-apps/kdepim-runtime/metadata.xml
@@ -5,4 +5,7 @@
                <email>[email protected]</email>
                <name>Gentoo KDE Project</name>
        </maintainer>
+       <use>
+               <flag name="speech">Enable text-to-speech support</flag>
+       </use>
 </pkgmetadata>

Reply via email to