blob: 6e29f681bbff6f3c1fad713458b4d06f22045245 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 2021-2026 Liguros Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake udev linux-info
DESCRIPTION="Provides library functionality for FIDO 2.0"
HOMEPAGE="https://github.com/Yubico/libfido2"
SRC_URI="https://github.com/Yubico/libfido2/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0/1"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE="libressl nfc +static-libs"
DEPEND="
dev-libs/libcbor:=
virtual/libudev:=
app-text/mandoc
sys-libs/zlib:0=
!libressl? ( dev-libs/openssl:0= )
libressl? ( >=dev-libs/libressl-3.5.0:0= )
"
RDEPEND="
${DEPEND}
acct-group/plugdev
"
PATCHES="
$FILESDIR/libfido2-1.9.0-cmakelists.patch
"
pkg_pretend() {
CONFIG_CHECK="
~USB_HID
~HIDRAW
"
check_extra_config
}
src_configure() {
local mycmakeargs=(
-DBUILD_EXAMPLES=OFF
-DBUILD_STATIC_LIBS=$(usex static-libs ON OFF)
-DNFC_LINUX=$(usex nfc ON OFF)
)
cmake_src_configure
}
src_install() {
cmake_src_install
udev_newrules udev/70-u2f.rules 70-libfido2-u2f.rules
}
|