app-misc/onefetch: unbundle libgit2

* The libgit2-sys crate dynamically links to system lib, if provided,
  before falling back to building and statically linking it.

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2023-05-16 03:37:34 +02:00
parent 4d9f2347e8
commit 3f260fa5ce

View File

@@ -432,7 +432,13 @@ PATCHES=(
"${FILESDIR}"/${P}-fix-missing-git-repo.patch
)
# libgit2-sys-${cver}+${sover} dynamically links to libgit2.so, if provided
# check https://github.com/rust-lang/git2-rs/blob/libgit2-sys-${cver}%2B${sover}/libgit2-sys/build.rs
# and Cargo.lock before dep bump
DEPEND=">=dev-libs/libgit2-1.6.4 <dev-libs/libgit2-1.7.0"
RDEPEND="${DEPEND}"
BDEPEND="test? ( dev-vcs/git )"
QA_FLAGS_IGNORED="usr/bin/onefetch"
src_compile() {