From eeb9b9b6ac31185737a15e4b0c8dc600e4a610eb Mon Sep 17 00:00:00 2001 From: Bruno Victal Date: Mon, 9 Oct 2023 21:06:02 +0100 Subject: gnu: docbook2x: Split documentation. * gnu/packages/docbook.scm (docbook2x)[arguments]<#:phases>: Add 'move-doc phase. [outputs]: Add 'doc output. Signed-off-by: Maxim Cournoyer --- gnu/packages/docbook.scm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm index d203867802..635310941d 100644 --- a/gnu/packages/docbook.scm +++ b/gnu/packages/docbook.scm @@ -883,11 +883,18 @@ Detect the differences in markup between two SGML files. "")) ;; Force a new autoreconf run. (delete-file "configure"))))) + (outputs '("out" "doc")) (build-system gnu-build-system) (arguments (list #: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 'install 'wrap-programs (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((programs -- cgit 1.4.1