guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

31/38: gnu: json-glib: Unconditionally lookup docbook in native-inputs.


From: guix-commits
Subject: 31/38: gnu: json-glib: Unconditionally lookup docbook in native-inputs.
Date: Sat, 2 Oct 2021 12:52:45 -0400 (EDT)

mothacehe pushed a commit to branch core-updates
in repository guix.

commit 97cd9b73a612bb6401202187f647caafc4b593c6
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Fri Oct 1 16:21:33 2021 +0200

    gnu: json-glib: Unconditionally lookup docbook in native-inputs.
    
    * gnu/packages/gnome.scm
      (json-glib)[arguments]<#:phases>{patch-docbook}:
      Unconditionally look in (or native-inputs inputs) for docbook-xml and
      docbook-xsl.
    
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 gnu/packages/gnome.scm | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 497713c..57d9a9b 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4607,24 +4607,17 @@ configuration storage systems.")
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'patch-docbook
-           ;; TODO(core-updates): Use (or native-inputs inputs)
-           ;; unconditionally.
-           (lambda* (#:key ,@(if (%current-target-system)
-                                 '(native-inputs)
-                                 '()) inputs #:allow-other-keys)
+           (lambda* (#:key native-inputs inputs #:allow-other-keys)
              (with-directory-excursion "doc"
                (substitute* (find-files "." "\\.xml$")
                  (("http://www.oasis-open.org/docbook/xml/4\\.3/";)
-                  (string-append (assoc-ref ,(if (%current-target-system)
-                                                 '(or native-inputs inputs)
-                                                 'inputs)
+                  (string-append (assoc-ref (or native-inputs inputs)
                                             "docbook-xml")
                                  "/xml/dtd/docbook/")))
                (substitute* "meson.build"
                  (("http://docbook.sourceforge.net/release/xsl/current/";)
-                  (string-append (assoc-ref ,(if (%current-target-system)
-                                                 '(or native-inputs inputs)
-                                                 'inputs) "docbook-xsl")
+                  (string-append (assoc-ref (or native-inputs inputs)
+                                            "docbook-xsl")
                                  "/xml/xsl/docbook-xsl-1.79.2/"))))
              #t))
          ;; When cross-compiling, there are no docs to move.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]