net-libs/neon: Use standard behavior of gnutls / ssl USE flags.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sat, 28 Sep 2019 02:43:02 +0000 (02:43 +0000)
committerMike Gilbert <floppym@gentoo.org>
Sun, 29 Sep 2019 02:56:14 +0000 (22:56 -0400)
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
net-libs/neon/neon-0.30.2.ebuild

index eea871bc8d5e6a1cafd4a901a7d91dbb56ba36e2..43d846944325b20eb02fb366202688207a2057f6 100644 (file)
@@ -17,19 +17,20 @@ RESTRICT="test"
 
 RDEPEND="expat? ( dev-libs/expat:0=[${MULTILIB_USEDEP}] )
        !expat? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
-       gnutls? (
-               app-misc/ca-certificates
-               net-libs/gnutls:0=[${MULTILIB_USEDEP}]
-               pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] )
-       )
-       !gnutls? ( ssl? (
-               libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
-               !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
-               pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] )
-       ) )
        kerberos? ( virtual/krb5:0=[${MULTILIB_USEDEP}] )
        libproxy? ( net-libs/libproxy:0=[${MULTILIB_USEDEP}] )
        nls? ( virtual/libintl:0=[${MULTILIB_USEDEP}] )
+       ssl? (
+               gnutls? (
+                       app-misc/ca-certificates
+                       net-libs/gnutls:0=[${MULTILIB_USEDEP}]
+               )
+               !gnutls? (
+                       libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
+                       !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
+               )
+               pkcs11? ( dev-libs/pakchois:0=[${MULTILIB_USEDEP}] )
+       )
        zlib? ( sys-libs/zlib:0=[${MULTILIB_USEDEP}] )"
 DEPEND="${RDEPEND}
        virtual/pkgconfig[${MULTILIB_USEDEP}]"
@@ -75,10 +76,12 @@ multilib_src_configure() {
                myconf+=(--with-libxml2)
        fi
 
-       if use gnutls; then
-               myconf+=(--with-ssl=gnutls --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt")
-       elif use ssl; then
-               myconf+=(--with-ssl=openssl)
+       if use ssl; then
+               if use gnutls; then
+                       myconf+=(--with-ssl=gnutls --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt")
+               else
+                       myconf+=(--with-ssl=openssl)
+               fi
        fi
 
        econf \
@@ -105,7 +108,7 @@ multilib_src_install() {
 }
 
 multilib_src_install_all() {
-       find "${ED}" -name "*.la" -delete
+       find "${D}" -name "*.la" -type f -delete || die
 
        dodoc AUTHORS BUGS NEWS README THANKS TODO
 }