commit:     4f0d6bb82c48f8fc283102f9f1f56b927b3426f0
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 10 10:56:30 2023 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Sep 10 11:08:34 2023 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=4f0d6bb8

kde-frameworks/kdelibs4support: Add IUSE networkmanager

Even if there is no linking with libnm.so, the service will be
required at runtime if we build with this feature enabled.

See also: https://github.com/gentoo/gentoo/pull/32487

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

 kde-frameworks/kdelibs4support/kdelibs4support-5.9999.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kde-frameworks/kdelibs4support/kdelibs4support-5.9999.ebuild 
b/kde-frameworks/kdelibs4support/kdelibs4support-5.9999.ebuild
index 9245316023..769e3be731 100644
--- a/kde-frameworks/kdelibs4support/kdelibs4support-5.9999.ebuild
+++ b/kde-frameworks/kdelibs4support/kdelibs4support-5.9999.ebuild
@@ -14,7 +14,7 @@ DESCRIPTION="Framework easing the development transition from 
KDELibs 4 to KF 5"
 
 LICENSE="LGPL-2+"
 KEYWORDS=""
-IUSE="X"
+IUSE="networkmanager X"
 
 RESTRICT="test"
 
@@ -56,6 +56,7 @@ COMMON_DEPEND="
        =kde-frameworks/kxmlgui-${PVCUT}*:5
        =kde-frameworks/solid-${PVCUT}*:5
        virtual/libintl
+       networkmanager? ( net-misc/networkmanager )
        X? (
                >=dev-qt/qtx11extras-${QTMIN}:5
                x11-libs/libICE
@@ -98,6 +99,7 @@ src_prepare() {
 src_configure() {
        local mycmakeargs=(
                -DWITH_X11=$(usex X)
+               $(cmake_use_find_package networkmanager NetworkManager)
        )
 
        ecm_src_configure

Reply via email to