[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
71/91: gnu: wayland: Fix and move documentation.
From: |
guix-commits |
Subject: |
71/91: gnu: wayland: Fix and move documentation. |
Date: |
Mon, 19 Apr 2021 17:14:15 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit f8b493a96e459162d278f0bde1059e343fed2469
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 3281273..bbb273e 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -926,8 +926,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)
- 36/91: gnu: gdk-pixbuf: Correct inputs., (continued)
- 36/91: gnu: gdk-pixbuf: Correct inputs., guix-commits, 2021/04/19
- 52/91: gnu: libgsf: Correct inputs., guix-commits, 2021/04/19
- 58/91: gnu: atkmm: Update to 2.36.0., guix-commits, 2021/04/19
- 64/91: gnu: at-spi2-core: Update home-page and license., guix-commits, 2021/04/19
- 73/91: gnu: wayland-protocols: Update description., guix-commits, 2021/04/19
- 74/91: gnu: yelp-xsl: Enable documentation., guix-commits, 2021/04/19
- 80/91: gnu: gtk+: Enable cloud-providers support., guix-commits, 2021/04/19
- 84/91: gnu: ibus: Update to 1.5.24., guix-commits, 2021/04/19
- 61/91: gnu: Add atkmm-2.28., guix-commits, 2021/04/19
- 70/91: gnu: wayland: Update to 1.19.0., guix-commits, 2021/04/19
- 71/91: gnu: wayland: Fix and move documentation.,
guix-commits <=
- 83/91: gnu: gtkmm-2: Fix build., guix-commits, 2021/04/19
- 27/91: gnu: cairomm-1.13: Fix build., guix-commits, 2021/04/19
- 33/91: gnu: pangomm: Enable documentation., guix-commits, 2021/04/19
- 35/91: gnu: gdk-pixbuf: Add missing arguments., guix-commits, 2021/04/19
- 40/91: gnu: gdk-pixbuf: Update synopsis, description, home-page and license., guix-commits, 2021/04/19
- 56/91: gnu: atk: Update to 2.36.0., guix-commits, 2021/04/19
- 62/91: gnu: at-spi2-core: Update to 2.40.0., guix-commits, 2021/04/19
- 65/91: gnu: at-spi2-atk: Update to 2.38.0., guix-commits, 2021/04/19
- 66/91: gnu: at-spi2-atk: Update home-page and license., guix-commits, 2021/04/19
- 77/91: gnu: gtk+-2: Update to 2.24.33., guix-commits, 2021/04/19