gentoo/dev-util/cargo-tarpaulin/cargo-tarpaulin-0.32.8.ebuild
Arthur Zamarin 087770f783
dev-util/cargo-tarpaulin: add 0.32.8
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-06-27 13:41:54 +03:00

52 lines
1.2 KiB
Bash

# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=""
RUST_MIN_VER="1.85.0"
inherit cargo
DESCRIPTION="Cargo-Tarpaulin is a tool to determine code coverage achieved via tests"
HOMEPAGE="https://github.com/xd009642/tarpaulin"
SRC_URI="https://github.com/xd009642/tarpaulin/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
SRC_URI+=" https://github.com/gentoo-crate-dist/tarpaulin/releases/download/${PV}/${P#cargo-}-crates.tar.xz"
S=${WORKDIR}/${P#cargo-}
LICENSE="|| ( Apache-2.0 MIT )"
# Dependent crate licenses
LICENSE+=" Apache-2.0 MIT Unicode-3.0 ZLIB"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
dev-libs/openssl:=
dev-libs/libgit2:=
net-libs/libssh2
"
RDEPEND="${DEPEND}"
QA_FLAGS_IGNORED="/usr/bin/cargo-tarpaulin"
PATCHES=(
# integration tests require internet access
"${FILESDIR}/cargo-tarpaulin-0.20.1-tests.patch"
# test fails when not in a git repo
"${FILESDIR}/cargo-tarpaulin-0.25.0-tests.patch"
)
DOCS=( CHANGELOG.md CONTRIBUTING.md README.md )
src_configure() {
export LIBGIT2_NO_VENDOR=1
export LIBSSH2_SYS_USE_PKG_CONFIG=1
cargo_src_configure
}
src_install() {
cargo_src_install
einstalldocs
}