gnu: network-manager-applet: Use meson build system.

* gnu/packages/gnome.scm (network-manager-applet)[build-system]: Use
meson-build-system.
[arguments]: Set glib-or-gtk? flag.
[native-inputs]: Add glib:bin and gtk-doc.
[inputs]: Add gcr.
This commit is contained in:
Ricardo Wurmus 2018-12-05 21:17:59 +01:00 committed by Kei Kebreau
parent 02710a9b55
commit cd7f718ee0
No known key found for this signature in database
GPG Key ID: E6A5EE3C19467A0D
1 changed files with 7 additions and 20 deletions

View File

@ -5498,28 +5498,14 @@ to virtual private networks (VPNs) via OpenVPN.")
(sha256 (sha256
(base32 (base32
"0y31g0lxr93370xi74hbpvcy9m81n5wdkdhq8xy2nqp0y4219p13")))) "0y31g0lxr93370xi74hbpvcy9m81n5wdkdhq8xy2nqp0y4219p13"))))
(build-system glib-or-gtk-build-system) (build-system meson-build-system)
(arguments '(#:configure-flags '("--disable-migration") (arguments
#:phases '(#:glib-or-gtk? #t))
(modify-phases %standard-phases
(add-after 'unpack 'patch-source
(lambda* (#:key inputs #:allow-other-keys)
(let ((mbpi (assoc-ref inputs
"mobile-broadband-provider-info"))
(iso-codes (assoc-ref inputs "iso-codes")))
(substitute* "src/libnma/nma-mobile-providers.c"
(("(g_build_filename \\()dirs\\[i\\].*,\
(MOBILE_BROADBAND_PROVIDER_INFO.*)" all start end)
(string-append start "\"" mbpi "/share\", " end)))
(substitute* "src/libnma/nma-mobile-providers.c"
(("(g_build_filename \\()dirs\\[i\\].*,\
(ISO_3166_COUNTRY_CODES.*)" all start end)
(string-append start "\"" iso-codes
"/share\", " end)))
#t))))))
(native-inputs (native-inputs
`(("intltool" ,intltool) `(("intltool" ,intltool)
("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
("gobject-introspection" ,gobject-introspection) ("gobject-introspection" ,gobject-introspection)
("gtk-doc" ,gtk-doc)
("pkg-config" ,pkg-config))) ("pkg-config" ,pkg-config)))
(propagated-inputs (propagated-inputs
;; libnm-gtk.pc refers to all these. ;; libnm-gtk.pc refers to all these.
@ -5527,7 +5513,8 @@ to virtual private networks (VPNs) via OpenVPN.")
("gtk+" ,gtk+) ("gtk+" ,gtk+)
("network-manager" ,network-manager))) ("network-manager" ,network-manager)))
(inputs (inputs
`(("iso-codes" ,iso-codes) `(("gcr" ,gcr)
("iso-codes" ,iso-codes)
("libgudev" ,libgudev) ("libgudev" ,libgudev)
("libnotify" ,libnotify) ("libnotify" ,libnotify)
("libsecret" ,libsecret) ("libsecret" ,libsecret)