Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/yubico-piv-tool/
Date: Thu, 09 Sep 2021 11:20:36
Message-Id: 1631186420.70dc3349825a3f95e899f9e52b18c4c110ddb940.marecki@gentoo
1 commit: 70dc3349825a3f95e899f9e52b18c4c110ddb940
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 9 11:00:49 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 9 11:20:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70dc3349
7
8 sys-auth/yubico-piv-tool: add 2.2.1
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 sys-auth/yubico-piv-tool/Manifest | 1 +
13 .../yubico-piv-tool/yubico-piv-tool-2.2.1.ebuild | 52 ++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/sys-auth/yubico-piv-tool/Manifest b/sys-auth/yubico-piv-tool/Manifest
17 index 5a4592f6754..0a4fc772df5 100644
18 --- a/sys-auth/yubico-piv-tool/Manifest
19 +++ b/sys-auth/yubico-piv-tool/Manifest
20 @@ -1 +1,2 @@
21 DIST yubico-piv-tool-2.2.0.tar.gz 1309359 BLAKE2B a5be7a48549f864b9322b5bf53726007b593ce7d08cd06f2251aef98cb065d90586e0189e6f3da94d6d274d6998459afa4a55a0d4c1145395f55830f53d334e4 SHA512 b2f8cd73800e0e0778ce36148b962026479f5d3ada3e313acb5a780993c28c41b03e9aa9335ac5b79fed7a418a2d3d3697231adf2da0dd06cd8d22ea5a01aca5
22 +DIST yubico-piv-tool-2.2.1.tar.gz 1310253 BLAKE2B f5e5d2c351200b2fc57aafdd02a604ee5f15cd8f1a0cb552133a367da2cbf7fe248ec9eba649427b30e8322126be1f9677fd471b38db1f00cda37ccb0ac413c9 SHA512 495a269194d8d9d8957542611959b3fc8e0ae54d1cab5c041f2604590cc740e89e0956b9d595f8a06f138e92b8804def52aae797f199479a81fc1fc3d57bfb96
23
24 diff --git a/sys-auth/yubico-piv-tool/yubico-piv-tool-2.2.1.ebuild b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.2.1.ebuild
25 new file mode 100644
26 index 00000000000..ba22c83716b
27 --- /dev/null
28 +++ b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.2.1.ebuild
29 @@ -0,0 +1,52 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit cmake
36 +
37 +DESCRIPTION="Command-line tool and p11-kit module for the YubiKey PIV application"
38 +HOMEPAGE="https://developers.yubico.com/yubico-piv-tool/ https://github.com/Yubico/yubico-piv-tool"
39 +SRC_URI="https://github.com/Yubico/${PN}/archive/${P}.tar.gz"
40 +
41 +LICENSE="BSD-2"
42 +SLOT="0/2"
43 +KEYWORDS="~amd64 ~riscv"
44 +IUSE="test"
45 +
46 +RESTRICT="!test? ( test )"
47 +
48 +RDEPEND="sys-apps/pcsc-lite
49 + <dev-libs/openssl-3.0.0:0=[-bindist(-)]"
50 +DEPEND="${RDEPEND}
51 + test? ( dev-libs/check )"
52 +BDEPEND="dev-util/gengetopt
53 + sys-apps/help2man
54 + virtual/pkgconfig"
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/${PN}-2.1.1-no-Werror.patch
58 + "${FILESDIR}"/${PN}-2.1.1-tests-optional.patch
59 + "${FILESDIR}"/${PN}-2.1.1-ykcs11-threads.patch
60 +)
61 +
62 +S="${WORKDIR}/${PN}-${P}"
63 +
64 +src_configure() {
65 + # As of 2.2.0, man pages end up in /usr/usr/... without the MANDIR override
66 + local mycmakeargs=(
67 + -DBUILD_STATIC_LIB=OFF
68 + -DBUILD_TESTING=$(usex test)
69 + -DCMAKE_INSTALL_MANDIR="share/man"
70 + )
71 + cmake_src_configure
72 +}
73 +
74 +src_install() {
75 + cmake_src_install
76 +
77 + echo "module: ${EPREFIX}/usr/$(get_libdir)/libykcs11.so" > ${PN}.module \
78 + || die "Failed to generate p11-kit module configuration"
79 + insinto /usr/share/p11-kit/modules
80 + doins ${PN}.module
81 +}