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: Sun, 06 Sep 2020 20:39:39
Message-Id: 1599424766.e1978be7e390b24a4edbccb0db659e6ba7532f34.marecki@gentoo
1 commit: e1978be7e390b24a4edbccb0db659e6ba7532f34
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 6 20:38:16 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 6 20:39:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1978be7
7
8 sys-auth/yubico-piv-tool: make p11-kit aware of libykcs11
9
10 Closes: https://bugs.gentoo.org/701058
11 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
12
13 .../yubico-piv-tool-2.1.1-r1.ebuild | 51 ++++++++++++++++++++++
14 1 file changed, 51 insertions(+)
15
16 diff --git a/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r1.ebuild b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r1.ebuild
17 new file mode 100644
18 index 00000000000..8065e7bafa7
19 --- /dev/null
20 +++ b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r1.ebuild
21 @@ -0,0 +1,51 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit cmake
28 +
29 +DESCRIPTION="Command line tool for the YubiKey PIV application"
30 +SRC_URI="https://github.com/Yubico/yubico-piv-tool/archive/yubico-piv-tool-${PV}.tar.gz"
31 +HOMEPAGE="https://developers.yubico.com/yubico-piv-tool/ https://github.com/Yubico/yubico-piv-tool"
32 +
33 +LICENSE="BSD-2"
34 +SLOT="0/1"
35 +KEYWORDS="~amd64"
36 +IUSE="test"
37 +RESTRICT="!test? ( test )"
38 +
39 +RDEPEND="
40 + dev-libs/openssl:0=[-bindist]
41 + sys-apps/pcsc-lite
42 +"
43 +DEPEND="${RDEPEND}
44 + dev-util/gengetopt
45 + sys-apps/help2man
46 + virtual/pkgconfig
47 + test? ( dev-libs/check )
48 +"
49 +
50 +PATCHES=(
51 + "${FILESDIR}"/${PN}-2.1.1-install-man-page.patch
52 + "${FILESDIR}"/${PN}-2.1.1-tests-optional.patch
53 +)
54 +
55 +S="${WORKDIR}/${PN}-${P}"
56 +
57 +src_configure() {
58 + local mycmakeargs=(
59 + -DBUILD_STATIC_LIB=OFF
60 + -DBUILD_TESTING=$(usex test)
61 + )
62 + cmake_src_configure
63 +}
64 +
65 +src_install() {
66 + cmake_src_install
67 +
68 + echo "module: ${EPREFIX}/usr/$(get_libdir)/libykcs11.so" > ${PN}.module \
69 + || die "Failed to generate p11-kit module configuration"
70 + insinto /usr/share/p11-kit/modules
71 + doins ${PN}.module
72 +}