diff options
author | Sam James <sam@gentoo.org> | 2023-05-20 07:38:22 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-20 07:55:58 +0100 |
commit | 2e2db0878d2e38cc3a76236fdbb57e4ccb84aebc (patch) | |
tree | 4533fcf680a436bd148c3d1eda6aaee34b217a67 /app-crypt/sequoia-sq | |
parent | app-crypt/sequoia-sqv: use llvm.eclass for bindgen (diff) | |
download | gentoo-2e2db0878d2e38cc3a76236fdbb57e4ccb84aebc.tar.gz gentoo-2e2db0878d2e38cc3a76236fdbb57e4ccb84aebc.tar.bz2 gentoo-2e2db0878d2e38cc3a76236fdbb57e4ccb84aebc.zip |
app-crypt/sequoia-sq: use llvm.eclass for bindgen
Just like 1fd5803705bc3bc5ede5559d08b6e4c57a201fbf. Could bump the crates
like gyakovlev said but we're about to do that for a bump anyway.
Closes: https://bugs.gentoo.org/894358
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-crypt/sequoia-sq')
-rw-r--r-- | app-crypt/sequoia-sq/sequoia-sq-0.28.0.ebuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app-crypt/sequoia-sq/sequoia-sq-0.28.0.ebuild b/app-crypt/sequoia-sq/sequoia-sq-0.28.0.ebuild index e50b539faf2b..80703b5860dd 100644 --- a/app-crypt/sequoia-sq/sequoia-sq-0.28.0.ebuild +++ b/app-crypt/sequoia-sq/sequoia-sq-0.28.0.ebuild @@ -419,7 +419,10 @@ CRATES=" zeroize_derive-1.3.2 " -inherit bash-completion-r1 cargo +# TODO: Should be able to try 16 in next release after 0.28.0 +LLVM_MAX_SLOT=15 + +inherit bash-completion-r1 cargo llvm DESCRIPTION="CLI of the Sequoia OpenPGP implementation" HOMEPAGE="https://sequoia-pgp.org/ https://gitlab.com/sequoia-pgp/sequoia" @@ -448,10 +451,16 @@ DEPEND=" ${COMMON_DEPEND} " RDEPEND="${COMMON_DEPEND}" +# Clang needed for bindgen BDEPEND=" + <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)) virtual/pkgconfig " +llvm_check_deps() { + has_version -b "sys-devel/clang:${LLVM_SLOT}" +} + src_compile() { cd sq || die # Setting CARGO_TARGET_DIR is required to have the build system |