mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-09 20:59:31 -05:00
gnu: wayland: Fix and move documentation.
* gnu/packages/freedesktop.scm (wayland) [outputs]: New output "doc". [arguments]<#:phases>['patch-docbook-xml]: New phase. ['move-doc]: New phase. Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
This commit is contained in:
parent
ce469cf96d
commit
9c62b78f52
1 changed files with 24 additions and 1 deletions
|
@ -925,8 +925,31 @@ (define-public wayland
|
||||||
(base32
|
(base32
|
||||||
"05bd2vphyx8qwa1mhsj1zdaiv4m4v94wrlssrn0lad8d601dkk5s"))))
|
"05bd2vphyx8qwa1mhsj1zdaiv4m4v94wrlssrn0lad8d601dkk5s"))))
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
|
(outputs '("out" "doc"))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:parallel-tests? #f))
|
`(#:parallel-tests? #f
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-docbook-xml
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(with-directory-excursion "doc"
|
||||||
|
(substitute* (find-files "." "\\.xml$")
|
||||||
|
(("http://www.oasis-open.org/docbook/xml/4\\.5/")
|
||||||
|
(string-append (assoc-ref inputs "docbook-xml")
|
||||||
|
"/xml/dtd/docbook/"))
|
||||||
|
(("http://www.oasis-open.org/docbook/xml/4\\.2/")
|
||||||
|
(string-append (assoc-ref inputs "docbook-xml-4.2")
|
||||||
|
"/xml/dtd/docbook/"))))
|
||||||
|
#t))
|
||||||
|
(add-after 'install 'move-doc
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(doc (assoc-ref outputs "doc")))
|
||||||
|
(mkdir-p (string-append doc "/share"))
|
||||||
|
(rename-file
|
||||||
|
(string-append out "/share/doc")
|
||||||
|
(string-append doc "/share/doc"))
|
||||||
|
#t))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("docbook-xml-4.2" ,docbook-xml-4.2)
|
`(("docbook-xml-4.2" ,docbook-xml-4.2)
|
||||||
("docbook-xml" ,docbook-xml)
|
("docbook-xml" ,docbook-xml)
|
||||||
|
|
Loading…
Reference in a new issue