Subject: [bug#71278] [PATCH v2 34/44] gnu: Add rust-atk-0.17.

From: Murilo <[email-masked]>
Date: Fri, 31 May 2024 09:38:24 -0300

* gnu/packages/crates-gtk.scm (rust-atk-0.17): New variable.
* gnu/packages/crates-gtk.scm (rust-atk-0.14): Update package definition to
inherit from newer version.

Change-Id: Iab814004a65f0660ffdaa1457432a1199822ef99
---
 gnu/packages/crates-gtk.scm | 37 +++++++++++++++++++++++++++++--------
 1 file changed, 29 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 97405506d4..a5976dede0 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -120,8 +120,36 @@ (define-public rust-atk-sys-0.9
        (("rust-shell-words" ,rust-shell-words-0.1)
         ("rust-tempfile" ,rust-tempfile-3))))))
 
+(define-public rust-atk-0.17
+  (package
+    (name "rust-atk")
+    (version "0.17.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "atk" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "08nc4187fx4cnkz8va3bnn9fpavm1x8zc18s0s224w8cs59n98bb"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-glib" ,rust-glib-0.17)
+                       ("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-atk-sys" ,rust-atk-sys-0.17))
+       #:cargo-development-inputs
+       (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
+    (inputs
+     (list at-spi2-core glib))
+    (home-page "https://gtk-rs.org/")
+    (synopsis "Rust bindings for the ATK library")
+    (description "Rust bindings for the ATK library")
+    (license license:expat)))
+
 (define-public rust-atk-0.14
   (package
+    (inherit rust-atk-0.17)
     (name "rust-atk")
     (version "0.14.0")
     (source
@@ -131,7 +159,6 @@ (define-public rust-atk-0.14
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1fi6f3k1lgd0iymar58hp88k76fm5pd1npi2avdn9r3mmb922fx8"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build?
        #t
@@ -141,13 +168,7 @@ (define-public rust-atk-0.14
         ("rust-glib" ,rust-glib-0.14)
         ("rust-libc" ,rust-libc-0.2))
        #:cargo-development-inputs
-       (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
-    (inputs
-     (list at-spi2-core glib))
-    (home-page "https://gtk-rs.org/")
-    (synopsis "Rust bindings for the ATK library")
-    (description "Rust bindings for the ATK library")
-    (license license:expat)))
+       (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
 
 (define-public rust-atk-0.8
   (package
-- 
2.41.0