diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-02-23 17:09:24 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-05-07 19:29:18 +0300 |
commit | 4cf9e2b0a843549fe851038803e73b8f7c4ed822 (patch) | |
tree | 4b60561105d03c255bd294d7dfcfa10bf2fce05f /gnu/packages/video.scm | |
parent | f9bde78cfd4ccfdfe52e934534148ccbc323e359 (diff) |
gnu: rav1e: Update to 0.6.3.
* gnu/packages/video.scm (rav1e): Update to 0.6.3.
[arguments]: Remove cargo-test-flags. Remove 'relax-versions phase.
[cargo-inputs]: Add rust-av-grain-0.2, rust-built-0.5, rust-cc-1,
rust-clap-complete-4, rust-const-fn-assert-0.1, rust-maybe-rayon-1,
rust-new-debug-unreachable-1, rust-nom-7, rust-once-cell-1,
rust-serde-big-array-0.4, rust-system-deps-6. Remove rust-rayon-1,
rust-regex-1, rust-vergen-3. Replace rust-av-metrics-0.7 with 0.9,
rust-clap-2 with 4, rust-console-0.14 with 0.15, rust-dav1d-sys-0.3 with
0.7, rust-image-0.23 with 0.24, rust-v-frame-0.2 with 0.3.
[cargo-development-inputs]: Add rust-nom-7, rust-quickcheck-1,
rust-quickcheck-macros-1. Remove rust-cc-1. Replace rust-criterion-0.3
with 0.4, rust-pretty-assertions-0.7 with 1.
[native-inputs]: Add pkg-config.
[inputs]: Add libgit2, zlib.
Diffstat (limited to 'gnu/packages/video.scm')
-rw-r--r-- | gnu/packages/video.scm | 81 |
1 files changed, 29 insertions, 52 deletions
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 65fd92ea48..31fa687e87 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -197,6 +197,7 @@ #:use-module (gnu packages tls) #:use-module (gnu packages time) #:use-module (gnu packages upnp) + #:use-module (gnu packages version-control) #:use-module (gnu packages vulkan) #:use-module (gnu packages web) #:use-module (gnu packages webkit) @@ -5281,38 +5282,10 @@ result in several formats: (home-page "https://www.gen2vdr.de/wirbel/w_scan/index2.html") (license license:gpl2+))) -;;; XXX: This crate is used only for rav1e and can be removed once the latter -;;; is updated. See <https://issues.guix.gnu.org/52837>. -(define rust-dav1d-sys-0.3.2 - (package - (name "rust-dav1d-sys") - (version "0.3.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "dav1d-sys" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1jdxhnlxcml6jd67lx78ifzkn1xm18zfk4li7vjdh3fa61i073kx")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-bindgen" ,rust-bindgen-0.54) - ("rust-metadeps" ,rust-metadeps-1)))) - (native-inputs - (list pkg-config)) - (inputs - (list dav1d clang llvm)) - (home-page "https://github.com/rust-av/dav1d-rs") - (synopsis "FFI bindings to dav1d") - (description "This package provides FFI bindings to dav1d.") - (license license:expat))) - (define-public rav1e (package (name "rav1e") - (version "0.5.1") + (version "0.6.3") (source (origin (method url-fetch) @@ -5321,71 +5294,73 @@ result in several formats: (string-append name "-" version ".tar.gz")) (sha256 (base32 - "006bfcmjwg0phg8gc25b1sl2ngjrb2bh1b3fd0s5gbf9nlkr8qsn")))) + "0if94sfviy5cwljlnsy0f470ixfs090k54g416kcc0qd9w4rhy17")))) (build-system cargo-build-system) (arguments - `(;; Strip the '--release' flag to work around the doctest failures with - ;; Rust 1.57 (see: https://github.com/xiph/rav1e/issues/2851). - #:cargo-test-flags '() - #:cargo-inputs + `(#:cargo-inputs (("rust-aom-sys" ,rust-aom-sys-0.3) ("rust-arbitrary" ,rust-arbitrary-0.4) ("rust-arg-enum-proc-macro" ,rust-arg-enum-proc-macro-0.3) ("rust-arrayvec" ,rust-arrayvec-0.7) - ("rust-av-metrics" ,rust-av-metrics-0.7) + ("rust-av-metrics" ,rust-av-metrics-0.9) + ("rust-av1-grain" ,rust-av1-grain-0.2) ("rust-backtrace" ,rust-backtrace-0.3) ("rust-bitstream-io" ,rust-bitstream-io-1) + ("rust-built" ,rust-built-0.5) ("rust-byteorder" ,rust-byteorder-1) + ("rust-cc" ,rust-cc-1) ("rust-cfg-if" ,rust-cfg-if-1) - ("rust-clap" ,rust-clap-2) - ("rust-console" ,rust-console-0.14) + ("rust-clap" ,rust-clap-4) + ("rust-clap-complete" ,rust-clap-complete-4) + ("rust-console" ,rust-console-0.15) + ("rust-const-fn-assert" ,rust-const-fn-assert-0.1) ("rust-crossbeam" ,rust-crossbeam-0.8) - ("rust-dav1d-sys" ,rust-dav1d-sys-0.3) + ("rust-dav1d-sys" ,rust-dav1d-sys-0.7) ("rust-fern" ,rust-fern-0.6) - ("rust-image" ,rust-image-0.23) + ("rust-image" ,rust-image-0.24) ("rust-interpolate-name" ,rust-interpolate-name-0.2) ("rust-itertools" ,rust-itertools-0.10) ("rust-ivf" ,rust-ivf-0.1) ("rust-libc" ,rust-libc-0.2) ("rust-libfuzzer-sys" ,rust-libfuzzer-sys-0.3) ("rust-log" ,rust-log-0.4) + ("rust-maybe-rayon" ,rust-maybe-rayon-0.1) ("rust-nasm-rs" ,rust-nasm-rs-0.2) + ("rust-new-debug-unreachable" ,rust-new-debug-unreachable-1) + ("rust-nom" ,rust-nom-7) ("rust-noop-proc-macro" ,rust-noop-proc-macro-0.3) ("rust-num-derive" ,rust-num-derive-0.3) ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-once-cell" ,rust-once-cell-1) ("rust-paste" ,rust-paste-1) ("rust-rand" ,rust-rand-0.8) ("rust-rand-chacha" ,rust-rand-chacha-0.3) - ("rust-rayon" ,rust-rayon-1) - ("rust-regex" ,rust-regex-1) ("rust-rust-hawktracer" ,rust-rust-hawktracer-0.7) ("rust-rustc-version" ,rust-rustc-version-0.4) ("rust-scan-fmt" ,rust-scan-fmt-0.2) ("rust-serde" ,rust-serde-1) + ("rust-serde-big-array" ,rust-serde-big-array-0.4) ("rust-signal-hook" ,rust-signal-hook-0.3) ("rust-simd-helpers" ,rust-simd-helpers-0.1) + ("rust-system-deps" ,rust-system-deps-6) ("rust-thiserror" ,rust-thiserror-1) ("rust-toml" ,rust-toml-0.5) - ("rust-v-frame" ,rust-v-frame-0.2) - ("rust-vergen" ,rust-vergen-3) + ("rust-v-frame" ,rust-v-frame-0.3) ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2) ("rust-y4m" ,rust-y4m-0.7)) #:cargo-development-inputs (("rust-assert-cmd" ,rust-assert-cmd-2) - ("rust-cc" ,rust-cc-1) - ("rust-criterion" ,rust-criterion-0.3) + ("rust-criterion" ,rust-criterion-0.4) ("rust-interpolate-name" ,rust-interpolate-name-0.2) - ("rust-pretty-assertions" ,rust-pretty-assertions-0.7) + ("rust-nom" ,rust-nom-7) + ("rust-pretty-assertions" ,rust-pretty-assertions-1) + ("rust-quickcheck" ,rust-quickcheck-1) + ("rust-quickcheck-macros" ,rust-quickcheck-macros-1) ("rust-rand" ,rust-rand-0.8) ("rust-rand-chacha" ,rust-rand-chacha-0.3) ("rust-semver" ,rust-semver-1)) #:phases (modify-phases %standard-phases - (add-after 'unpack 'relax-versions - (lambda _ - (substitute* "Cargo.toml" - ;; Allow using more recent versions of system-deps. - (("~3.1.2") "~3")))) (replace 'build (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) @@ -5397,7 +5372,9 @@ result in several formats: (delete-file (string-append (assoc-ref outputs "out") "/lib/librav1e.a"))))))) (native-inputs - (list rust-cargo-c nasm)) + (list nasm pkg-config rust-cargo-c)) + (inputs + (list libgit2 zlib)) (home-page "https://github.com/xiph/rav1e/") (synopsis "Fast and safe AV1 encoder") (description "@code{rav1e} is an AV1 video encoder. It is designed to |