mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
gnu: qemu: Install the Info manuals.
* gnu/packages/qemu.scm (qemu): Add `install-info' phase. Add Texinfo as an input.
This commit is contained in:
parent
86f1537d3f
commit
bbc08c7940
1 changed files with 19 additions and 2 deletions
|
@ -24,6 +24,7 @@ (define-module (gnu packages qemu)
|
|||
#:use-module (guix build-system gnu)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module (gnu packages autotools)
|
||||
#:use-module (gnu packages texinfo)
|
||||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages glib)
|
||||
#:use-module (gnu packages python)
|
||||
|
@ -72,7 +73,22 @@ (define-public qemu
|
|||
(string-append "--prefix=" out)
|
||||
(string-append "--smbd=" samba
|
||||
"/sbin/smbd")))))
|
||||
%standard-phases)))
|
||||
(alist-cons-after
|
||||
'install 'install-info
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
;; Install the Info manual, unless Texinfo is missing.
|
||||
(or (not (assoc-ref inputs "texinfo"))
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(and (zero? (system* "make" "info"))
|
||||
(let ((infodir (string-append out "/share/info")))
|
||||
(mkdir-p infodir)
|
||||
(for-each (lambda (info)
|
||||
(copy-file
|
||||
info
|
||||
(string-append infodir "/" info)))
|
||||
(find-files "." "\\.info$"))
|
||||
#t)))))
|
||||
%standard-phases))))
|
||||
|
||||
(inputs ; TODO: Add optional inputs.
|
||||
`(;; ("mesa" ,mesa)
|
||||
|
@ -92,7 +108,8 @@ (define-public qemu
|
|||
("zlib" ,zlib)
|
||||
("attr" ,attr)
|
||||
("samba" ,samba))) ; an optional dependency
|
||||
(native-inputs `(("perl" ,perl)))
|
||||
(native-inputs `(("texinfo" ,texinfo)
|
||||
("perl" ,perl)))
|
||||
|
||||
(home-page "http://www.qemu-project.org")
|
||||
(synopsis "Machine emulator and virtualizer")
|
||||
|
|
Loading…
Reference in a new issue