Subject: [PATCH rust-team 18/27] gnu: Add rust-pango-0.20.

From: Giacomo Leidi <[email-masked]>
Date: Wed, 23 Oct 2024 01:31:03 +0200

* gnu/packages/crates-gtk.scm (rust-pango-0.20): New variable;
(rust-pango-0.19): inherit from rust-pango-0.20.

Change-Id: I9d06bcc3ddc380215212d807bfe7e8b6ffd3f090
---
 gnu/packages/crates-gtk.scm | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index a90570ca3e..dca6426abd 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -3292,23 +3292,23 @@ (define-public rust-libadwaita-sys-0.5
        #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
                                    ("rust-tempfile" ,rust-tempfile-3))))))
 
-(define-public rust-pango-0.19
+(define-public rust-pango-0.20
   (package
     (name "rust-pango")
-    (version "0.19.8")
+    (version "0.20.4")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pango" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1kffxkk7730csly86fkgja50k1184zj9lz49sv7qb0059233439z"))))
+        (base32 "0mpkjnxcgng8mjf7y55q5d1md4qxswf90m5784hxg50hn5aal9ma"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-gio" ,rust-gio-0.19)
-                       ("rust-glib" ,rust-glib-0.19)
+     `(#:cargo-inputs (("rust-gio" ,rust-gio-0.20)
+                       ("rust-glib" ,rust-glib-0.20)
                        ("rust-libc" ,rust-libc-0.2)
-                       ("rust-pango-sys" ,rust-pango-sys-0.19))
+                       ("rust-pango-sys" ,rust-pango-sys-0.20))
        #:cargo-development-inputs
        (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
     (native-inputs (list pkg-config))
@@ -3318,6 +3318,26 @@ (define-public rust-pango-0.19
     (description "This package provides Rust bindings for the Pango library.")
     (license license:expat)))
 
+(define-public rust-pango-0.19
+  (package
+    (inherit rust-pango-0.20)
+    (name "rust-pango")
+    (version "0.19.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pango" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1kffxkk7730csly86fkgja50k1184zj9lz49sv7qb0059233439z"))))
+    (arguments
+     `(#:cargo-inputs (("rust-gio" ,rust-gio-0.19)
+                       ("rust-glib" ,rust-glib-0.19)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pango-sys" ,rust-pango-sys-0.19))
+       #:cargo-development-inputs
+       (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
+
 (define-public rust-pango-0.18
   (package
     (inherit rust-pango-0.19)
-- 
2.46.0