Subject: [PATCH gnome-team 31/44] gnu: fontmanager: Update to 0.9.0.

From: Maxim Cournoyer <[email-masked]>
Date: Mon, 11 Nov 2024 15:17:14 +0900

* gnu/packages/fontutils.scm (fontmanager): Update to 0.9.0.
[arguments] <#:phases>: New argument.
[native-inputs]: Replace vala-0.52 with vala.
[inputs]: Replace gtk+ with gtk.  Replace libsoup-minimal-2 with libsoup.
Replace webkitgtk-with-libsoup2 with webkitgtk.

Change-Id: Ieedd48147f3c5c9936f922b812932020258fccae
---
 gnu/packages/fontutils.scm | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 614d62f439..e9fd295531 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -12,7 +12,7 @@
 ;;; Copyright © 2019, 2020, 2022 Marius Bakke <[email-masked]>
 ;;; Copyright © 2020 Roel Janssen <[email-masked]>
 ;;; Copyright © 2020, 2021, 2024 Nicolas Goaziou <[email-masked]>
-;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <[email-masked]>
+;;; Copyright © 2021-2024 Maxim Cournoyer <[email-masked]>
 ;;; Copyright © 2021 Sarah Morgensen <[email-masked]>
 ;;; Copyright © 2022 Felipe Balbi <[email-masked]>
 ;;; Copyright © 2023 gemmaro <[email-masked]>
@@ -1920,7 +1920,7 @@ (define-public fcft
 (define-public fontmanager
   (package
    (name "fontmanager")
-   (version "0.8.7")
+   (version "0.9.0")
    (source
     (origin
       (method git-fetch)
@@ -1929,7 +1929,7 @@ (define-public fontmanager
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
-       (base32 "0nyda2a6vbzyz4sn9mmrr8bkifzxmmjp7x9a3c4s6n925ccy79cn"))))
+       (base32 "0pxdwpjzsmld4j2m4q423vdrkx23bb6jqszjgk5wqbr2ln772hcx"))))
    (build-system meson-build-system)
    (arguments
     `(#:glib-or-gtk? #t
@@ -1937,7 +1937,16 @@ (define-public fontmanager
       #:configure-flags
       (list (string-append "-Dc_link_args=-Wl,-rpath="
                            (assoc-ref %outputs "out")
-                           "/lib/font-manager"))))
+                           "/lib/font-manager"))
+      #:phases
+      (modify-phases %standard-phases
+        (add-after 'unpack 'skip-gtk-update-icon-cache
+          (lambda _ ; Remove dependency on needless desktop cache stuff.
+            (substitute* "meson.build"
+              (("gtk_update_icon_cache: true")
+               "gtk_update_icon_cache: false")
+              (("update_desktop_database: true")
+               "update_desktop_database: false")))))))
    (native-inputs
     `(("desktop-file-utils" ,desktop-file-utils)
       ("gettext" ,gettext-minimal)
@@ -1945,24 +1954,24 @@ (define-public fontmanager
       ("gobject-introspection" ,gobject-introspection)
       ("pkg-config" ,pkg-config)
       ("python-wrapper" ,python-wrapper)
-      ("vala" ,vala-0.52)
+      ("vala" ,vala)
       ("yelp-tools" ,yelp-tools)))
    (inputs
     `(("fonconfig" ,fontconfig)
       ("freetype" ,freetype)
       ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
-      ("gtk+" ,gtk+)
+      ("gtk" ,gtk)
       ("json-glib" ,json-glib)
-      ("libsoup" ,libsoup-minimal-2)
+      ("libsoup" ,libsoup)
       ("sqlite" ,sqlite)
-      ("webkitgtk" ,webkitgtk-with-libsoup2)))
+      ("webkitgtk" ,webkitgtk)))
    (home-page "https://fontmanager.github.io/")
-   (synopsis "Simple font management for GTK+ desktop environments")
+   (synopsis "Simple font management for GTK desktop environments")
    (description "Font Manager is intended to provide a way for users to
 easily manage desktop fonts, without having to resort to command-line
 tools or editing configuration files by hand.
 While designed primarily with the GNOME Desktop Environment in mind, it should
-work well with other GTK+ desktop environments.")
+work well with other GTK desktop environments.")
    (license license:gpl3+)))
 
 (define-public fntsample
-- 
2.46.0