commit:     00e134dafc9e9d7eff64d412cdf402f9b9a2b033
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 10 22:11:06 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 22:29:00 2024 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=00e134da

kde-apps/kdepim-addons: Add IUSE activities

Upstream commit d8db1c059b447090d28ad2920a055e303058e6bb

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-apps/kdepim-addons/kdepim-addons-9999.ebuild | 6 ++++--
 kde-apps/kdepim-addons/metadata.xml              | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/kde-apps/kdepim-addons/kdepim-addons-9999.ebuild 
b/kde-apps/kdepim-addons/kdepim-addons-9999.ebuild
index a3a7771955..5d783baa0c 100644
--- a/kde-apps/kdepim-addons/kdepim-addons-9999.ebuild
+++ b/kde-apps/kdepim-addons/kdepim-addons-9999.ebuild
@@ -15,7 +15,7 @@ HOMEPAGE="https://apps.kde.org/kontact/";
 LICENSE="GPL-2+ LGPL-2.1+"
 SLOT="6"
 KEYWORDS=""
-IUSE="importwizard markdown"
+IUSE="activities importwizard markdown"
 
 RESTRICT="test"
 
@@ -42,7 +42,7 @@ RDEPEND="
        >=kde-apps/libktnef-${PVCUT}:6
        >=kde-apps/mailcommon-${PVCUT}:6
        >=kde-apps/messagelib-${PVCUT}:6
-       >=kde-apps/pimcommon-${PVCUT}:6
+       >=kde-apps/pimcommon-${PVCUT}:6[activities?]
        >=kde-frameworks/kcolorscheme-${KFMIN}:6
        >=kde-frameworks/kcompletion-${KFMIN}:6
        >=kde-frameworks/kconfig-${KFMIN}:6
@@ -60,6 +60,7 @@ RDEPEND="
        >=kde-frameworks/kxmlgui-${KFMIN}:6
        >=kde-frameworks/prison-${KFMIN}:6
        >=kde-frameworks/syntax-highlighting-${KFMIN}:6
+       activities? ( kde-plasma/plasma-activities:6 )
        importwizard? ( >=kde-apps/akonadi-import-wizard-${PVCUT}:6 )
        markdown? ( app-text/discount:= )
 "
@@ -70,6 +71,7 @@ src_configure() {
                # not packaged (bug 911819), but if present leads to rust 
shenanigans
                -DCMAKE_DISABLE_FIND_PACKAGE_Corrosion=ON # for adblock 
support, bug 940898
                -DCMAKE_DISABLE_FIND_PACKAGE_KLLMCore=ON # utilities/alpaka, 
not packaged
+               -DOPTION_USE_PLASMA_ACTIVITIES=$(usex activities)
                $(cmake_use_find_package importwizard KPim6ImportWizard)
                $(cmake_use_find_package markdown Discount)
        )

diff --git a/kde-apps/kdepim-addons/metadata.xml 
b/kde-apps/kdepim-addons/metadata.xml
index ad367e9b99..1c11d8c688 100644
--- a/kde-apps/kdepim-addons/metadata.xml
+++ b/kde-apps/kdepim-addons/metadata.xml
@@ -9,6 +9,7 @@
                <bugs-to>https://bugs.kde.org/</bugs-to>
        </upstream>
        <use>
+               <flag name="activities">Enable Plasma Activities support via 
kde-plasma/plasma-activities</flag>
                <flag name="importwizard">Enable additional import plugins for 
<pkg>kde-apps/akonadi-import-wizard</pkg></flag>
                <flag name="markdown">Enable Markdown support via 
<pkg>app-text/discount</pkg></flag>
        </use>

Reply via email to