diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-03-13 16:55:35 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-03-13 16:55:35 +0000 |
commit | 1dde4e5c4b92d849bf1abf0a48135b2a0644f7e1 (patch) | |
tree | c99a472cce74148d499f42ada873454b0e32a42d /dev-libs/libgit2/libgit2-9999.ebuild | |
parent | da6a52f691ef980bab92d003d5df8f463c623af8 (diff) |
gentoo resync : 13.03.2018
Diffstat (limited to 'dev-libs/libgit2/libgit2-9999.ebuild')
-rw-r--r-- | dev-libs/libgit2/libgit2-9999.ebuild | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/dev-libs/libgit2/libgit2-9999.ebuild b/dev-libs/libgit2/libgit2-9999.ebuild index 899540f73af0..677c3a9a8184 100644 --- a/dev-libs/libgit2/libgit2-9999.ebuild +++ b/dev-libs/libgit2/libgit2-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=6 -inherit cmake-utils multilib +inherit cmake-utils if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" @@ -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 ) + !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 ) " @@ -36,7 +40,7 @@ DOCS=( AUTHORS CONTRIBUTING.md CONVENTIONS.md README.md ) src_prepare() { # skip online tests - sed -i '/libgit2_clar/s/-ionline/-xonline/' CMakeLists.txt || die + sed -i '/libgit2_clar/s/-ionline/-xonline/' tests/CMakeLists.txt || die cmake-utils_src_prepare } @@ -44,11 +48,12 @@ src_prepare() { src_configure() { local mycmakeargs=( -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)" - $(cmake-utils_use_build test CLAR) - $(cmake-utils_use_enable trace TRACE) - $(cmake-utils_use_use gssapi GSSAPI) - $(cmake-utils_use_use ssh SSH) - $(cmake-utils_use threads THREADSAFE) + -DBUILD_CLAR=$(usex test) + -DENABLE_TRACE=$(usex trace) + -DUSE_GSSAPI=$(usex gssapi) + -DUSE_SSH=$(usex ssh) + -DTHREADSAFE=$(usex threads) + -DCURL=$(usex curl) ) cmake-utils_src_configure } @@ -68,7 +73,7 @@ src_install() { cmake-utils_src_install if use examples ; then - egit_clean examples + find examples -name '.gitignore' -delete || die dodoc -r examples docompress -x /usr/share/doc/${PF}/examples fi |