diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-06 05:42:43 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-06 05:42:43 +0000 |
commit | 9e0addc1cf71ebec277b59e38eb3fa30e650cf9f (patch) | |
tree | fad7eaf86ed6caf32c2c6e1b52157364ec9a79f6 /dev-util/pkgcruft/pkgcruft-0.0.1.ebuild | |
parent | d82c6c919aa63b46ec1683492b75162951f09072 (diff) |
gentoo auto-resync : 06:02:2024 - 05:42:43
Diffstat (limited to 'dev-util/pkgcruft/pkgcruft-0.0.1.ebuild')
-rw-r--r-- | dev-util/pkgcruft/pkgcruft-0.0.1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-util/pkgcruft/pkgcruft-0.0.1.ebuild b/dev-util/pkgcruft/pkgcruft-0.0.1.ebuild new file mode 100644 index 000000000000..c2c6182cc283 --- /dev/null +++ b/dev-util/pkgcruft/pkgcruft-0.0.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" " +inherit cargo edo 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 + >=virtual/rust-1.71 + 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 + + cargo_src_compile +} + +src_test() { + edo cargo nextest run $(usev !debug '--release') --color always --all-features --tests +} |