gnu: vala: Fix documentation.

* gnu/packages/gnome.scm (vala) [arguments]<#:phases>['patch-docbook-xml]: New phase.
[native-inputs]: Add docbook-xml and docbook-xsl.

Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
This commit is contained in:
Raghav Gururajan 2021-03-11 11:30:26 -05:00
parent 1aed8b6984
commit 31ed6339c4
No known key found for this signature in database
GPG key ID: 45A8B1E86BCD10A6

View file

@ -4284,6 +4284,14 @@ (define-public vala
'(#:configure-flags '("--enable-coverage")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-docbook-xml
(lambda* (#:key inputs #:allow-other-keys)
(with-directory-excursion "doc/manual"
(substitute* '("manual.xml" "version.xml.in")
(("http://www.oasis-open.org/docbook/xml/4.4/")
(string-append (assoc-ref inputs "docbook-xml")
"/xml/dtd/docbook/"))))
#t))
(add-before 'check 'pre-check
(lambda _
(setenv "CC" "gcc")
@ -4293,6 +4301,8 @@ (define-public vala
(string-append m "$PKG_CONFIG_PATH:"))))))))
(native-inputs
`(("pkg-config" ,pkg-config)
("docbook-xml" ,docbook-xml-4.4)
("docbook-xsl" ,docbook-xsl)
("flex" ,flex)
("bison" ,bison)
("xsltproc" ,libxslt)