efraim pushed a commit to branch master
in repository guix.

commit 02427ea997e7218bccabb204d78b3469a63f32a7
Author: Efraim Flashner <efr...@flashner.co.il>
AuthorDate: Thu May 23 12:48:54 2024 +0300

    gnu: gssdp: Enable building on more architectures.
    
    * gnu/packages/gnome.scm (gssdp)[arguments]: Adjust configure-flags to
    only build the manpages when pandoc is an input.
    [native-inputs]: Only add pandoc when on architectures where it is
    supported.
    
    Change-Id: I6e69833295fc19b311cdaf977b3b5cc7abc01589
---
 gnu/packages/gnome.scm | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 74f33c4d22..4b7d53b089 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -1362,15 +1362,23 @@ It has miners for Facebook, Flickr, Google, ownCloud 
and SkyDrive.")
                 "0iil7wgix0nzhf3i2w6g1wjqly49r9rsffca97ai9kr2vfpvbv9g"))))
     (build-system meson-build-system)
     (arguments
-     (list #:configure-flags #~'("-Dgtk_doc=true")))
+     (list #:configure-flags
+           #~(list "-Dgtk_doc=true"
+                   ;; Manpages are built using pandoc.
+                   #$@(if (this-package-native-input "pandoc")
+                          #~("-Dmanpages=true")
+                          #~("-Dmanpages=false")))))
     (native-inputs
-     (list gettext-minimal
-           `(,glib "bin")
-           gi-docgen
-           gobject-introspection
-           pandoc
-           pkg-config
-           vala))
+     (append
+       (if (supported-package? pandoc)
+           (list pandoc)
+           '())
+       (list gettext-minimal
+             `(,glib "bin")
+             gi-docgen
+             gobject-introspection
+             pkg-config
+             vala)))
     (inputs
      (list gtk))
     (propagated-inputs

Reply via email to