summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-05-28 08:06:45 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-05-28 09:48:15 -0400
commit4ec964ec38d511ca203cd3c29b194d0cfb99667a (patch)
treed15108628ebf8cb8f6a75b949a44432684127bac
parent45b98751ffec9c74b1bc466a09dceada14ebf2a1 (diff)
downloadguix-4ec964ec38d511ca203cd3c29b194d0cfb99667a.tar.gz
gnu: jami-gnome: Include phases from the glib-or-gtk-build-system.
This makes Jami less dependent on the environment it is run within; for
example when using Jami on a foreign distributions.

* gnu/packages/jami.scm (jami-gnome)[imported-modules]: New argument.
[modules]: New argument.
[phases]{glib-or-gtk-compile-schemas, glib-or-gtk-wrap}: New phases.

Reported-by: Simon Tournier <zimon.toutoune@gmail.com>
-rw-r--r--gnu/packages/jami.scm13
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/packages/jami.scm b/gnu/packages/jami.scm
index 0adc3ed81e..ff14373bf3 100644
--- a/gnu/packages/jami.scm
+++ b/gnu/packages/jami.scm
@@ -546,12 +546,21 @@ decentralized calling using P2P-DHT.")
                             ; automatically started by DBus.
        ("adwaita-icon-theme" ,adwaita-icon-theme)))
     (arguments
-     `(#:tests? #f                      ; There is no testsuite.
+     `(#:tests? #f                      ;no test suite
+       #:imported-modules (,@%cmake-build-system-modules
+                           (guix build glib-or-gtk-build-system))
+       #:modules ((guix build cmake-build-system)
+                  ((guix build glib-or-gtk-build-system) #:prefix gtk:)
+                  (guix build utils))
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'change-directory
            (lambda _
-             (chdir "client-gnome"))))))
+             (chdir "client-gnome")))
+         (add-after 'install 'glib-or-gtk-compile-schemas
+           (assoc-ref gtk:%standard-phases 'glib-or-gtk-compile-schemas))
+         (add-after 'glib-or-gtk-compile-schemas 'glib-or-gtk-wrap
+           (assoc-ref gtk:%standard-phases 'glib-or-gtk-wrap)))))
     (synopsis "Jami client for GNOME")
     (description "This package provides a Jami client for the GNOME desktop.
 Jami is a secure and distributed voice, video and chat communication platform