commit:     aca0be61de8ab543060f539a82aa36c948288c25
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 31 15:50:40 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Jan 31 15:57:23 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=aca0be61

kde-plasma/kdeplasma-addons: Add USE dictionary

Making dev-qt/qtwebengine optional.

Package-Manager: Portage-2.3.21, Repoman-2.3.6

 kde-plasma/kdeplasma-addons/kdeplasma-addons-5.12.49.9999.ebuild | 5 +++--
 kde-plasma/kdeplasma-addons/kdeplasma-addons-9999.ebuild         | 5 +++--
 kde-plasma/kdeplasma-addons/metadata.xml                         | 1 +
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/kde-plasma/kdeplasma-addons/kdeplasma-addons-5.12.49.9999.ebuild 
b/kde-plasma/kdeplasma-addons/kdeplasma-addons-5.12.49.9999.ebuild
index a047224343..6c2b4ea1d4 100644
--- a/kde-plasma/kdeplasma-addons/kdeplasma-addons-5.12.49.9999.ebuild
+++ b/kde-plasma/kdeplasma-addons/kdeplasma-addons-5.12.49.9999.ebuild
@@ -8,7 +8,7 @@ inherit kde5
 DESCRIPTION="Extra Plasma applets and engines"
 LICENSE="GPL-2 LGPL-2"
 KEYWORDS=""
-IUSE="share"
+IUSE="dictionary share"
 
 DEPEND="
        $(add_frameworks_dep kactivities)
@@ -38,9 +38,9 @@ DEPEND="
        $(add_qt_dep qtdbus)
        $(add_qt_dep qtdeclarative)
        $(add_qt_dep qtgui)
-       $(add_qt_dep qtwebengine)
        $(add_qt_dep qtwidgets)
        $(add_qt_dep qtx11extras)
+       dictionary? ( $(add_qt_dep qtwebengine) )
        share? ( dev-libs/purpose:5 )
 "
 RDEPEND="${DEPEND}
@@ -51,6 +51,7 @@ RDEPEND="${DEPEND}
 
 src_configure() {
        local mycmakeargs=(
+               $(cmake-utils_use_find_package dictionary Qt5WebEngine)
                $(cmake-utils_use_find_package share KDEExperimentalPurpose)
        )
 

diff --git a/kde-plasma/kdeplasma-addons/kdeplasma-addons-9999.ebuild 
b/kde-plasma/kdeplasma-addons/kdeplasma-addons-9999.ebuild
index a668bdd3f8..a5b36737f9 100644
--- a/kde-plasma/kdeplasma-addons/kdeplasma-addons-9999.ebuild
+++ b/kde-plasma/kdeplasma-addons/kdeplasma-addons-9999.ebuild
@@ -8,7 +8,7 @@ inherit kde5
 DESCRIPTION="Extra Plasma applets and engines"
 LICENSE="GPL-2 LGPL-2"
 KEYWORDS=""
-IUSE="share"
+IUSE="dictionary share"
 
 DEPEND="
        $(add_frameworks_dep karchive)
@@ -36,8 +36,8 @@ DEPEND="
        $(add_qt_dep qtdbus)
        $(add_qt_dep qtdeclarative)
        $(add_qt_dep qtgui)
-       $(add_qt_dep qtwebengine)
        $(add_qt_dep qtwidgets)
+       dictionary? ( $(add_qt_dep qtwebengine) )
        share? ( dev-libs/purpose:5 )
 "
 RDEPEND="${DEPEND}
@@ -48,6 +48,7 @@ RDEPEND="${DEPEND}
 
 src_configure() {
        local mycmakeargs=(
+               $(cmake-utils_use_find_package dictionary Qt5WebEngine)
                $(cmake-utils_use_find_package share KF5Purpose)
        )
 

diff --git a/kde-plasma/kdeplasma-addons/metadata.xml 
b/kde-plasma/kdeplasma-addons/metadata.xml
index fc6c01ae83..8583a65535 100644
--- a/kde-plasma/kdeplasma-addons/metadata.xml
+++ b/kde-plasma/kdeplasma-addons/metadata.xml
@@ -6,6 +6,7 @@
                <name>Gentoo KDE Project</name>
        </maintainer>
        <use>
+               <flag name="dictionary">Enable dictionary applet using 
<pkg>dev-qt/qtwebengine</pkg></flag>
                <flag name="share">Enable applet for quickly sharing data to a 
variety of sources</flag>
        </use>
 </pkgmetadata>

Reply via email to