summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-20 14:56:18 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-21 00:44:02 -0400
commit911aa1a5adcb04b46597154902eea23bd8bde62a (patch)
tree644454589a2fc35dc17a8b8bcbd420ea2308e97c
parent579e8fd00302f72350b7f7d43cce63012a315f39 (diff)
downloadguix-911aa1a5adcb04b46597154902eea23bd8bde62a.tar.gz
gnu: glib-with-documentation: Remove patch-docbook-xml phase.
* gnu/packages/glib.scm (glib-with-documentation) [arguments]: Remove
patch-docbook-xml phase.
[native-inputs]: Use modify-inputs.  Remove labels.
-rw-r--r--gnu/packages/glib.scm26
1 files changed, 8 insertions, 18 deletions
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index 3d8a25be9e..716820768d 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -9,7 +9,7 @@
 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
-;;; Copyright © 2019, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2019, 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2019, 2020, 2021 Marius Bakke <marius@gnu.org>
 ;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz>
@@ -443,13 +443,13 @@ 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-4.2" ,docbook-xml-4.2)
-       ("docbook-xml-4.5" ,docbook-xml)
-       ("docbook-xsl" ,docbook-xsl)
-       ("gtk-doc" ,gtk-doc)
-       ("libxml2" ,libxml2)
-       ("xsltproc" ,libxslt)
-       ,@(package-native-inputs glib)))
+     (modify-inputs (package-native-inputs glib)
+       (prepend docbook-xml-4.2
+                docbook-xml
+                docbook-xsl
+                gtk-doc
+                libxml2
+                libxslt)))
     (arguments
      (substitute-keyword-arguments (package-arguments glib)
        ((#:configure-flags flags ''())
@@ -457,16 +457,6 @@ functions for strings and common data structures.")
                 (delete "-Dman=false" #$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/"))))))
             (add-after 'install 'move-doc
               (lambda _
                 (let ((html "/share/gtk-doc"))