mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: libxkbcommon: Add doc output.
* gnu/packages/xdisorg.scm (libxkbcommon)[arguments]: Restyle. <#:phases>: Add 'move-doc. [outputs]: Add doc. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I28ed23167f24e2cc3e29c0de3507fe76cf0fb5d2
This commit is contained in:
parent
7fb994ebbf
commit
01daea59c5
1 changed files with 17 additions and 7 deletions
|
@ -555,6 +555,7 @@ (define-public libxkbcommon
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0awwz5pg9x5bj0d7dpg4a7bd4gl6k55mlpxwb12534fkrpn19p0f"))))
|
"0awwz5pg9x5bj0d7dpg4a7bd4gl6k55mlpxwb12534fkrpn19p0f"))))
|
||||||
|
(outputs '("out" "doc"))
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(inputs
|
(inputs
|
||||||
(list libx11
|
(list libx11
|
||||||
|
@ -572,13 +573,22 @@ (define-public libxkbcommon
|
||||||
(list pkg-config-for-build)
|
(list pkg-config-for-build)
|
||||||
'())))
|
'())))
|
||||||
(arguments
|
(arguments
|
||||||
(list #:configure-flags
|
(list
|
||||||
#~(list (string-append "-Dxkb-config-root="
|
#:configure-flags
|
||||||
(search-input-directory
|
#~(list (string-append "-Dxkb-config-root="
|
||||||
%build-inputs "share/X11/xkb"))
|
(search-input-directory
|
||||||
(string-append "-Dx-locale-root="
|
%build-inputs "share/X11/xkb"))
|
||||||
(search-input-directory
|
(string-append "-Dx-locale-root="
|
||||||
%build-inputs "share/X11/locale")))))
|
(search-input-directory
|
||||||
|
%build-inputs "share/X11/locale")))
|
||||||
|
#: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)))))))
|
||||||
(home-page "https://xkbcommon.org/")
|
(home-page "https://xkbcommon.org/")
|
||||||
(synopsis "Library to handle keyboard descriptions")
|
(synopsis "Library to handle keyboard descriptions")
|
||||||
(description "Xkbcommon is a library to handle keyboard descriptions,
|
(description "Xkbcommon is a library to handle keyboard descriptions,
|
||||||
|
|
Loading…
Reference in a new issue