[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
71/122: gnu: wayland: Fix and move documentation.
From: |
guix-commits |
Subject: |
71/122: gnu: wayland: Fix and move documentation. |
Date: |
Fri, 11 Jun 2021 12:12:11 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit f48fb4bce370b12d3894417fda775d66ffcc5c24
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 4f2b76d..3294e05 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -960,8 +960,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)
- 92/122: gnu: gstreamer: Update to 1.18.4., (continued)
- 92/122: gnu: gstreamer: Update to 1.18.4., guix-commits, 2021/06/11
- 95/122: gnu: gst-plugins-good: Update to 1.18.4., guix-commits, 2021/06/11
- 102/122: gnu: glib: Disable failing test., guix-commits, 2021/06/11
- 103/122: gnu: meson-0.55: Update to 0.55.3., guix-commits, 2021/06/11
- 117/122: gnu: tracker: Enable some features., guix-commits, 2021/06/11
- 50/122: gnu: libgsf: Re-arrange inputs in alphabetical order., guix-commits, 2021/06/11
- 54/122: gnu: libgsf: Update synopsis, description, home-page and license., guix-commits, 2021/06/11
- 62/122: gnu: at-spi2-core: Update to 2.40.0., guix-commits, 2021/06/11
- 67/122: gnu: json-glib: Update to 1.6.2., guix-commits, 2021/06/11
- 69/122: gnu: json-glib: Update synopsis and description., guix-commits, 2021/06/11
- 71/122: gnu: wayland: Fix and move documentation.,
guix-commits <=
- 78/122: gnu: gtk+: Enable tests., guix-commits, 2021/06/11
- 79/122: gnu: gtk+: Add missing inputs., guix-commits, 2021/06/11
- 30/122: gnu: pango: Update to 1.48.3., guix-commits, 2021/06/11
- 59/122: gnu: atkmm: Enable documentation., guix-commits, 2021/06/11
- 66/122: gnu: at-spi2-atk: Update home-page and license., guix-commits, 2021/06/11
- 80/122: gnu: gtk+: Enable cloud-providers support., guix-commits, 2021/06/11
- 81/122: gnu: gtk+: Update to 3.24.27., guix-commits, 2021/06/11
- 82/122: gnu: gtkmm: Update to 3.24.4., guix-commits, 2021/06/11
- 85/122: gnu: ibus: Enable documentation., guix-commits, 2021/06/11
- 87/122: gnu: ibus: Enable tests., guix-commits, 2021/06/11