Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libfido2/files/, dev-libs/libfido2/
Date: Tue, 30 Mar 2021 08:07:03
Message-Id: 1617091612.de1d381ac3aa9f001125f3b290a35afdbda0e6e4.polynomial-c@gentoo
1 commit: de1d381ac3aa9f001125f3b290a35afdbda0e6e4
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 30 08:06:19 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 30 08:06:52 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de1d381a
7
8 dev-libs/libfido2: Bump to version 1.7.0
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 dev-libs/libfido2/Manifest | 1 +
13 .../libfido2/files/libfido2-1.7.0-cmakelists.patch | 30 ++++++++++++
14 dev-libs/libfido2/libfido2-1.7.0.ebuild | 57 ++++++++++++++++++++++
15 dev-libs/libfido2/metadata.xml | 3 ++
16 4 files changed, 91 insertions(+)
17
18 diff --git a/dev-libs/libfido2/Manifest b/dev-libs/libfido2/Manifest
19 index 364924cc4ac..0436533ab99 100644
20 --- a/dev-libs/libfido2/Manifest
21 +++ b/dev-libs/libfido2/Manifest
22 @@ -1,2 +1,3 @@
23 DIST libfido2-1.5.0.tar.gz 407259 BLAKE2B 23a04f9230c45652aa1ac9fd8b3e809096ae31699c65ca0fda27b27b1b47263e375bb99e5b1ebc515b9edfb801bb2fba9c4f50d88e755efe3eaa23463ca01946 SHA512 240e2368e43846fddf5e98bbcc247468833565bcde4ec27976b88c814d787f1a477241a82b064818aa0eb0a98ff46a65d80b8243f4d0bbd763270e42492354e2
24 DIST libfido2-1.6.0.tar.gz 413904 BLAKE2B 59444cc9e32b5d9f2a0f9138fe4f3ad644865e1f7f24f50bbace262308aa7c10b58aa0e890a3493e8fd102468e26947f7fc0864b5d7a1e185e40ad730064db8e SHA512 c473732a2f7ef54156097d315e44457d89056446ab3112a7c7a6fd99d5c2c8ae0ca2451ff9cd45be6c32de1ab335d6dfdb2b0c56b40cae9eb41391d18d83be4a
25 +DIST libfido2-1.7.0.tar.gz 517426 BLAKE2B c7ad55d1402808ad12dc999b0ec67161a5fe82dfeaeed362c35f4183144af9bd2771c1e3318a731db46fd8fc21ccd0737024b72c8dd3c754e34625118817742f SHA512 f40d394883d909e9e3ea3308b32f7ca31a882c709e11b3b143ed5734d16b0c244d4932effe06965d566776b03d152b1fc280e73cdfeeb81b65d8414042af19fe
26
27 diff --git a/dev-libs/libfido2/files/libfido2-1.7.0-cmakelists.patch b/dev-libs/libfido2/files/libfido2-1.7.0-cmakelists.patch
28 new file mode 100644
29 index 00000000000..2a1bfc1614d
30 --- /dev/null
31 +++ b/dev-libs/libfido2/files/libfido2-1.7.0-cmakelists.patch
32 @@ -0,0 +1,30 @@
33 +--- libfido2-1.7.0/CMakeLists.txt
34 ++++ libfido2-1.7.0/CMakeLists.txt
35 +@@ -246,14 +246,12 @@
36 +
37 + add_compile_options(-Wall)
38 + add_compile_options(-Wextra)
39 +- add_compile_options(-Werror)
40 + add_compile_options(-Wshadow)
41 + add_compile_options(-Wcast-qual)
42 + add_compile_options(-Wwrite-strings)
43 + add_compile_options(-Wmissing-prototypes)
44 + add_compile_options(-Wbad-function-cast)
45 + add_compile_options(-pedantic)
46 +- add_compile_options(-pedantic-errors)
47 +
48 + if(HAVE_SHORTEN_64_TO_32)
49 + add_compile_options(-Wshorten-64-to-32)
50 +--- libfido2-1.7.0/man/CMakeLists.txt
51 ++++ libfido2-1.7.0/man/CMakeLists.txt
52 +@@ -3,10 +3,8 @@
53 + # license that can be found in the LICENSE file.
54 +
55 + find_program(MANDOC_PATH mandoc)
56 +-find_program(GZIP_PATH gzip)
57 +
58 + message(STATUS "MANDOC_PATH: ${MANDOC_PATH}")
59 +-message(STATUS "GZIP_PATH: ${GZIP_PATH}")
60 +
61 + list(APPEND MAN_SOURCES
62 + eddsa_pk_new.3
63
64 diff --git a/dev-libs/libfido2/libfido2-1.7.0.ebuild b/dev-libs/libfido2/libfido2-1.7.0.ebuild
65 new file mode 100644
66 index 00000000000..21c57df8955
67 --- /dev/null
68 +++ b/dev-libs/libfido2/libfido2-1.7.0.ebuild
69 @@ -0,0 +1,57 @@
70 +# Copyright 2021 Gentoo Authors
71 +# Distributed under the terms of the GNU General Public License v2
72 +
73 +EAPI=7
74 +
75 +inherit cmake udev linux-info
76 +
77 +DESCRIPTION="Provides library functionality for FIDO 2.0"
78 +HOMEPAGE="https://github.com/Yubico/libfido2"
79 +SRC_URI="https://github.com/Yubico/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
80 +
81 +LICENSE="BSD-2"
82 +SLOT="0/1"
83 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
84 +IUSE="nfc +static-libs"
85 +
86 +DEPEND="
87 + dev-libs/libcbor:=
88 + dev-libs/openssl:0=
89 + sys-libs/zlib:0=
90 + virtual/libudev:=
91 +"
92 +
93 +RDEPEND="
94 + ${DEPEND}
95 + acct-group/plugdev
96 +"
97 +
98 +PATCHES=(
99 + "${FILESDIR}/libfido2-1.7.0-cmakelists.patch"
100 +)
101 +
102 +pkg_pretend() {
103 + CONFIG_CHECK="
104 + ~USB_HID
105 + ~HIDRAW
106 + "
107 +
108 + check_extra_config
109 +}
110 +
111 +src_configure() {
112 + local mycmakeargs=(
113 + -DNFC_LINUX="$(usex nfc)"
114 + )
115 + cmake_src_configure
116 +}
117 +
118 +src_install() {
119 + cmake_src_install
120 +
121 + if ! use static-libs; then
122 + rm -f "${ED}/$(get_libdir)"/*.a || die
123 + fi
124 +
125 + udev_newrules udev/70-u2f.rules 70-libfido2-u2f.rules
126 +}
127
128 diff --git a/dev-libs/libfido2/metadata.xml b/dev-libs/libfido2/metadata.xml
129 index 4eb20a048df..faf987beddf 100644
130 --- a/dev-libs/libfido2/metadata.xml
131 +++ b/dev-libs/libfido2/metadata.xml
132 @@ -5,4 +5,7 @@
133 <email>base-system@g.o</email>
134 <name>Gentoo Base System</name>
135 </maintainer>
136 + <use>
137 + <flag name="nfc">Enable experimental NFC support</flag>
138 + </use>
139 </pkgmetadata>