dev-util/pkgcruft: add 0.0.6

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-12-07 02:11:34 +00:00
parent 59835c2cdb
commit 8246f2f0c8
2 changed files with 64 additions and 0 deletions

View File

@@ -2,3 +2,4 @@ DIST pkgcruft-0.0.1.tar.xz 30144864 BLAKE2B af309ac7199640e1ee058ba9206c09ce7a05
DIST pkgcruft-0.0.2.tar.xz 24861352 BLAKE2B d3e206d97c8e877727a8a659a0d59ee6a62f5a817b74143a2e68861e21023439f0b3dcf9f218da98cabe02c156949a1d1adf1a28ff3daff90da3b581458e42dc SHA512 9734413f2142b01c22ecb708ebc63109c0ce09d00e96ba4ce7d3e34e5e02699a1061bfb852e33654e834a7c403d575470b3e8715dc31184557be0b6f9f8bda1b
DIST pkgcruft-0.0.3.tar.xz 24564836 BLAKE2B 6219898b0402e34f4d595cee26c2d659572009fb1367ede64885a98af523bac5cb1f82e49f809e82dc03a19363c135ac273ee237516505ff46b860968d88df58 SHA512 f593bd621c0caee469d89af12983e222ca5d191b0c64e3516eaa0ad6d6459a8cb89b75f5cdcfe7e44960c2518a3d3b69a7ba58f730d14f9d986e398ea16ba1a5
DIST pkgcruft-0.0.4.tar.xz 24507420 BLAKE2B 89e127bd6f22686c4e0335817ed050bf3edcd8b0247a372531ab5daf020e526721d6e10080c8e1230026d87762e769535187d30a9ff86bbfe4c2f1865a322324 SHA512 464eef7c19313e97eac59367e286181c441e04a76deaa75f551b3866da5dcdb7bfa7703552143b6b32afee5beac85df72af48fe627f8a3838cb823f672f50d84
DIST pkgcruft-0.0.6.tar.xz 24528884 BLAKE2B 88b476920661076dbe70bd0ba0fd84d355dc77d579496702c43f8e55384ea6dce3fe305ef861ecc5c4bcd4e1046d8b672ce1ca0dbc83c7560191c1818761e63a SHA512 f978e1d398c00580990a8026ea6cec5d32825e2e0e831ea059462a3a808899b7a94064bcc91ee6901f55d1085641ccb96211603cac3a30e32a8567706f339fd1

View File

@@ -0,0 +1,63 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=" "
RUST_MIN_VER="1.80.0"
inherit cargo edo flag-o-matic 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+="
sys-devel/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() {
edo cargo nextest run $(usev !debug '--release') --color always --all-features --tests
}