commit:     42520bbe25e93def4856275456b0eb8a1a49f822
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 10 04:45:29 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 10 04:47:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42520bbe

app-crypt/p11-kit: add 0.25.7

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

 app-crypt/p11-kit/Manifest              |  1 +
 app-crypt/p11-kit/p11-kit-0.25.7.ebuild | 76 +++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/app-crypt/p11-kit/Manifest b/app-crypt/p11-kit/Manifest
index d7197f1d5ce2..ee7d65df2863 100644
--- a/app-crypt/p11-kit/Manifest
+++ b/app-crypt/p11-kit/Manifest
@@ -1 +1,2 @@
 DIST p11-kit-0.25.5.tar.xz 1002056 BLAKE2B 
96d6a9c2807586abafae4da4df89f566672733963997d6a83e00aaf83a7a0c0e2995638f505e98fb87a90c60bde28814f1e8b7d5071bf0af96bb0467105a1ddc
 SHA512 
177ec6ff5eb891901078306dce2bf3f5c1a0e5c2a8c493bdf5a08ae1ff1240fdf6952961e973c373f80ac3d1d5a9927e07f4da49e4ff92269d992e744889fc94
+DIST p11-kit-0.25.7.tar.xz 1061452 BLAKE2B 
a5b6784b069266c9327c6497e791d0082f7b2cc13d4906cc60a51c18f068d8499120a1653fae2ab9f9e807db6901d422324d43b0b7dd63f82f8c41aae1cb3195
 SHA512 
6c2d5d0e9eb176d92c4d47101714f094212c3f35a17bf5dd7ab1bddca7936b79e8af2f69e1e21f392b34b5dd996a8a1117cdd988289dd77598d86ee866f31449

diff --git a/app-crypt/p11-kit/p11-kit-0.25.7.ebuild 
b/app-crypt/p11-kit/p11-kit-0.25.7.ebuild
new file mode 100644
index 000000000000..9aeea11aae66
--- /dev/null
+++ b/app-crypt/p11-kit/p11-kit-0.25.7.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..14} )
+inherit shell-completion meson-multilib python-any-r1
+
+DESCRIPTION="Provides a standard configuration setup for installing PKCS#11"
+HOMEPAGE="https://p11-glue.github.io/p11-glue/p11-kit.html";
+SRC_URI="https://github.com/p11-glue/p11-kit/releases/download/${PV}/${P}.tar.xz";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x64-solaris"
+IUSE="+libffi gtk-doc nls systemd test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       app-misc/ca-certificates
+       >=dev-libs/libtasn1-3.4:=[${MULTILIB_USEDEP}]
+       libffi? ( dev-libs/libffi:=[${MULTILIB_USEDEP}] )
+       systemd? ( sys-apps/systemd )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       ${PYTHON_DEPS}
+       app-text/docbook-xsl-stylesheets
+       dev-libs/libxslt
+       virtual/pkgconfig
+       gtk-doc? ( dev-util/gtk-doc )
+       nls? ( sys-devel/gettext )
+"
+
+src_prepare() {
+       default
+
+       # Relies on dlopen which won't work for multilib tests (bug #913971)
+       cat <<-EOF > "${S}"/p11-kit/test-server.sh || die
+       #!/bin/sh
+       exit 77
+       EOF
+}
+
+multilib_src_configure() {
+       # Disable unsafe tests, bug#502088
+       export FAKED_MODE=1
+
+       local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local
+
+       # p11-kit doesn't need this to build and castxml needs Clang. To get
+       # a deterministic non-automagic build, always disable the search for
+       # castxml.
+       cat >> ${native_file} <<-EOF || die
+       [binaries]
+       castxml='castxml-falseified'
+       EOF
+
+       local emesonargs=(
+               --native-file "${native_file}"
+               -Dbash_completion=enabled
+               -Dzsh_completion=enabled
+               -Dbashcompdir="$(get_bashcompdir)"
+               -Dzshcompdir="$(get_zshcompdir)"
+               -Dtrust_module=enabled
+               -Dtrust_paths="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt
+               $(meson_feature libffi)
+               $(meson_use nls)
+               $(meson_use test)
+               $(meson_native_use_bool gtk-doc gtk_doc)
+               $(meson_native_true man)
+               $(meson_native_use_feature systemd)
+       )
+
+       meson_src_configure
+}

Reply via email to