net-wireless/wpa_supplicant: Move USE=gnutls behind USE=ssl flag.
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sun, 6 Nov 2016 21:26:04 +0000 (22:26 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Sun, 4 Dec 2016 00:54:19 +0000 (01:54 +0100)
Gentoo-Bug: https://bugs.gentoo.org/587238

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2673

net-wireless/wpa_supplicant/wpa_supplicant-2.6-r1.ebuild

index 5db32384b64029fad8c819651b52cd40eef8ff84..18e0b3ea15ddd75baceca4a540fa318ea7d18b58 100644 (file)
@@ -14,7 +14,7 @@ LICENSE="|| ( GPL-2 BSD )"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
 IUSE="ap dbus gnutls eap-sim fasteap +hs2-0 libressl p2p ps3 qt5 readline selinux smartcard ssl tdls uncommon-eap-types wimax wps kernel_linux kernel_FreeBSD"
-REQUIRED_USE="fasteap? ( !gnutls !ssl ) smartcard? ( ssl )"
+REQUIRED_USE="fasteap? ( !ssl ) smartcard? ( ssl )"
 
 CDEPEND="dbus? ( sys-apps/dbus )
        kernel_linux? (
@@ -34,16 +34,16 @@ CDEPEND="dbus? ( sys-apps/dbus )
                sys-libs/readline:0=
        )
        ssl? (
-               !libressl? ( dev-libs/openssl:0= )
-               libressl? ( dev-libs/libressl:0= )
-       )
-       !ssl? (
                gnutls? (
-                       dev-libs/libgcrypt:*
-                       net-libs/gnutls
+                       dev-libs/libgcrypt:0=
+                       net-libs/gnutls:=
+               )
+               !gnutls? (
+                       !libressl? ( dev-libs/openssl:0= )
+                       libressl? ( dev-libs/libressl:0= )
                )
-               !gnutls? ( dev-libs/libtommath )
        )
+       !ssl? ( dev-libs/libtommath )
 "
 DEPEND="${CDEPEND}
        virtual/pkgconfig
@@ -72,8 +72,12 @@ Kconfig_style_config() {
 }
 
 pkg_setup() {
-       if use gnutls && use ssl ; then
-               elog "You have both 'gnutls' and 'ssl' USE flags enabled: defaulting to USE=\"ssl\""
+       if use ssl ; then
+               if use gnutls && use libressl ; then
+                       elog "You have both 'gnutls' and 'libressl' USE flags enabled: defaulting to USE=\"gnutls\""
+               fi
+       else
+               elog "You have 'ssl' USE flag disabled: defaulting to internal TLS implementation"
        fi
 }
 
@@ -204,10 +208,12 @@ src_configure() {
 
        # SSL authentication methods
        if use ssl ; then
-               Kconfig_style_config TLS openssl
-       elif use gnutls ; then
-               Kconfig_style_config TLS gnutls
-               Kconfig_style_config GNUTLS_EXTRA
+               if use gnutls ; then
+                       Kconfig_style_config TLS gnutls
+                       Kconfig_style_config GNUTLS_EXTRA
+               else
+                       Kconfig_style_config TLS openssl
+               fi
        else
                Kconfig_style_config TLS internal
        fi