mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: colord-gtk: Build documentation.
* gnu/packages/freedesktop.scm (colord-gtk): Build documentation. [arguments]<#:configure-flags>: Remove. <#:phases>: Add 'split-package phase. [native-inputs]: Add docbook-xsl, gtk-doc/stable and libxslt. [outputs]: Add 'doc output. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
b51b96dc60
commit
89beef2b62
1 changed files with 16 additions and 5 deletions
|
@ -2253,14 +2253,25 @@ (define-public colord-gtk
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1l61ydb0zv2ffilwpapgz5mm3bznr28zl16xqbxnz6kdsrb6cimr"))))
|
"1l61ydb0zv2ffilwpapgz5mm3bznr28zl16xqbxnz6kdsrb6cimr"))))
|
||||||
|
(outputs '("out" "doc"))
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments '(#:tests? #f ;require the colord system service
|
(arguments
|
||||||
;; Building documentation fails with: "Cannot build man pages
|
(list
|
||||||
;; without docbook-xsl-ns".
|
#:tests? #f ;require the colord system service
|
||||||
#:configure-flags (list "-Ddocs=false" "-Dman=false")))
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'split-package
|
||||||
|
(lambda _
|
||||||
|
(let* ((old (string-append #$output "/share/gtk-doc"))
|
||||||
|
(new (string-append #$output:doc "/share/gtk-doc")))
|
||||||
|
(mkdir-p (dirname new))
|
||||||
|
(rename-file old new)))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list gettext-minimal
|
(list docbook-xsl
|
||||||
|
gettext-minimal
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
|
gtk-doc/stable
|
||||||
|
libxslt
|
||||||
pkg-config
|
pkg-config
|
||||||
vala))
|
vala))
|
||||||
(inputs
|
(inputs
|
||||||
|
|
Loading…
Reference in a new issue