mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-10 05:09:33 -05:00
gnu: shared-mime-info: Add doc output.
* gnu/packages/freedesktop.scm (shared-mime-info[#:phases]: Add ‘install-doc’. [outputs]: Add “doc”. [native-inputs]: Add docbook-xml-4.1.2, docbook-xsl and xmlto. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
parent
0a167432db
commit
4346c092ea
1 changed files with 15 additions and 2 deletions
|
@ -545,11 +545,24 @@ (define-public shared-mime-info
|
||||||
(not (string-prefix? "./tests/mime-detection"
|
(not (string-prefix? "./tests/mime-detection"
|
||||||
file))))))
|
file))))))
|
||||||
(for-each patch-shebang
|
(for-each patch-shebang
|
||||||
(find-files "." pred #:stat lstat))))))))
|
(find-files "." pred #:stat lstat)))))
|
||||||
|
;; The docs have no install rule.
|
||||||
|
(add-after 'install 'install-doc
|
||||||
|
(lambda* (#:key source #:allow-other-keys)
|
||||||
|
(let ((dest (string-append #$output:doc "/share/doc")))
|
||||||
|
(with-directory-excursion "data/shared-mime-info-spec-html"
|
||||||
|
(install-file "shared-mime-info-spec.html"
|
||||||
|
(string-append dest "/html")))
|
||||||
|
(install-file (string-append source
|
||||||
|
"/data/shared-mime-info-spec.xml")
|
||||||
|
dest)))))))
|
||||||
(inputs
|
(inputs
|
||||||
(list glib libxml2))
|
(list glib libxml2))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list gettext-minimal pkg-config python xdgmime))
|
(list gettext-minimal pkg-config python xdgmime
|
||||||
|
;; For 'doc' output.
|
||||||
|
docbook-xml-4.1.2 docbook-xsl xmlto))
|
||||||
|
(outputs (list "out" "doc"))
|
||||||
(home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
|
(home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
|
||||||
(synopsis "Database of common MIME types")
|
(synopsis "Database of common MIME types")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue