dev-libs/libfido2-1.4.0: Version bump, remove Werror (bug #717952)
authorPatrick McLean <patrick.mclean@sony.com>
Fri, 17 Apr 2020 22:12:40 +0000 (15:12 -0700)
committerPatrick McLean <chutzpah@gentoo.org>
Fri, 17 Apr 2020 22:16:50 +0000 (15:16 -0700)
Bug: https://bugs.gentoo.org/717952
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
dev-libs/libfido2/Manifest
dev-libs/libfido2/files/libfido2-1.4.0-cmakelists.patch [new file with mode: 0644]
dev-libs/libfido2/libfido2-1.4.0.ebuild [new file with mode: 0644]

index ce387f8e9a6c8ec57f224d2d935ec5a15cffcbd3..41a19ecc73993534910b684828bfcf339ba96c5b 100644 (file)
@@ -1,2 +1,3 @@
 DIST libfido2-1.3.0.tar.gz 1516842 BLAKE2B 18a0036127a9f643ef7ca917dab909bfa344caecdfdef3f1f0881bd7c84b73ea8273a57a2daccc95cc448d7777c389a8f573f663895abd78c48b3340a45f7764 SHA512 9cfb872b898fb6659e0c5e377b5f80738c22dadc4768be02b8cb5e4f4932cb4edde360cd84aac78eb3e3a57d3bc10b4147740a4830d16adcdefe7c48fa460d36
 DIST libfido2-1.3.1.tar.gz 1512676 BLAKE2B f69a04fc69c46b688d83afe9d72b2fb1860ac00a09665d55e25293595520e95d45486ecc5355c479bc8bc06dbe6ed4fd469c511f5bf5f341a0ec86cb099fce28 SHA512 fc56f7bcddd7ae0f950b4e94f08ad726f7de68b975c0bdcbca98c7932c2c3d2e2a51b30eaf41e8dba08e82af3926cbed44264244ae721902af46e47df9fcbe1b
+DIST libfido2-1.4.0.tar.gz 391439 BLAKE2B d45ff3e1a5605c5ea4c5bddbe423bb69e6237e7a359fcc58469a86c503c934ce4491b98fdd673130d419cabe09acab7e201592f923ffe3908568b2b0888ae32a SHA512 5cf2f2d70bdba893fd33bf3ca91940c7eded5ed1728b517ff3fc46cbde58bf64f16da4104138b20dcea1d9a1cec730e532bc4938cdcba4ad86343e51a1c3c513
diff --git a/dev-libs/libfido2/files/libfido2-1.4.0-cmakelists.patch b/dev-libs/libfido2/files/libfido2-1.4.0-cmakelists.patch
new file mode 100644 (file)
index 0000000..df34a85
--- /dev/null
@@ -0,0 +1,34 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0bb2e87..4d0ed00 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -128,13 +128,11 @@ else()
+
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
+-      set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow")
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wwrite-strings")
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-prototypes")
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wbad-function-cast")
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic")
+-      set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic-errors")
+       check_c_compiler_flag("-fstack-protector-all" HAVE_STACK_PROTECTOR_ALL)
+       if(HAVE_STACK_PROTECTOR_ALL)
+               set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-all")
+diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
+index 44e4a96..d04dacc 100644
+--- a/man/CMakeLists.txt
++++ b/man/CMakeLists.txt
+@@ -5,11 +5,6 @@
+ find_program(MANDOC_PATH mandoc)
+ message(STATUS "MANDOC_PATH: ${MANDOC_PATH}")
+
+-if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
+-      find_program(GZIP_PATH gzip)
+-      message(STATUS "GZIP_PATH: ${GZIP_PATH}")
+-endif()
+-
+ list(APPEND MAN_SOURCES
+       eddsa_pk_new.3
+       es256_pk_new.3
diff --git a/dev-libs/libfido2/libfido2-1.4.0.ebuild b/dev-libs/libfido2/libfido2-1.4.0.ebuild
new file mode 100644 (file)
index 0000000..41493d5
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils udev linux-info
+
+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"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="libressl +static-libs"
+
+DEPEND="
+       dev-libs/libcbor:=
+       virtual/libudev:=
+       !libressl? ( dev-libs/openssl:0= )
+       libressl? ( dev-libs/libressl:0= )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/libfido2-1.4.0-cmakelists.patch"
+)
+
+pkg_pretend() {
+       CONFIG_CHECK="
+               ~USB_HID
+               ~HIDRAW
+       "
+
+       check_extra_config
+}
+
+src_install() {
+       cmake-utils_src_install
+
+       if ! use static-libs; then
+               rm -f "${D}/$(get_libdir)"/*.a || die
+       fi
+
+       udev_newrules udev/70-u2f.rules 70-libfido2-u2f.rules
+}