You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
932 B
51 lines
932 B
5 years ago
|
# Copyright 2020 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
4 years ago
|
inherit cmake udev linux-info
|
||
5 years ago
|
|
||
|
DESCRIPTION="Provides library functionality for FIDO 2.0"
|
||
|
HOMEPAGE="https://github.com/Yubico/libfido2"
|
||
|
SRC_URI="https://github.com/Yubico/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="BSD-2"
|
||
|
SLOT="0/1"
|
||
4 years ago
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
||
5 years ago
|
IUSE="libressl +static-libs"
|
||
|
|
||
|
DEPEND="
|
||
|
dev-libs/libcbor:=
|
||
|
virtual/libudev:=
|
||
|
!libressl? ( dev-libs/openssl:0= )
|
||
|
libressl? ( dev-libs/libressl:0= )
|
||
|
"
|
||
4 years ago
|
|
||
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
acct-group/plugdev
|
||
|
"
|
||
5 years ago
|
|
||
|
PATCHES=(
|
||
4 years ago
|
"${FILESDIR}/libfido2-1.5.0-cmakelists.patch"
|
||
5 years ago
|
)
|
||
|
|
||
5 years ago
|
pkg_pretend() {
|
||
|
CONFIG_CHECK="
|
||
|
~USB_HID
|
||
|
~HIDRAW
|
||
|
"
|
||
|
|
||
|
check_extra_config
|
||
|
}
|
||
|
|
||
5 years ago
|
src_install() {
|
||
4 years ago
|
cmake_src_install
|
||
5 years ago
|
|
||
|
if ! use static-libs; then
|
||
4 years ago
|
rm -f "${ED}/$(get_libdir)"/*.a || die
|
||
5 years ago
|
fi
|
||
5 years ago
|
|
||
|
udev_newrules udev/70-u2f.rules 70-libfido2-u2f.rules
|
||
5 years ago
|
}
|