summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-apps/ktp-text-ui/ktp-text-ui-15.12.3.ebuild13
-rw-r--r--kde-apps/ktp-text-ui/ktp-text-ui-16.04.49.9999.ebuild11
-rw-r--r--kde-apps/ktp-text-ui/ktp-text-ui-9999.ebuild11
-rw-r--r--kde-apps/ktp-text-ui/metadata.xml3
4 files changed, 34 insertions, 4 deletions
diff --git a/kde-apps/ktp-text-ui/ktp-text-ui-15.12.3.ebuild b/kde-apps/ktp-text-ui/ktp-text-ui-15.12.3.ebuild
index ec894004b9c..b6b821e6c76 100644
--- a/kde-apps/ktp-text-ui/ktp-text-ui-15.12.3.ebuild
+++ b/kde-apps/ktp-text-ui/ktp-text-ui-15.12.3.ebuild
@@ -10,8 +10,8 @@ DESCRIPTION="KDE Telepathy text chat window"
HOMEPAGE="https://community.kde.org/Real-Time_Communication_and_Collaboration"
LICENSE="Apache-2.0 AFL-2.1 BSD GPL-2+ LGPL-2.1+ MIT"
-KEYWORDS=" ~amd64 ~x86"
-IUSE=""
+KEYWORDS="~amd64 ~x86"
+IUSE="speech"
DEPEND="
$(add_frameworks_dep karchive)
@@ -42,8 +42,17 @@ DEPEND="
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
net-libs/telepathy-qt[qt5]
+ speech? ( $(add_qt_dep qtspeech) )
"
RDEPEND="${DEPEND}
$(add_kdeapps_dep ktp-contact-list)
!net-im/ktp-text-ui
"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package speech Qt5TextToSpeech)
+ )
+
+ kde5_src_configure
+}
diff --git a/kde-apps/ktp-text-ui/ktp-text-ui-16.04.49.9999.ebuild b/kde-apps/ktp-text-ui/ktp-text-ui-16.04.49.9999.ebuild
index 97faf84fe7d..8809e3c5fd4 100644
--- a/kde-apps/ktp-text-ui/ktp-text-ui-16.04.49.9999.ebuild
+++ b/kde-apps/ktp-text-ui/ktp-text-ui-16.04.49.9999.ebuild
@@ -11,7 +11,7 @@ HOMEPAGE="https://community.kde.org/Real-Time_Communication_and_Collaboration"
LICENSE="Apache-2.0 AFL-2.1 BSD GPL-2+ LGPL-2.1+ MIT"
KEYWORDS=""
-IUSE=""
+IUSE="speech"
DEPEND="
$(add_frameworks_dep karchive)
@@ -42,8 +42,17 @@ DEPEND="
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
net-libs/telepathy-qt[qt5]
+ speech? ( $(add_qt_dep qtspeech) )
"
RDEPEND="${DEPEND}
$(add_kdeapps_dep ktp-contact-list)
!net-im/ktp-text-ui
"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package speech Qt5TextToSpeech)
+ )
+
+ kde5_src_configure
+}
diff --git a/kde-apps/ktp-text-ui/ktp-text-ui-9999.ebuild b/kde-apps/ktp-text-ui/ktp-text-ui-9999.ebuild
index 97faf84fe7d..8809e3c5fd4 100644
--- a/kde-apps/ktp-text-ui/ktp-text-ui-9999.ebuild
+++ b/kde-apps/ktp-text-ui/ktp-text-ui-9999.ebuild
@@ -11,7 +11,7 @@ HOMEPAGE="https://community.kde.org/Real-Time_Communication_and_Collaboration"
LICENSE="Apache-2.0 AFL-2.1 BSD GPL-2+ LGPL-2.1+ MIT"
KEYWORDS=""
-IUSE=""
+IUSE="speech"
DEPEND="
$(add_frameworks_dep karchive)
@@ -42,8 +42,17 @@ DEPEND="
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
net-libs/telepathy-qt[qt5]
+ speech? ( $(add_qt_dep qtspeech) )
"
RDEPEND="${DEPEND}
$(add_kdeapps_dep ktp-contact-list)
!net-im/ktp-text-ui
"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package speech Qt5TextToSpeech)
+ )
+
+ kde5_src_configure
+}
diff --git a/kde-apps/ktp-text-ui/metadata.xml b/kde-apps/ktp-text-ui/metadata.xml
index 2fdbf33d963..33bd3090f92 100644
--- a/kde-apps/ktp-text-ui/metadata.xml
+++ b/kde-apps/ktp-text-ui/metadata.xml
@@ -5,4 +5,7 @@
<email>kde@gentoo.org</email>
<name>Gentoo KDE Project</name>
</maintainer>
+ <use>
+ <flag name="speech">Enable incoming messages to be read out using text-to-speech</flag>
+ </use>
</pkgmetadata>