summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/rpm-sequoia')
-rw-r--r--app-crypt/rpm-sequoia/rpm-sequoia-1.6.0-r1.ebuild (renamed from app-crypt/rpm-sequoia/rpm-sequoia-1.6.0.ebuild)12
-rw-r--r--app-crypt/rpm-sequoia/rpm-sequoia-1.7.0-r1.ebuild (renamed from app-crypt/rpm-sequoia/rpm-sequoia-1.7.0.ebuild)12
2 files changed, 18 insertions, 6 deletions
diff --git a/app-crypt/rpm-sequoia/rpm-sequoia-1.6.0.ebuild b/app-crypt/rpm-sequoia/rpm-sequoia-1.6.0-r1.ebuild
index da34f4210ca1..f4f0fd4e2697 100644
--- a/app-crypt/rpm-sequoia/rpm-sequoia-1.6.0.ebuild
+++ b/app-crypt/rpm-sequoia/rpm-sequoia-1.6.0-r1.ebuild
@@ -235,9 +235,10 @@ CRATES="
zeroize_derive@1.4.2
"
-LLVM_MAX_SLOT=17
+LLVM_COMPAT=( 17 )
+RUST_NEEDS_LLVM=1
-inherit cargo llvm
+inherit llvm-r1 cargo
DESCRIPTION="Implementation of the RPM PGP interface using Sequoia"
HOMEPAGE="https://sequoia-pgp.org/ https://github.com/rpm-software-management/rpm-sequoia"
@@ -265,11 +266,16 @@ RDEPEND="${DEPEND}"
# Clang is required for bindgen
BDEPEND="
virtual/pkgconfig
- nettle? ( <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)) )
+ nettle? ( $(llvm_gen_dep 'sys-devel/clang:${LLVM_SLOT}') )
"
QA_FLAGS_IGNORED="usr/lib.*/librpm_sequoia.so.1"
+pkg_setup() {
+ llvm_r1_pkg_setup
+ rust_pkg_setup
+}
+
llvm_check_deps() {
if use nettle; then
has_version -b "sys-devel/clang:${LLVM_SLOT}"
diff --git a/app-crypt/rpm-sequoia/rpm-sequoia-1.7.0.ebuild b/app-crypt/rpm-sequoia/rpm-sequoia-1.7.0-r1.ebuild
index 082e1f09d371..9f361d92c6c6 100644
--- a/app-crypt/rpm-sequoia/rpm-sequoia-1.7.0.ebuild
+++ b/app-crypt/rpm-sequoia/rpm-sequoia-1.7.0-r1.ebuild
@@ -248,9 +248,11 @@ CRATES="
zerovec@0.10.4
"
-LLVM_COMPAT=( {17..18} )
+LLVM_COMPAT=( 17 18 )
+RUST_MIN_VER="1.74.1"
+RUST_NEEDS_LLVM=1
-inherit cargo llvm-r1
+inherit llvm-r1 cargo
DESCRIPTION="Implementation of the RPM PGP interface using Sequoia"
HOMEPAGE="https://sequoia-pgp.org/ https://github.com/rpm-software-management/rpm-sequoia"
@@ -282,12 +284,16 @@ RDEPEND="${DEPEND}"
# Clang is required for bindgen
BDEPEND="
virtual/pkgconfig
- >=virtual/rust-1.73
nettle? ( $(llvm_gen_dep 'sys-devel/clang:${LLVM_SLOT}') )
"
QA_FLAGS_IGNORED="usr/lib.*/librpm_sequoia.so.1"
+pkg_setup() {
+ llvm_r1_pkg_setup
+ rust_pkg_setup
+}
+
src_configure() {
local myfeatures=(
$(usev nettle crypto-nettle)