[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: gnu: qemu: Move HTML documentation to the doc output.
From: |
guix-commits |
Subject: |
06/06: gnu: qemu: Move HTML documentation to the doc output. |
Date: |
Sat, 19 Sep 2020 23:22:42 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 4d82e8e5c5f7e43dbaf5d009697915717d15b155
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Sep 18 09:35:13 2020 -0400
gnu: qemu: Move HTML documentation to the doc output.
* gnu/packages/virtualization.scm (qemu)[outputs]: Add "doc" output.
[phases]{create-samba-wrapper}: Correctly refer to the outputs keyword
argument.
{move-html-doc}: Add phase.
---
gnu/packages/virtualization.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index ebfec6c..53e9dde 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -139,6 +139,7 @@
(base32
"1rd41wwlvp0vpialjp2czs6i3lsc338xc72l3zkbb7ixjfslw5y9"))
(patches (search-patches "qemu-build-info-manual.patch"))))
+ (outputs '("out" "doc")) ;4.7 MiB of HTML docs
(build-system gnu-build-system)
(arguments
`(;; FIXME: Disable tests on i686 to work around
@@ -239,7 +240,7 @@
;; Samba in your Guix profile for Samba support.
(add-after 'install 'create-samba-wrapper
(lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((out (assoc-ref %outputs "out"))
+ (let* ((out (assoc-ref outputs "out"))
(libexec (string-append out "/libexec")))
(call-with-output-file "samba-wrapper"
(lambda (port)
@@ -247,6 +248,15 @@
exec smbd $@")))
(chmod "samba-wrapper" #o755)
(install-file "samba-wrapper" libexec))
+ #t))
+ (add-after 'install 'move-html-doc
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc"))
+ (qemu-doc (string-append doc "/share/doc/qemu-" ,version)))
+ (mkdir-p qemu-doc)
+ (rename-file (string-append out "/share/doc/qemu")
+ (string-append qemu-doc "/html")))
#t)))))
(inputs ; TODO: Add optional inputs.
`(("alsa-lib" ,alsa-lib)
- branch master updated (6b12537 -> 4d82e8e), guix-commits, 2020/09/19
- 01/06: gnu: qemu: Update to 5.1.0., guix-commits, 2020/09/19
- 02/06: gnu: qemu: Disable the bios-tables-test test., guix-commits, 2020/09/19
- 03/06: gnu: qemu: Fix indentation., guix-commits, 2020/09/19
- 04/06: gnu: qemu: Enable parallel tests., guix-commits, 2020/09/19
- 06/06: gnu: qemu: Move HTML documentation to the doc output.,
guix-commits <=
- 05/06: gnu: qemu: Install the full documentation as an info manual., guix-commits, 2020/09/19