commit:     e356a8561bc6f335398ea356b70f70657bc1b2aa
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 30 14:32:10 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 30 14:38:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e356a856

app-crypt/sequoia-sop: add 0.37.3

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-crypt/sequoia-sop/Manifest                  |   2 +
 app-crypt/sequoia-sop/sequoia-sop-0.37.3.ebuild | 102 ++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

diff --git a/app-crypt/sequoia-sop/Manifest b/app-crypt/sequoia-sop/Manifest
index 1ca7ae2a96d4..a90c7100caa3 100644
--- a/app-crypt/sequoia-sop/Manifest
+++ b/app-crypt/sequoia-sop/Manifest
@@ -1,2 +1,4 @@
 DIST sequoia-sop-0.37.2-crates.tar.xz 21691444 BLAKE2B 
e3eb5a0825c4ca78a1ab232baeed49540b8374835b49d541067a8d705181cf4b4f5c4681e0a90dff78137e81cab501ef0e13ade579ccfe51bb398d01723a649c
 SHA512 
3001f8fae28e80ee910247780d6483ecd9c088c057b86d22dac7f54663509288aec033131f2d5dcbbd1f9f3ecf15fb7c816b0d4da9c6b48572188de2417d7398
+DIST sequoia-sop-0.37.3-crates.tar.xz 23836936 BLAKE2B 
d36f6b447400e19e95f4a6d2d1a231f2410066bb2242e9cb72ffd336c88d085bb3d4da6fa4eccb69c1ccad74a17a7dc06cff5ea8682bb58a6a98dccacc467e8e
 SHA512 
a8fa5e9f55f83806d9c84f76c8696561e48b13828f2993eb9ed305e259b1b16cf389a36eea8a31ad96b100c14b3c0d42029609794b0992ba616eb83baa8c7138
 DIST sequoia-sop-v0.37.2.tar.bz2 97543 BLAKE2B 
9ea616d8794ec42bdc34ffe7f39757aeaf43c361714c32b456ea110cb2e06f085ff4322e15fe272d9ab071ce6f76c4872bfd4e899a55fe8a8fb13c3c70268485
 SHA512 
b48c436c9f8be376489f0ac4a0a61470c01087f4dac35ac5224a7b2bef0a78c217a6b0ca2b342f0a200cfd606cf4491026751c9884858a2b864e389c44fa8b23
+DIST sequoia-sop-v0.37.3.tar.bz2 131528 BLAKE2B 
c447051dfc08f5b95982e8013c76c190f38c0e9c1a26eabf15d5de8d02a1d874e6a468f073b428505a957b1469eb69a797f204ae7766279bc7b7603319048bbb
 SHA512 
38a19320edc5ce3b90dba57fc830256b8069d059a030ff86d223e1b78a3aa59e13a72155c8ed55556194dadb535f86470542920d59a63ee19f4454c5b0003a55

diff --git a/app-crypt/sequoia-sop/sequoia-sop-0.37.3.ebuild 
b/app-crypt/sequoia-sop/sequoia-sop-0.37.3.ebuild
new file mode 100644
index 000000000000..c22bbc89b268
--- /dev/null
+++ b/app-crypt/sequoia-sop/sequoia-sop-0.37.3.ebuild
@@ -0,0 +1,102 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+
+RUST_MIN_VER="1.85.0"
+LLVM_COMPAT=( {16..21} )
+
+inherit cargo llvm-r1 shell-completion
+
+DESCRIPTION="Implementation of the Stateless OpenPGP Command Line Interface 
using Sequoia"
+HOMEPAGE="https://sequoia-pgp.org/ https://gitlab.com/sequoia-pgp/sequoia-sop";
+SRC_URI="https://gitlab.com/sequoia-pgp/sequoia-sop/-/archive/v${PV}/${PN}-v${PV}.tar.bz2";
+SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-crates.tar.xz";
+S="${WORKDIR}"/${PN}-v${PV}
+
+LICENSE="GPL-2+"
+# Dependent crate licenses
+LICENSE+="
+       Apache-2.0 BSD Boost-1.0 CC0-1.0 ISC LGPL-2+ MIT MPL-2.0 Unicode-3.0
+       ZLIB
+       || ( GPL-2 GPL-3 LGPL-3 )
+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="botan"
+
+QA_FLAGS_IGNORED="usr/bin/sqop"
+
+COMMON_DEPEND="
+       app-arch/bzip2
+       dev-db/sqlite:3
+       dev-libs/gmp:=
+       dev-libs/nettle:=
+       dev-libs/openssl:=
+       botan? ( dev-libs/botan:3= )
+"
+DEPEND="
+       ${COMMON_DEPEND}
+       dev-libs/capnproto
+"
+RDEPEND="
+       ${COMMON_DEPEND}
+"
+# Clang needed for bindgen
+BDEPEND="
+       $(llvm_gen_dep '
+               llvm-core/clang:${LLVM_SLOT}
+       ')
+       virtual/pkgconfig
+"
+
+pkg_setup() {
+       llvm-r1_pkg_setup
+       rust_pkg_setup
+}
+
+src_compile() {
+       # Set this here so that it doesn't change if we run tests
+       # and cause a recompilation.
+       asset_dir="${T}"/assets
+       export ASSET_OUT_DIR="${asset_dir}"
+
+       # Setting CARGO_TARGET_DIR is required to have the build system
+       # create the bash and zsh completion files.
+       export CARGO_TARGET_DIR="${S}/target"
+
+       # https://wiki.gentoo.org/wiki/Project:Rust/sys_crates#bzip2-sys
+       mkdir "${T}/pkg-config" || die
+       export 
PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
+       cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
+       Name: bzip2
+       Version: 9999
+       Description:
+       Libs: -lbz2
+       EOF
+
+       cargo_src_compile
+}
+
+src_configure() {
+       local myfeatures=(
+               cli
+               $(usex botan crypto-{botan,openssl})
+       )
+
+       cargo_src_configure --no-default-features
+}
+
+src_install() {
+       cargo_src_install
+
+       doman "${asset_dir}"/man-pages/*.1
+
+       local completion_dir="${asset_dir}"/shell-completions
+       newbashcomp "${completion_dir}"/sqop.bash sqop
+       dozshcomp "${completion_dir}"/_sqop
+       dofishcomp "${completion_dir}"/sqop.fish
+}

Reply via email to