[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
71/124: gnu: wayland: Fix and move documentation.
From: |
guix-commits |
Subject: |
71/124: gnu: wayland: Fix and move documentation. |
Date: |
Tue, 10 Aug 2021 20:21:17 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit d2a9febd192c6dc863a2094f3ce8f06b8b5bfd85
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Fri Mar 26 10:42:00 2021 -0400
gnu: wayland: Fix and move documentation.
* gnu/packages/freedesktop.scm (wayland) [outputs]: New output "doc".
[arguments]<#:phases>['patch-docbook-xml]: New phase.
['move-doc]: New phase.
Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
---
gnu/packages/freedesktop.scm | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 68bc147..b296e60 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -963,8 +963,31 @@ Python.")
(base32
"05bd2vphyx8qwa1mhsj1zdaiv4m4v94wrlssrn0lad8d601dkk5s"))))
(build-system meson-build-system)
+ (outputs '("out" "doc"))
(arguments
- `(#:parallel-tests? #f))
+ `(#:parallel-tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "doc"
+ (substitute* (find-files "." "\\.xml$")
+ (("http://www.oasis-open.org/docbook/xml/4\\.5/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/"))
+ (("http://www.oasis-open.org/docbook/xml/4\\.2/")
+ (string-append (assoc-ref inputs "docbook-xml-4.2")
+ "/xml/dtd/docbook/"))))
+ #t))
+ (add-after 'install 'move-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (mkdir-p (string-append doc "/share"))
+ (rename-file
+ (string-append out "/share/doc")
+ (string-append doc "/share/doc"))
+ #t))))))
(native-inputs
`(("docbook-xml-4.2" ,docbook-xml-4.2)
("docbook-xml" ,docbook-xml)
- 72/124: gnu: wayland: Update synopsis, description and license., (continued)
- 72/124: gnu: wayland: Update synopsis, description and license., guix-commits, 2021/08/10
- 73/124: gnu: wayland-protocols: Update description., guix-commits, 2021/08/10
- 75/124: gnu: gtk+-2: Enable tests., guix-commits, 2021/08/10
- 76/124: gnu: gtk+-2: Add missing inputs and search-path., guix-commits, 2021/08/10
- 79/124: gnu: gtk+: Add missing inputs., guix-commits, 2021/08/10
- 55/124: gnu: atk: Re-arrange inputs in alphabetical order., guix-commits, 2021/08/10
- 62/124: gnu: at-spi2-core: Update to 2.40.0., guix-commits, 2021/08/10
- 64/124: gnu: at-spi2-core: Update home-page and license., guix-commits, 2021/08/10
- 69/124: gnu: json-glib: Update synopsis and description., guix-commits, 2021/08/10
- 70/124: gnu: wayland: Update to 1.19.0., guix-commits, 2021/08/10
- 71/124: gnu: wayland: Fix and move documentation.,
guix-commits <=
- 77/124: gnu: gtk+-2: Update to 2.24.33., guix-commits, 2021/08/10
- 78/124: gnu: gtk+: Enable tests., guix-commits, 2021/08/10
- 81/124: gnu: gtk+: Update to 3.24.27., guix-commits, 2021/08/10
- 90/124: gnu: faac: Correct source uri., guix-commits, 2021/08/10
- 84/124: gnu: ibus: Update to 1.5.24., guix-commits, 2021/08/10
- 91/124: gnu: zbar: Update to 0.23.90., guix-commits, 2021/08/10
- 100/124: gnu: gst-editing-services: Update to 1.18.4., guix-commits, 2021/08/10
- 82/124: gnu: gtkmm: Update to 3.24.4., guix-commits, 2021/08/10
- 85/124: gnu: ibus: Enable documentation., guix-commits, 2021/08/10
- 95/124: gnu: gst-plugins-good: Update to 1.18.4., guix-commits, 2021/08/10