Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/p11-kit/
Date: Sat, 12 Jun 2021 18:51:00
Message-Id: 1623523849.ba4e5aef1034b1f4ff5b4457edb52e735aa81a60.zlogene@gentoo
1 commit: ba4e5aef1034b1f4ff5b4457edb52e735aa81a60
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 12 18:48:55 2021 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 12 18:50:49 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba4e5aef
7
8 app-crypt/p11-kit: Version bump (v0.24.0)
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 app-crypt/p11-kit/Manifest | 1 +
14 app-crypt/p11-kit/p11-kit-0.24.0.ebuild | 62 +++++++++++++++++++++++++++++++++
15 2 files changed, 63 insertions(+)
16
17 diff --git a/app-crypt/p11-kit/Manifest b/app-crypt/p11-kit/Manifest
18 index 8b75e07bb5a..45951f693d8 100644
19 --- a/app-crypt/p11-kit/Manifest
20 +++ b/app-crypt/p11-kit/Manifest
21 @@ -1 +1,2 @@
22 DIST p11-kit-0.23.22.tar.xz 830016 BLAKE2B 4e1edfd9e2441d237c07a16c003aee5ffde38f1cf545c26e435645429f2cfa4fe7ca61cdc3c3940390aa040ba991f2ee3995b14cc31bb886d5eeffa8ed5e1721 SHA512 098819e6ca4ad9cc2a0bc2e478aea67354d051a4f03e6c7d75d13d2469b6dc7654f26b15530052f6ed51acb35531c2539e0f971b31e29e6673e857c903afb080
23 +DIST p11-kit-0.24.0.tar.xz 834392 BLAKE2B f967b51d3b021c6e95a0ddc1934527023aa4acbae2b193d64829620331ea0f094e1467fdea897a3121d05f30b1747607197a50c906a40609913230ab363c09e5 SHA512 48369d6fdae79b8c5a255c821fbdb982f0c649cce07c0d92f0ff0c16322fea8919faa94067cae2efede2da3646c0e69a71a3e399b769dc2327f247bcb113eb3c
24
25 diff --git a/app-crypt/p11-kit/p11-kit-0.24.0.ebuild b/app-crypt/p11-kit/p11-kit-0.24.0.ebuild
26 new file mode 100644
27 index 00000000000..7366c599dd8
28 --- /dev/null
29 +++ b/app-crypt/p11-kit/p11-kit-0.24.0.ebuild
30 @@ -0,0 +1,62 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit multilib-minimal
37 +
38 +DESCRIPTION="Provides a standard configuration setup for installing PKCS#11"
39 +HOMEPAGE="https://p11-glue.github.io/p11-glue/p11-kit.html"
40 +SRC_URI="https://github.com/p11-glue/p11-kit/releases/download/${PV}/${P}.tar.xz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +IUSE="+asn1 debug +libffi systemd +trust"
46 +REQUIRED_USE="trust? ( asn1 )"
47 +
48 +RDEPEND="asn1? ( >=dev-libs/libtasn1-3.4:=[${MULTILIB_USEDEP}] )
49 + libffi? ( dev-libs/libffi:=[${MULTILIB_USEDEP}] )
50 + systemd? ( sys-apps/systemd:= )
51 + trust? ( app-misc/ca-certificates )"
52 +DEPEND="${RDEPEND}"
53 +BDEPEND="virtual/pkgconfig"
54 +
55 +pkg_setup() {
56 + # disable unsafe tests, bug#502088
57 + export FAKED_MODE=1
58 +}
59 +
60 +src_prepare() {
61 + if [[ ${CHOST} == *-solaris2.* && ${CHOST##*-solaris2.} -lt 11 ]] ; then
62 + # Solaris 10 and before doesn't know about XPG7 (XOPEN_SOURCE=700)
63 + # drop to XPG6 to make feature_tests.h happy
64 + sed -i -e '/define _XOPEN_SOURCE/s/700/600/' common/compat.c || die
65 + # paths.h isn't available, oddly enough also not used albeit included
66 + sed -i -e '/#include <paths.h>/d' trust/test-trust.c || die
67 + # we don't have SUN_LEN here
68 + sed -i -e 's/SUN_LEN \(([^)]\+)\)/strlen (\1->sun_path)/' \
69 + p11-kit/server.c || die
70 + fi
71 + default
72 +}
73 +
74 +multilib_src_configure() {
75 + ECONF_SOURCE="${S}" econf \
76 + $(use_enable trust trust-module) \
77 + $(use_with trust trust-paths ${EPREFIX}/etc/ssl/certs/ca-certificates.crt) \
78 + $(use_enable debug) \
79 + $(use_with libffi) \
80 + $(use_with asn1 libtasn1) \
81 + $(multilib_native_use_with systemd)
82 +
83 + if multilib_is_native_abi; then
84 + # re-use provided documentation
85 + ln -s "${S}"/doc/manual/html doc/manual/html || die
86 + fi
87 +}
88 +
89 +multilib_src_install_all() {
90 + einstalldocs
91 + find "${D}" -name '*.la' -delete || die
92 +}