summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-09-30 01:25:51 +0100
committerSam James <sam@gentoo.org>2023-09-30 01:26:00 +0100
commit6bd350fb38d1c6e8f226812585bd5ad411519dc1 (patch)
tree8b0ef767c4877ead3bb9fbd95e4d4fe800be9ddb /sys-apps/pkgcraft-tools
parentsys-libs/pkgcraft: add 0.0.12 (diff)
downloadgentoo-6bd350fb38d1c6e8f226812585bd5ad411519dc1.tar.gz
gentoo-6bd350fb38d1c6e8f226812585bd5ad411519dc1.tar.bz2
gentoo-6bd350fb38d1c6e8f226812585bd5ad411519dc1.zip
sys-apps/pkgcraft-tools: add 0.0.12
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.12.ebuild55
-rw-r--r--sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild4
3 files changed, 58 insertions, 2 deletions
diff --git a/sys-apps/pkgcraft-tools/Manifest b/sys-apps/pkgcraft-tools/Manifest
index 7d459aaf89e1..531145e50191 100644
--- a/sys-apps/pkgcraft-tools/Manifest
+++ b/sys-apps/pkgcraft-tools/Manifest
@@ -1 +1,2 @@
DIST pkgcraft-tools-0.0.11.tar.xz 31755828 BLAKE2B c47f59849ebb0b80ee9615d9b16e66f75cea2786e81a4cc521158d3e814f112328d2dbb5933bf247652772fce5277f5102f095b302df20a4f781077b2cdb0627 SHA512 59c38a888a7fb7da51001f3eff415dc8189a2073a5f06be11af2065265e7e8bf9e5747947f6d36b9ddfaaa261a4b4acfad05ba759f6f27dbe1c37d96d5976f45
+DIST pkgcraft-tools-0.0.12.tar.xz 30016728 BLAKE2B 45ab7b1fc4f03e854bd121b97096932bbf62e46efdaef31449cb923d90e93e28ee450163e8748bc2f2f6b6efacc0a06e485ea63ab69c1754a5b1cfc2e4861ccc SHA512 a679d81adc8175f18f9800ef67797c0f0d8d80aaa336018077216e3117fe96da289ffd2a3efa552ec53e82c8401a2454b4050f1a4ab41a1b68b9e8e2803e2ccd
diff --git a/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.12.ebuild b/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.12.ebuild
new file mode 100644
index 000000000000..e35ac9b73a53
--- /dev/null
+++ b/sys-apps/pkgcraft-tools/pkgcraft-tools-0.0.12.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2023 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.70
+ 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
+}
diff --git a/sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild b/sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild
index bf887a5953d8..e35ac9b73a53 100644
--- a/sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild
+++ b/sys-apps/pkgcraft-tools/pkgcraft-tools-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=8
CRATES=" "
-LLVM_MAX_SLOT=16
+LLVM_MAX_SLOT=17
inherit edo cargo llvm
DESCRIPTION="pkgcraft-based tools for Gentoo"
@@ -18,7 +18,7 @@ if [[ ${PV} == 9999 ]] ; then
else
SRC_URI="https://github.com/pkgcraft/pkgcraft/releases/download/${P}/${P}.tar.xz"
- KEYWORDS="~amd64"
+ KEYWORDS="~amd64 ~arm64"
fi
LICENSE="MIT"