dev-libs/libgit2: Update live ebuild
authorMichał Górny <mgorny@gentoo.org>
Wed, 10 Apr 2019 14:31:24 +0000 (16:31 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 10 Apr 2019 15:07:21 +0000 (17:07 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-libs/libgit2/libgit2-9999.ebuild

index d10065358a4f306f7ec344126de6431774465cff..bfad5c3fdc157f37b7e53d442e6ee95901211605 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -18,18 +18,15 @@ DESCRIPTION="A linkable library for Git"
 HOMEPAGE="https://libgit2.github.com/"
 
 LICENSE="GPL-2-with-linking-exception"
-SLOT="0/27"
-IUSE="+curl examples gssapi libressl +ssh test +threads trace"
+SLOT="0/28"
+IUSE="examples gssapi libressl +ssh test +threads trace"
+RESTRICT="!test? ( test )"
 
 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 )
 "
@@ -38,15 +35,6 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
 "
 
-DOCS=( AUTHORS CONTRIBUTING.md CONVENTIONS.md README.md )
-
-src_prepare() {
-       # skip online tests
-       sed -i '/libgit2_clar/s/-ionline/-xonline/' tests/CMakeLists.txt || die
-
-       cmake-utils_src_prepare
-}
-
 src_configure() {
        local mycmakeargs=(
                -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
@@ -55,7 +43,6 @@ src_configure() {
                -DUSE_GSSAPI=$(usex gssapi)
                -DUSE_SSH=$(usex ssh)
                -DTHREADSAFE=$(usex threads)
-               -DCURL=$(usex curl)
        )
        cmake-utils_src_configure
 }
@@ -67,12 +54,13 @@ src_test() {
                ewarn "Skipping tests: non-root privileges are required for all tests to pass"
        else
                local TEST_VERBOSE=1
-               cmake-utils_src_test
+               cmake-utils_src_test -R offline
        fi
 }
 
 src_install() {
        cmake-utils_src_install
+       dodoc docs/*.{md,txt}
 
        if use examples ; then
                find examples -name '.gitignore' -delete || die