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

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

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

Change-Id: I32aa452b27484541884e4eaaea2cb7d5995768f1
---
 gnu/packages/crates-gtk.scm | 33 +++++++++++++++++++++++++++------
 1 file changed, 27 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 2b5fd25cdd..0fef956a7c 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2022 Aleksandr Vityazev <[email-masked]>
 ;;; Copyright © 2023 Steve George <[email-masked]>
 ;;; Copyright © 2023 Sergio Pastor Pérez <[email-masked]>
+;;; Copyright © 2024 Giacomo Leidi <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3366,23 +3367,23 @@ (define-public rust-pango-0.8
        #:cargo-development-inputs
        (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
 
-(define-public rust-pango-sys-0.19
+(define-public rust-pango-sys-0.20
   (package
     (name "rust-pango-sys")
-    (version "0.19.8")
+    (version "0.20.4")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pango-sys" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "182bcd6255v5yvnskbhxnb6kwak240z7sn54si2b5h46l17xl0zz"))))
+        (base32 "0f5qyap96f01h7xa122s798hmz7rmc0c5fz299a0cbzigf8nbzc4"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.19)
-                       ("rust-gobject-sys" ,rust-gobject-sys-0.19)
+     `(#:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.20)
+                       ("rust-gobject-sys" ,rust-gobject-sys-0.20)
                        ("rust-libc" ,rust-libc-0.2)
-                       ("rust-system-deps" ,rust-system-deps-6))
+                       ("rust-system-deps" ,rust-system-deps-7))
        #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
                                    ("rust-tempfile" ,rust-tempfile-3))))
     (native-inputs (list pkg-config))
@@ -3392,6 +3393,26 @@ (define-public rust-pango-sys-0.19
     (description "This package provides FFI bindings to @code{libpango-1.0}.")
     (license license:expat)))
 
+(define-public rust-pango-sys-0.19
+  (package
+    (inherit rust-pango-sys-0.20)
+    (name "rust-pango-sys")
+    (version "0.19.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pango-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "182bcd6255v5yvnskbhxnb6kwak240z7sn54si2b5h46l17xl0zz"))))
+    (arguments
+     `(#:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.19)
+                       ("rust-gobject-sys" ,rust-gobject-sys-0.19)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-system-deps" ,rust-system-deps-6))
+       #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
+                                   ("rust-tempfile" ,rust-tempfile-3))))))
+
 (define-public rust-pango-sys-0.18
   (package
     (inherit rust-pango-sys-0.19)
-- 
2.46.0