From 9a23c8a0660ca5c87b0a3b1f9a56822b41c61be4 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 5 Mar 2024 12:53:44 +0200 Subject: gnu: rav1e: Add shell completions. * gnu/packages/video.scm (rav1e)[arguments]: Add a phase to generate and install shell completions. Change-Id: Iaf90be902593f085b3aafb780cd72a75c26b2c58 --- gnu/packages/video.scm | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'gnu/packages/video.scm') diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 2da458ed01..7df4b427ed 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -6479,7 +6479,40 @@ result in several formats: (invoke "cargo" "cinstall" "--release" ;; Only build the dynamic library. "--library-type" "cdylib" - (string-append "--prefix=" out)))))))) + (string-append "--prefix=" out))))) + (add-after 'install 'install-completions + (lambda* (#:key native-inputs outputs #:allow-other-keys) + (unless ,(%current-target-system) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share")) + (bash-completions-dir + (string-append out "/etc/bash_completion.d")) + (zsh-completions-dir + (string-append share "/zsh/site-functions")) + (fish-completions-dir + (string-append share "/fish/vendor_completions.d")) + (elvish-completions-dir + (string-append share "/elvish/lib")) + (rav1e (string-append out "/bin/rav1e")) + (common-flags '("-" "-o" "-" "advanced" "--completion"))) + (mkdir-p bash-completions-dir) + (with-output-to-file + (string-append bash-completions-dir "/rav1e") + (lambda _ (apply invoke rav1e (append common-flags '("bash"))))) + (mkdir-p zsh-completions-dir) + ;; This one currently fails to build. + ;(with-output-to-file + ; (string-append zsh-completions-dir "/_rav1e") + ; (lambda _ (apply invoke rav1e (append common-flags '("zsh"))))) + (mkdir-p fish-completions-dir) + (with-output-to-file + (string-append fish-completions-dir "/rav1e.fish") + (lambda _ (apply invoke rav1e (append common-flags '("fish"))))) + (mkdir-p elvish-completions-dir) + (with-output-to-file + (string-append elvish-completions-dir "/rav1e") + (lambda _ + (apply invoke rav1e (append common-flags '("elvish")))))))))))) (native-inputs (append (if (target-x86?) (list nasm) -- cgit v1.2.3 From 7fdf181e36875bae8bb43a6bc2ed05f91f42c96b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 19 Sep 2024 15:11:01 +0300 Subject: gnu: ffmpeg: Build with rav1e on more systems. * gnu/packages/video.scm (ffmpeg)[inputs]: Add rav1e on all systems where it is supported. [arguments]: Add flag to use rav1e when it is added as an input. Change-Id: I53cc11cd406b165dc366ebe547ae6574ea9f58a3 --- gnu/packages/video.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gnu/packages/video.scm') diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 7df4b427ed..9b6910cc88 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1681,9 +1681,7 @@ operate properly.") (build-system gnu-build-system) (inputs (append - ;; XXX: rav1e depends on rust, which currently only works on x86_64. - ;; See also the related configure flag when changing this. - (if (target-x86-64?) (list rav1e) '()) + (if (supported-package? rav1e) (list rav1e) '()) (list dav1d fontconfig freetype @@ -1796,7 +1794,7 @@ operate properly.") "--enable-libmp3lame" "--enable-libopus" "--enable-libpulse" - #$@(if (target-x86-64?) + #$@(if (this-package-input "rav1e") '("--enable-librav1e") '()) "--enable-libsoxr" -- cgit v1.2.3 From a3846be4c5ca9b3c0e8c424fb3fd8981fdeb0d3a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 20 Oct 2024 20:03:39 +0300 Subject: gnu: dav1d: Update to 1.5.0. * gnu/packages/video.scm (dav1d): Update to 1.5.0. Change-Id: I6c682d4c38ce1ec5da1f80bb734de48eeff9905b --- gnu/packages/video.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/video.scm') diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 9b6910cc88..27be6f3480 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -6120,7 +6120,7 @@ and audio capture, network stream playback, and many more.") (define-public dav1d (package (name "dav1d") - (version "1.3.0") + (version "1.5.0") (source (origin (method git-fetch) @@ -6129,7 +6129,7 @@ and audio capture, network stream playback, and many more.") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "17r6qdijdnqfciqa0ia2y4gyhaav6y5gc4d9xj4dg9h7xnpyxc3k")))) + (base32 "0rn8zvmqapjq4r9s9hlpz1866war4ap7hzp5h8qhm5igry7i1qvq")))) (build-system meson-build-system) (native-inputs (if (target-x86?) -- cgit v1.2.3