[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
71/115: gnu: wayland: Fix and move documentation.
From: |
guix-commits |
Subject: |
71/115: gnu: wayland: Fix and move documentation. |
Date: |
Fri, 7 May 2021 16:56:42 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 1391db029a8f7684993ec2dd47bd1de84ba61047
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 a17e806..956dc59 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -928,8 +928,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)
- 35/115: gnu: gdk-pixbuf: Add missing arguments., (continued)
- 35/115: gnu: gdk-pixbuf: Add missing arguments., guix-commits, 2021/05/07
- 49/115: gnu: libgsf: Make separate output for binaries., guix-commits, 2021/05/07
- 43/115: gnu: vala: Change build-system., guix-commits, 2021/05/07
- 48/115: gnu: libgsf: Change build-system., guix-commits, 2021/05/07
- 58/115: gnu: atkmm: Update to 2.36.0., guix-commits, 2021/05/07
- 52/115: gnu: libgsf: Correct inputs., guix-commits, 2021/05/07
- 61/115: gnu: Add atkmm-2.28., guix-commits, 2021/05/07
- 65/115: gnu: at-spi2-atk: Update to 2.38.0., guix-commits, 2021/05/07
- 68/115: gnu: json-glib: Enable documentation and man-pages., guix-commits, 2021/05/07
- 70/115: gnu: wayland: Update to 1.19.0., guix-commits, 2021/05/07
- 71/115: gnu: wayland: Fix and move documentation.,
guix-commits <=
- 74/115: gnu: yelp-xsl: Enable documentation., guix-commits, 2021/05/07
- 72/115: gnu: wayland: Update synopsis, description and license., guix-commits, 2021/05/07
- 75/115: gnu: gtk+-2: Enable tests., guix-commits, 2021/05/07
- 79/115: gnu: gtk+: Add missing inputs., guix-commits, 2021/05/07
- 84/115: gnu: ibus: Update to 1.5.24., guix-commits, 2021/05/07
- 82/115: gnu: gtkmm: Update to 3.24.4., guix-commits, 2021/05/07
- 90/115: gnu: faac: Correct source uri., guix-commits, 2021/05/07
- 87/115: gnu: ibus: Enable tests., guix-commits, 2021/05/07
- 88/115: gnu: ibus: Remove trailing #t in phases., guix-commits, 2021/05/07
- 89/115: gnu: iqa: Correct source uri., guix-commits, 2021/05/07