dev-libs/libgit2: Add missing flag+dependency on net-misc/curl
authorMichał Górny <mgorny@gentoo.org>
Mon, 12 Mar 2018 16:32:49 +0000 (17:32 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 12 Mar 2018 17:07:54 +0000 (18:07 +0100)
dev-libs/libgit2/libgit2-9999.ebuild
dev-libs/libgit2/metadata.xml

index 19fc4bd0b35b53e23658c27204fb41c98ee46ef5..549b491f61361416ac1add2ff80435c6e347f782 100644 (file)
@@ -18,13 +18,17 @@ HOMEPAGE="https://libgit2.github.com/"
 
 LICENSE="GPL-2-with-linking-exception"
 SLOT="0/26"
-IUSE="examples gssapi libressl +ssh test +threads trace"
+IUSE="+curl examples gssapi libressl +ssh test +threads trace"
 
 RDEPEND="
        !libressl? ( dev-libs/openssl:0= )
        libressl? ( dev-libs/libressl:0= )
        sys-libs/zlib
        net-libs/http-parser:=
+       curl? (
+               !libressl? ( net-misc/curl:=[curl_ssl_openssl(-)] )
+               libressl? ( net-misc/curl:=[curl_ssl_libressl(-)] )
+       )
        gssapi? ( virtual/krb5 )
        ssh? ( net-libs/libssh2 )
 "
@@ -49,6 +53,7 @@ src_configure() {
                -DUSE_GSSAPI=$(usex gssapi)
                -DUSE_SSH=$(usex ssh)
                -DTHREADSAFE=$(usex threads)
+               -DCURL=$(usex curl)
        )
        cmake-utils_src_configure
 }
index 341b4d4cf6d872846d980632993c2290f7bb1ac3..e090ecb97fe292c5271bf03d9d3c2df0928d30d5 100644 (file)
@@ -15,6 +15,8 @@
                speed custom Git applications in any language which supports C bindings.
        </longdescription>
        <use>
+               <flag name="curl">Use <pkg>net-misc/curl</pkg> for HTTP support
+                       (otherwise, limited built-in implementation will be used)</flag>
                <flag name="gssapi">Enable GSSAPI support for SPNEGO auth</flag>
                <flag name="ssh">Enable SSH transport support</flag>
                <flag name="trace">Enable tracing support</flag>