summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-02-02 04:12:15 +0000
committerSam James <sam@gentoo.org>2024-02-02 04:33:19 +0000
commitfb376d9dff4eca0697871279c1102552f776bf4c (patch)
tree5dc2412c70788d58d195e87ece9d59a043d6d9f2 /sys-apps/pkgcraft-tools
parentsys-libs/pkgcraft: add 0.0.14 (diff)
downloadgentoo-fb376d9dff4eca0697871279c1102552f776bf4c.tar.gz
gentoo-fb376d9dff4eca0697871279c1102552f776bf4c.tar.bz2
gentoo-fb376d9dff4eca0697871279c1102552f776bf4c.zip
sys-apps/pkgcraft-tools: add 0.0.14
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/pkgcraft-tools')
-rw-r--r--sys-apps/pkgcraft-tools/Manifest1
-rw-r--r--sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.14.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/sys-apps/pkgcraft-tools/Manifest b/sys-apps/pkgcraft-tools/Manifest
index 139e2d2ed36c..6916c70ecc67 100644
--- a/sys-apps/pkgcraft-tools/Manifest
+++ b/sys-apps/pkgcraft-tools/Manifest
@@ -1 +1,2 @@
DIST pkgcraft-tools-0.0.13.tar.xz 29739764 BLAKE2B b4f66650b644e1efc7c6b39fa26dd9f3930e9c41b9022bd56dbd07cbeaacf0dba52e020b12f11f87e56798a136798dc95d5a60a23b6ef965abc2a86fd64f8c47 SHA512 e387a0d772aedb6aa165e88f484a4485a6f9848421fabb04114af777591d7988e70516c92387268a9c33e4931ec8fcc13ac172e00e4c077876df80d1aca0f6ac
+DIST pkgcraft-tools-0.0.14.tar.xz 30138240 BLAKE2B b9d0b238f26d980f032cfad26602348dabe574e3968e8adf5172e91efeea051b9720b158941a1bea53e2c1fa8180d516b1bb9668d9178f17c789fb5ba76b7bd9 SHA512 ca7c0f429228567c91a18db793b2fa81f6918cde54f302269deb6a1d2f6445756fbc73e3957ad7b29c8a0e8e000c1b939290c6bbc34bb693cc54b87841fef06c
diff --git a/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.14.ebuild b/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.14.ebuild
new file mode 100644
index 000000000000..fa06a1993399
--- /dev/null
+++ b/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.14.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=" "
+LLVM_MAX_SLOT=17
+inherit edo cargo llvm
+
+DESCRIPTION="pkgcraft-based tools for Gentoo"
+HOMEPAGE="https://pkgcraft.github.io/"
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft"
+ inherit git-r3
+
+ S="${WORKDIR}"/${P}/crates/pkgcraft-tools
+else
+ SRC_URI="https://github.com/pkgcraft/pkgcraft/releases/download/${P}/${P}.tar.xz"
+
+ KEYWORDS="~amd64 ~arm64"
+fi
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 BSD-2 BSD CC0-1.0 GPL-3+ ISC MIT Unicode-DFS-2016"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test ) "
+
+QA_FLAGS_IGNORED="usr/bin/pk"
+
+# Clang needed for bindgen
+BDEPEND="
+ <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1))
+ >=virtual/rust-1.71
+ test? ( dev-util/cargo-nextest )
+"
+
+llvm_check_deps() {
+ has_version -b "sys-devel/clang:${LLVM_SLOT}"
+}
+
+src_unpack() {
+ if [[ ${PV} == 9999 ]] ; then
+ git-r3_src_unpack
+ cargo_live_src_unpack
+ else
+ cargo_src_unpack
+ fi
+}
+
+src_test() {
+ edo cargo nextest run $(usev !debug '--release') --color always --all-features --tests
+}