dev-vcs/pkgcruft-git: add 0.0.5

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-12-21 10:40:44 +00:00
parent 9572692ffd
commit df61303a80
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 88 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST pkgcruft-git-0.0.3.tar.xz 46210676 BLAKE2B d3bde465dd57d05b1322f2b2460be0c96c345c6513af7ba0d2d6ea91f20005ae0f74d7dd5e78e86fa963fcd8087f7665b08adf2e85daedd07d2501dd6c762450 SHA512 f71e12578bdfb13636329a21d204bcef93eb9395461ab42c853b25bae7b63b6c25d5cecf5c4b552ad8a2584868884e4e02c5b31ed7a188df4ca014d110089c60 DIST pkgcruft-git-0.0.3.tar.xz 46210676 BLAKE2B d3bde465dd57d05b1322f2b2460be0c96c345c6513af7ba0d2d6ea91f20005ae0f74d7dd5e78e86fa963fcd8087f7665b08adf2e85daedd07d2501dd6c762450 SHA512 f71e12578bdfb13636329a21d204bcef93eb9395461ab42c853b25bae7b63b6c25d5cecf5c4b552ad8a2584868884e4e02c5b31ed7a188df4ca014d110089c60
DIST pkgcruft-git-0.0.5.tar.xz 38901676 BLAKE2B 3dab11b2638b1f14b9c99181a24eaac062e740b6ee69808b08bc7af67a021db9a832475de433a6dc6b5aceb3f39f1d524ab04a6cd0461327885467535d6c9461 SHA512 1511bff8658944792d4810fba203cb3408289dc814707d06d01e2ac0229083c67bbc02f5caec53fbd27589cdff68cc3efba4c7938b827770928a2745d67dfb78

View File

@ -0,0 +1,86 @@
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=" "
LLVM_COMPAT=( {17..21} )
RUST_MIN_VER="1.90.0"
inherit cargo edo llvm-r2 multiprocessing toolchain-funcs
DESCRIPTION="QA support for verifying git commits via pkgcruft"
HOMEPAGE="https://pkgcraft.github.io/"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft"
inherit git-r3
S="${WORKDIR}"/${P}/crates/${PN}
else
SRC_URI="https://github.com/pkgcraft/pkgcraft/releases/download/${P}/${P}.tar.xz"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
Apache-2.0 BSD-2 BSD CC0-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0
Unicode-3.0
"
SLOT="0"
IUSE="test"
# Fails to link w/ missing libssh2 with some CFLAGS
RESTRICT="!test? ( test ) test"
DEPEND="
dev-libs/libgit2:=
dev-libs/openssl:=
"
RDEPEND="${DEPEND}"
# clang needed for bindgen
BDEPEND+="
$(llvm_gen_dep '
llvm-core/clang:${LLVM_SLOT}
')
dev-libs/protobuf[protoc(+)]
test? ( dev-util/cargo-nextest )
"
QA_FLAGS_IGNORED="usr/bin/pkgcruft-git"
pkg_setup() {
llvm-r2_pkg_setup
rust_pkg_setup
}
src_unpack() {
if [[ ${PV} == 9999 ]] ; then
git-r3_src_unpack
cargo_live_src_unpack
else
cargo_src_unpack
fi
}
src_compile() {
# For scallop building bash
# TODO: Package scallop
tc-export AR CC
cargo_src_compile
}
src_test() {
unset CLICOLOR CLICOLOR_FORCE
# TODO: Maybe move into eclass (and maybe have a cargo_enable_tests
# helper)
local -x NEXTEST_TEST_THREADS="$(makeopts_jobs)"
edo cargo nextest run $(usev !debug '--release') \
--color always \
--tests \
--no-fail-fast
}

View File

@ -66,6 +66,7 @@ src_unpack() {
src_compile() { src_compile() {
# For scallop building bash # For scallop building bash
# TODO: Package scallop
tc-export AR CC tc-export AR CC
cargo_src_compile cargo_src_compile