summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-03-12 17:32:49 +0100
committerMichał Górny <mgorny@gentoo.org>2018-03-12 18:07:54 +0100
commit66e26409bfde3ed83954d3f6513045801bee6cf7 (patch)
treeeb0f5c788b38f7843de526045d79517708078cad /dev-libs/libgit2
parentdev-libs/libgit2: Bump to EAPI=6, modernize (diff)
downloadgentoo-66e26409bfde3ed83954d3f6513045801bee6cf7.tar.gz
gentoo-66e26409bfde3ed83954d3f6513045801bee6cf7.tar.bz2
gentoo-66e26409bfde3ed83954d3f6513045801bee6cf7.zip
dev-libs/libgit2: Add missing flag+dependency on net-misc/curl
Diffstat (limited to 'dev-libs/libgit2')
-rw-r--r--dev-libs/libgit2/libgit2-9999.ebuild7
-rw-r--r--dev-libs/libgit2/metadata.xml2
2 files changed, 8 insertions, 1 deletions
diff --git a/dev-libs/libgit2/libgit2-9999.ebuild b/dev-libs/libgit2/libgit2-9999.ebuild
index 19fc4bd0b35b..549b491f6136 100644
--- a/dev-libs/libgit2/libgit2-9999.ebuild
+++ b/dev-libs/libgit2/libgit2-9999.ebuild
@@ -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
}
diff --git a/dev-libs/libgit2/metadata.xml b/dev-libs/libgit2/metadata.xml
index 341b4d4cf6d8..e090ecb97fe2 100644
--- a/dev-libs/libgit2/metadata.xml
+++ b/dev-libs/libgit2/metadata.xml
@@ -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>