summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-apps/kdepim-runtime/kdepim-runtime-17.08.49.9999.ebuild13
-rw-r--r--kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild13
-rw-r--r--kde-apps/kdepim-runtime/metadata.xml3
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 0ecb11150c2..bd81677e4e0 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 2b617c483c4..f0529ba8dd2 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 2fdbf33d963..b337e66e249 100644
--- a/kde-apps/kdepim-runtime/metadata.xml
+++ b/kde-apps/kdepim-runtime/metadata.xml
@@ -5,4 +5,7 @@
<email>kde@gentoo.org</email>
<name>Gentoo KDE Project</name>
</maintainer>
+ <use>
+ <flag name="speech">Enable text-to-speech support</flag>
+ </use>
</pkgmetadata>