[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
259/377: gnu: glib-with-documentation: Fix documentation build.
From: |
guix-commits |
Subject: |
259/377: gnu: glib-with-documentation: Fix documentation build. |
Date: |
Thu, 2 Sep 2021 17:55:50 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 77a5085f892baa78a72111472273c58c0c025020
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"))
- 230/377: build-system: chicken: Add 'egg-uri' procedure., (continued)
- 230/377: build-system: chicken: Add 'egg-uri' procedure., guix-commits, 2021/09/02
- 218/377: gnu: Add emacs-hideshowvis., guix-commits, 2021/09/02
- 231/377: gnu: Add ocaml-odoc-parser., guix-commits, 2021/09/02
- 216/377: isc-dhcp: Fix dhclient-script wrapper when cross-compiling., guix-commits, 2021/09/02
- 215/377: services: Remove i486 qemu target., guix-commits, 2021/09/02
- 248/377: build/jami-service: Fix range ends in account-fingerprint-rx., guix-commits, 2021/09/02
- 242/377: gnu: Add python-jupyter-server., guix-commits, 2021/09/02
- 246/377: gnu: Add python-voila., guix-commits, 2021/09/02
- 240/377: gnu: Add python-pytest-mock-3., guix-commits, 2021/09/02
- 241/377: gnu: Add python-anyio., guix-commits, 2021/09/02
- 259/377: gnu: glib-with-documentation: Fix documentation build.,
guix-commits <=
- 255/377: gnu: glib: Update to 2.68.0., guix-commits, 2021/09/02
- 251/377: gnu: Add go-github-com-anaseto-gruid., guix-commits, 2021/09/02
- 266/377: gnu: glibmm-2.64: Update to 2.64.5., guix-commits, 2021/09/02
- 257/377: gnu: glib: Update synopsis, description and home-page., guix-commits, 2021/09/02
- 250/377: gnu: Add go-github-com-gdamore-tcell-v2., guix-commits, 2021/09/02
- 256/377: gnu: glib: Enable man pages., guix-commits, 2021/09/02
- 271/377: gnu: gtk-doc: Update synopsis, description, home-page and license., guix-commits, 2021/09/02
- 274/377: gnu: cairo: Change build-system., guix-commits, 2021/09/02
- 265/377: gnu: Add libsigc++-2., guix-commits, 2021/09/02
- 281/377: gnu: pango: Add missing arguments., guix-commits, 2021/09/02