gnu: Add rust-crossfont-0.5.

* gnu/packages/crates-io.scm (rust-crossfont-0.5): New variable.
(rust-crossfont-0.3): Inherit from rust-crossfont-0.5.
This commit is contained in:
Efraim Flashner 2023-04-24 12:24:06 +03:00
parent e1910983dd
commit 7a83510841
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -15073,8 +15073,50 @@ (define-public rust-crossbeam-utils-0.6
#:cargo-development-inputs #:cargo-development-inputs
(("rust-rand" ,rust-rand-0.6)))))) (("rust-rand" ,rust-rand-0.6))))))
(define-public rust-crossfont-0.5
(package
(name "rust-crossfont")
(version "0.5.1")
(source (origin
(method url-fetch)
(uri (crate-uri "crossfont" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"0icwpj9plf7bs0k34x86c58bwqyx2j3ji98aaahsncga6vfkmz91"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-build-flags '("--features" "force_system_fontconfig")
#:cargo-inputs
(("rust-cocoa" ,rust-cocoa-0.24)
("rust-core-foundation" ,rust-core-foundation-0.9)
("rust-core-foundation-sys" ,rust-core-foundation-sys-0.8)
("rust-core-graphics" ,rust-core-graphics-0.22)
("rust-core-text" ,rust-core-text-19)
("rust-dwrote" ,rust-dwrote-0.11)
("rust-foreign-types" ,rust-foreign-types-0.5)
("rust-freetype-rs" ,rust-freetype-rs-0.26)
("rust-libc" ,rust-libc-0.2)
("rust-log" ,rust-log-0.4)
("rust-objc" ,rust-objc-0.2)
("rust-once-cell" ,rust-once-cell-1)
("rust-pkg-config" ,rust-pkg-config-0.3)
("rust-servo-fontconfig" ,rust-servo-fontconfig-0.5)
("rust-winapi" ,rust-winapi-0.3))))
(inputs
(list expat fontconfig freetype))
(native-inputs
(list pkg-config))
(home-page "https://github.com/alacritty/crossfont")
(synopsis "Native font loading and rasterization")
(description
"Crossfont is a cross-platform Rust library for loading fonts and
rasterizing glyphs, using native font engines whenever possible.")
(license license:asl2.0)))
(define-public rust-crossfont-0.3 (define-public rust-crossfont-0.3
(package (package
(inherit rust-crossfont-0.5)
(name "rust-crossfont") (name "rust-crossfont")
(version "0.3.1") (version "0.3.1")
(source (source
@ -15084,7 +15126,6 @@ (define-public rust-crossfont-0.3
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "079431wkjc18zj3038djai83z6fna0x7r1hxpxjhhi50jdz9dh5n")))) (base32 "079431wkjc18zj3038djai83z6fna0x7r1hxpxjhhi50jdz9dh5n"))))
(build-system cargo-build-system)
(arguments (arguments
`(#:skip-build? #t `(#:skip-build? #t
#:cargo-inputs #:cargo-inputs
@ -15100,13 +15141,7 @@ (define-public rust-crossfont-0.3
("rust-log" ,rust-log-0.4) ("rust-log" ,rust-log-0.4)
("rust-pkg-config" ,rust-pkg-config-0.3) ("rust-pkg-config" ,rust-pkg-config-0.3)
("rust-servo-fontconfig" ,rust-servo-fontconfig-0.5) ("rust-servo-fontconfig" ,rust-servo-fontconfig-0.5)
("rust-winapi" ,rust-winapi-0.3)))) ("rust-winapi" ,rust-winapi-0.3))))))
(home-page "https://github.com/alacritty/crossfont")
(synopsis "Native font loading and rasterization")
(description
"Crossfont is a cross-platform Rust library for loading fonts and
rasterizing glyphs, using native font engines whenever possible.")
(license license:asl2.0)))
(define-public rust-crossterm-0.25 (define-public rust-crossterm-0.25
(package (package