[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/126: gnu: glib-with-documentation: Fix documentation build.
From: |
guix-commits |
Subject: |
06/126: gnu: glib-with-documentation: Fix documentation build. |
Date: |
Mon, 6 Sep 2021 15:53:25 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit cf402b7dfc6421a6efadaaf7de28ac5fae2029a6
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Thu Mar 11 09:39:52 2021 -0500
gnu: glib-with-documentation: Fix documentation build.
* gnu/packages/glib.scm (glib-with-documentation) [native-inputs]:
Add docbook-4.2. Remove libxml2.
[arguments]<#:phases>['patch-docbook-xml]: New phase.
Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
---
gnu/packages/glib.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index c8790c1..45c93ba 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -320,7 +320,8 @@ functions for strings and common data structures.")
(properties (alist-delete 'hidden? (package-properties glib)))
(outputs (cons "doc" (package-outputs glib))) ; 20 MiB of GTK-Doc reference
(native-inputs
- `(("docbook-xml" ,docbook-xml)
+ `(("docbook-xml-4.2" ,docbook-xml-4.2)
+ ("docbook-xml-4.5" ,docbook-xml)
("gtk-doc" ,gtk-doc) ; for the doc
("libxml2" ,libxml2)
,@(package-native-inputs glib)))
@@ -330,6 +331,17 @@ functions for strings and common data structures.")
`(cons "-Dgtk_doc=true" ,flags))
((#:phases phases)
`(modify-phases ,phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "docs"
+ (substitute* (find-files "." "\\.xml$")
+ (("http://www.oasis-open.org/docbook/xml/4\\.5/")
+ (string-append (assoc-ref inputs "docbook-xml-4.5")
+ "/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"))
- 15/126: gnu: gtk-doc: Correct inputs., (continued)
- 15/126: gnu: gtk-doc: Correct inputs., guix-commits, 2021/09/06
- 16/126: gnu: gtk-doc: Update to 1.32., guix-commits, 2021/09/06
- 20/126: gnu: cairo: Make some cosmetic changes., guix-commits, 2021/09/06
- 23/126: gnu: cairo: Enable some features., guix-commits, 2021/09/06
- 21/126: gnu: cairo: Change build-system., guix-commits, 2021/09/06
- 28/126: gnu: pango: Add missing arguments., guix-commits, 2021/09/06
- 30/126: gnu: pango: Update to 1.48.3., guix-commits, 2021/09/06
- 29/126: gnu: pango: Re-arrange inputs in alphabetical order., guix-commits, 2021/09/06
- 17/126: gnu: gtk-doc: Enable help., guix-commits, 2021/09/06
- 19/126: gnu: gobject-introspection: Propagate glib., guix-commits, 2021/09/06
- 06/126: gnu: glib-with-documentation: Fix documentation build.,
guix-commits <=
- 14/126: gnu: gtk-doc: Change build-system., guix-commits, 2021/09/06
- 18/126: gnu: gtk-doc: Update synopsis, description, home-page and license., guix-commits, 2021/09/06
- 22/126: gnu: cairo: Move documentation to separate output., guix-commits, 2021/09/06
- 24/126: gnu: cairo: Update synopsis, description and license., guix-commits, 2021/09/06
- 25/126: gnu: cairomm: Update to 1.16.0., guix-commits, 2021/09/06
- 26/126: gnu: cairomm: Enable documentation., guix-commits, 2021/09/06
- 27/126: gnu: cairomm-1.13: Fix build., guix-commits, 2021/09/06
- 32/126: gnu: pangomm: Update to 2.48.0., guix-commits, 2021/09/06
- 34/126: gnu: pangomm-2.42: Update to 2.42.2., guix-commits, 2021/09/06
- 35/126: gnu: gdk-pixbuf: Add missing arguments., guix-commits, 2021/09/06