commit:     3b7eb668a2058b9bd5e2f0e9fed2805bcd4f0c94
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 31 10:09:28 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct 31 10:25:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b7eb668

app-crypt/sequoia-chameleon-gnupg: Add support for botan backend

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/44401
Closes: https://github.com/gentoo/gentoo/pull/44401
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-crypt/sequoia-chameleon-gnupg/metadata.xml                      | 3 +++
 .../sequoia-chameleon-gnupg-0.13.1-r2.ebuild                        | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/app-crypt/sequoia-chameleon-gnupg/metadata.xml 
b/app-crypt/sequoia-chameleon-gnupg/metadata.xml
index 68ffb8277fac..34fb5a881a01 100644
--- a/app-crypt/sequoia-chameleon-gnupg/metadata.xml
+++ b/app-crypt/sequoia-chameleon-gnupg/metadata.xml
@@ -12,4 +12,7 @@
        <upstream>
                <remote-id 
type="gitlab">sequoia-pgp/sequoia-chameleon-gnupg</remote-id>
        </upstream>
+       <use>
+               <flag name="botan">Use <pkg>dev-libs/botan</pkg> as crypto 
provider.</flag>
+       </use>
 </pkgmetadata>

diff --git 
a/app-crypt/sequoia-chameleon-gnupg/sequoia-chameleon-gnupg-0.13.1-r2.ebuild 
b/app-crypt/sequoia-chameleon-gnupg/sequoia-chameleon-gnupg-0.13.1-r2.ebuild
index 4cd78efb188a..38d64e968691 100644
--- a/app-crypt/sequoia-chameleon-gnupg/sequoia-chameleon-gnupg-0.13.1-r2.ebuild
+++ b/app-crypt/sequoia-chameleon-gnupg/sequoia-chameleon-gnupg-0.13.1-r2.ebuild
@@ -30,13 +30,14 @@ LICENSE+="
 "
 SLOT="0"
 KEYWORDS="~amd64 ~arm64"
-IUSE="test"
+IUSE="botan test"
 RESTRICT="!test? ( test )"
 
 DEPEND="
        app-arch/bzip2
        dev-db/sqlite:3
        dev-libs/openssl:=
+       botan? ( dev-libs/botan:3= )
 "
 # gpg-agent needed for secret key operations
 # https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg#gpg-sq
@@ -76,8 +77,7 @@ src_configure() {
        EOF
 
        local myfeatures=(
-               # TODO: support botan?
-               crypto-openssl
+               $(usex botan crypto-{botan,openssl})
        )
 
        cargo_src_configure --no-default-features

Reply via email to