gnome-extra/nm-applet: control libnm-glib dependency via 'gtk' IUSE
authorJoonas Niilola <juippis@gentoo.org>
Sun, 16 Feb 2020 17:29:05 +0000 (19:29 +0200)
committerMatt Turner <mattst88@gentoo.org>
Wed, 11 Mar 2020 21:30:36 +0000 (14:30 -0700)
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
gnome-extra/nm-applet/nm-applet-1.8.24.ebuild

index 771cfea9634b4a8a56ae6ff8dcb4d6169019b301..f8af43807f492f9c43316707046cab527fe46df8 100644 (file)
@@ -12,7 +12,7 @@ HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
 
 LICENSE="GPL-2+"
 SLOT="0"
-IUSE="ayatana +introspection +gcr +modemmanager selinux teamd"
+IUSE="ayatana gtk +introspection +gcr +modemmanager selinux teamd"
 KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ppc ppc64 ~sparc x86"
 
 RDEPEND="
@@ -32,6 +32,7 @@ RDEPEND="
        ayatana? (
                dev-libs/libappindicator:3
                >=dev-libs/libdbusmenu-16.04.0 )
+       gtk? ( ~net-misc/networkmanager-1.18.4 )
        introspection? ( >=dev-libs/gobject-introspection-0.9.6:= )
        virtual/freedesktop-icon-theme
        gcr? ( >=app-crypt/gcr-3.14:=[gtk] )
@@ -50,7 +51,7 @@ PDEPEND="virtual/notification-daemon" #546134
 src_configure() {
        local myconf=(
                --with-appindicator=$(usex ayatana ubuntu no)
-               --with-libnm-gtk
+               $(use_with gtk libnm-gtk)
                --without-libnma-gtk4
                --disable-lto
                --disable-ld-gc