guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

29/194: gnu: Add rust-freetype-rs-0.32.


From: guix-commits
Subject: 29/194: gnu: Add rust-freetype-rs-0.32.
Date: Tue, 3 Oct 2023 14:57:15 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit bf5d0a6cc5434d8b437820e47de0789938c8554f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Oct 1 16:24:17 2023 +0300

    gnu: Add rust-freetype-rs-0.32.
    
    * gnu/packages/crates-io.scm (rust-freetype-rs-0.32): New variable.
    (rust-freetype-rs-0.26): Inherit from rust-freetype-rs-0.32.
---
 gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++++------
 1 file changed, 28 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a5d648ea9f..641ca92f4e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -25439,8 +25439,35 @@ values to other threads.")
     (description "This package provides bindings for Freetype used by Servo.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-freetype-rs-0.32
+  (package
+    (name "rust-freetype-rs")
+    (version "0.32.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "freetype-rs" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1q54jimjgzwdb3xsp7rsvdmp6w54cak7bvc379mdabc2ciz3776m"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-bitflags" ,rust-bitflags-1)
+        ("rust-freetype-sys" ,rust-freetype-sys-0.17)
+        ("rust-libc" ,rust-libc-0.2))
+       #:cargo-development-inputs
+       (("rust-unicode-normalization" ,rust-unicode-normalization-0.1))))
+    (inputs
+     (list freetype))
+    (home-page "https://github.com/PistonDevelopers/freetype-rs";)
+    (synopsis "Bindings for FreeType font library")
+    (description "This package provides bindings for FreeType font library.")
+    (license license:expat)))
+
 (define-public rust-freetype-rs-0.26
   (package
+    (inherit rust-freetype-rs-0.32)
     (name "rust-freetype-rs")
     (version "0.26.0")
     (source
@@ -25450,17 +25477,12 @@ values to other threads.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1yzmbd73hlblbns0dqkcwfj54l97hx3yb0lqpda8rhm5s34xxskl"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-bitflags" ,rust-bitflags-1)
         ("rust-freetype-sys" ,rust-freetype-sys-0.13)
-        ("rust-libc" ,rust-libc-0.2))))
-    (home-page "https://github.com/PistonDevelopers/freetype-rs";)
-    (synopsis "Bindings for FreeType font library")
-    (description "This package provides bindings for FreeType font library.")
-    (license license:expat)))
+        ("rust-libc" ,rust-libc-0.2))))))
 
 (define-public rust-freetype-sys-0.17
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]