gnu: libu2f-host: Remove patch-docbook-xml phase.

* gnu/packages/security-token.scm (libu2f-host) [arguments]: Remove patch-docbook-xml
phase.  Use gexps.
[native-inputs]: Add libxml2.
This commit is contained in:
Maxim Cournoyer 2023-04-20 16:15:59 -04:00
parent 100b3c3df7
commit b42acd88d4
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -19,6 +19,7 @@
;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
;;; Copyright © 2023 Jake Leporte <jakeleporte@outlook.com> ;;; Copyright © 2023 Jake Leporte <jakeleporte@outlook.com>
;;; Copyright © 2023 Timotej Lazar <timotej.lazar@araneo.si> ;;; Copyright © 2023 Timotej Lazar <timotej.lazar@araneo.si>
;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -582,30 +583,19 @@ Notable features:
"0vrivl1dwql6nfi48z6dy56fwy2z13d7abgahgrs2mcmqng7hra2")))) "0vrivl1dwql6nfi48z6dy56fwy2z13d7abgahgrs2mcmqng7hra2"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:configure-flags (list #:configure-flags
(list "--enable-gtk-doc" #~(list "--enable-gtk-doc"
(string-append "--with-udevrulesdir=" (string-append "--with-udevrulesdir=" #$output
(assoc-ref %outputs "out") "/lib/udev/rules.d"))))
"/lib/udev/rules.d")) (inputs (list json-c-0.13 hidapi))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-docbook-xml
(lambda* (#:key inputs #:allow-other-keys)
;; Avoid a network connection attempt during the build.
(substitute* "gtk-doc/u2f-host-docs.xml"
(("http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd")
(string-append (assoc-ref inputs "docbook-xml")
"/xml/dtd/docbook/docbookx.dtd")))
#t)))))
(inputs
(list json-c-0.13 hidapi))
(native-inputs (native-inputs
(list help2man (list help2man
gengetopt gengetopt
pkg-config pkg-config
gtk-doc gtk-doc
docbook-xml-4.3 docbook-xml-4.3
eudev)) eudev
libxml2)) ;for XML_CATALOG_FILES
(home-page "https://developers.yubico.com/libu2f-host/") (home-page "https://developers.yubico.com/libu2f-host/")
;; TRANSLATORS: The U2F protocol has a "server side" and a "host side". ;; TRANSLATORS: The U2F protocol has a "server side" and a "host side".
(synopsis "U2F host-side C library and tool") (synopsis "U2F host-side C library and tool")