guix-commits
[Top][All Lists]
Advanced

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

37/46: gnu: rust-ravif: Use rav1e instead of rust-rav1e.


From: guix-commits
Subject: 37/46: gnu: rust-ravif: Use rav1e instead of rust-rav1e.
Date: Sun, 6 Jun 2021 02:40:17 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit 1c5781bc0d5b3132d90ed57ca198a9b9fa401ca5
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jun 4 22:33:27 2021 -0400

    gnu: rust-ravif: Use rav1e instead of rust-rav1e.
    
    With the rav1e package having been brought up to par with rust-rav1e,
    rust-ravif can use rav1e directly.
    
    * gnu/packages/crates-graphics.scm (rust-ravif)
    [cargo-inputs]{rust-rav1e}: Replace with...
    {rav1e}: ... this.
    [cargo-development-inputs]: New argument.
    [native-inputs]: New field.
---
 gnu/packages/crates-graphics.scm | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 5ea5473..ac54dd4 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -33,6 +33,7 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (gnu packages)
+  #:use-module (gnu packages assembly)
   #:use-module (gnu packages crates-io)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages llvm)
@@ -2030,20 +2031,22 @@ where libaom (the reference encoder) is too slow.")
         (base32 "1gyc7w1fz3qdk95cdpkj185dm6lskxfp329xm69waxc565fcz9rx"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs
+     `(#:cargo-inputs
        (("rust-avif-serialize" ,rust-avif-serialize-0.6)
         ("rust-imgref" ,rust-imgref-1)
         ("rust-loop9" ,rust-loop9-0.1)
         ("rust-num-cpus" ,rust-num-cpus-1)
-        ("rust-rav1e" ,rust-rav1e-0.4)
+        ("rav1e" ,rav1e)
         ("rust-rayon" ,rust-rayon-1)
-        ("rust-rgb" ,rust-rgb-0.8))))
+        ("rust-rgb" ,rust-rgb-0.8))
+       #:cargo-development-inputs
+       (("rust-avif-parse" ,rust-avif-parse-0.13))))
+    (native-inputs
+     `(("nasm" ,nasm)))                 ;for building rav1e
     (home-page "https://lib.rs/ravif";)
     (synopsis "Library for encoding images in AVIF format")
-    (description
-     "This package is a rav1e-based pure Rust library for encoding images in
-AVIF format.")
+    (description "This package is a rav1e-based pure Rust library for encoding
+images in AVIF format.")
     (license license:bsd-3)))
 
 (define-public rust-raw-window-handle-0.3



reply via email to

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