gnu: dblatex: Split documentation.

* gnu/packages/docbook.scm (dblatex)[arguments]<#:phases>: Add 'move-doc.
[outputs]: Add doc.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Bruno Victal 2023-10-09 21:06:07 +01:00 committed by Ludovic Courtès
parent 28f4fd9ef9
commit 3c68b3847a
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -692,6 +692,7 @@ the in DocBook SGML DTDs.")
(sha256
(base32
"0yd09nypswy3q4scri1dg7dr99d7gd6r2dwx0xm81l9f4y32gs0n"))))
(outputs '("out" "doc"))
(build-system python-build-system)
(arguments
(list
@ -707,6 +708,12 @@ the in DocBook SGML DTDs.")
#:tests? #f ;no test suite
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'move-doc
(lambda _
(let ((old (string-append #$output "/share/doc"))
(new (string-append #$output:doc "/share/doc")))
(mkdir-p (dirname new))
(rename-file old new))))
(add-after 'wrap 'set-path
(lambda* (#:key inputs #:allow-other-keys)
(let ((path (map (lambda (x)