[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/83: gnu: glib-with-documentation: Fix documentation build.
From: |
guix-commits |
Subject: |
06/83: gnu: glib-with-documentation: Fix documentation build. |
Date: |
Fri, 26 Mar 2021 17:18:24 -0400 (EDT) |
lle_bout pushed a commit to branch core-updates
in repository guix.
commit 32d00992be41603b4972f555273d27a7a6732c7d
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 01bdcef..36cb3ed 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -321,7 +321,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)))
@@ -331,6 +332,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"))
- branch core-updates updated (c2366b9 -> 76b689f), guix-commits, 2021/03/26
- 06/83: gnu: glib-with-documentation: Fix documentation build.,
guix-commits <=
- 09/83: gnu: libsigc++: Enable documentation., guix-commits, 2021/03/26
- 07/83: gnu: Temporarily use glib without documentation., guix-commits, 2021/03/26
- 16/83: gnu: gtk-doc: Update to 1.32., guix-commits, 2021/03/26
- 14/83: gnu: gtk-doc: Change build-system., guix-commits, 2021/03/26
- 18/83: gnu: gtk-doc: Update synopsis, description, home-page and license., guix-commits, 2021/03/26
- 19/83: gnu: gobject-introspection: Propagate glib., guix-commits, 2021/03/26
- 20/83: gnu: cairo: Make some cosmetic changes., guix-commits, 2021/03/26
- 24/83: gnu: cairo: Update synopsis, description and license., guix-commits, 2021/03/26
- 05/83: gnu: glib-with-documentation: Make some cosmetic changes., guix-commits, 2021/03/26
- 01/83: gnu: glib: Make some cosmetic changes., guix-commits, 2021/03/26