dev-util/pkgcruft: add 0.0.8

Some of the tests fail but I'm curious as to if the tinderboxes can
hit it or not.

Bug: https://bugs.gentoo.org/946336
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-12-31 22:30:55 +00:00
parent 10e23ced73
commit 07f35dbde1
3 changed files with 85 additions and 1 deletions
+1
View File
@@ -1,2 +1,3 @@
DIST pkgcruft-0.0.4.tar.xz 24507420 BLAKE2B 89e127bd6f22686c4e0335817ed050bf3edcd8b0247a372531ab5daf020e526721d6e10080c8e1230026d87762e769535187d30a9ff86bbfe4c2f1865a322324 SHA512 464eef7c19313e97eac59367e286181c441e04a76deaa75f551b3866da5dcdb7bfa7703552143b6b32afee5beac85df72af48fe627f8a3838cb823f672f50d84
DIST pkgcruft-0.0.6.tar.xz 24528884 BLAKE2B 88b476920661076dbe70bd0ba0fd84d355dc77d579496702c43f8e55384ea6dce3fe305ef861ecc5c4bcd4e1046d8b672ce1ca0dbc83c7560191c1818761e63a SHA512 f978e1d398c00580990a8026ea6cec5d32825e2e0e831ea059462a3a808899b7a94064bcc91ee6901f55d1085641ccb96211603cac3a30e32a8567706f339fd1
DIST pkgcruft-0.0.8.tar.xz 30828500 BLAKE2B 1e20bd2029d03f56d7454daccbf06e327a5f95b56dbec52c12713f3b32b3423aac89d40c6bb7a0677b5977a06bb2a708bcea669056d78664f605278a0253c82e SHA512 4f791b2d1570fd0b68ca16cd4dd129b6fcfec825a748e2bf80c731eb2f70689ca515b640ca2f65c61673b0d5b766eae64ecbff05e8ad629b65ed38cf43590820
+73
View File
@@ -0,0 +1,73 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=" "
RUST_MIN_VER="1.82.0"
inherit cargo edo flag-o-matic shell-completion toolchain-funcs
DESCRIPTION="QA library and tools based on pkgcraft"
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 GPL-3+ ISC MIT MPL-2.0 Unicode-DFS-2016
"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
# clang needed for bindgen
BDEPEND+="
llvm-core/clang
test? ( dev-util/cargo-nextest )
"
QA_FLAGS_IGNORED="usr/bin/pkgcruft"
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
tc-export AR CC
# scallop uses modified bash-5.2 which relies on unprotoyped functions
append-cflags -std=gnu17
cargo_src_compile
}
src_test() {
unset CLICOLOR CLICOLOR_FORCE
edo cargo nextest run $(usev !debug '--release') --color always --all-features --tests
}
src_install() {
cargo_src_install
newbashcomp shell/pkgcruft.bash ${PN}
dozshcomp shell/_pkgcruft
dofishcomp shell/pkgcruft.fish
}
+11 -1
View File
@@ -6,7 +6,7 @@ EAPI=8
CRATES=" "
RUST_MIN_VER="1.82.0"
inherit cargo edo flag-o-matic toolchain-funcs
inherit cargo edo flag-o-matic shell-completion toolchain-funcs
DESCRIPTION="QA library and tools based on pkgcraft"
HOMEPAGE="https://pkgcraft.github.io/"
@@ -59,5 +59,15 @@ src_compile() {
}
src_test() {
unset CLICOLOR CLICOLOR_FORCE
edo cargo nextest run $(usev !debug '--release') --color always --all-features --tests
}
src_install() {
cargo_src_install
newbashcomp shell/pkgcruft.bash ${PN}
dozshcomp shell/_pkgcruft
dofishcomp shell/pkgcruft.fish
}