From ca2d60b2dbb9e77b8fde3e81b4de8b4467739077 Mon Sep 17 00:00:00 2001 From: Vibhoothi Date: Mon, 18 Nov 2019 19:11:07 +0530 Subject: [PATCH] rav1e 0.1.0 (new formula) Signed-off-by: Vibhoothi Closes #46873. Signed-off-by: Rui Chen --- Formula/rav1e.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/rav1e.rb diff --git a/Formula/rav1e.rb b/Formula/rav1e.rb new file mode 100644 index 0000000000..c26502a783 --- /dev/null +++ b/Formula/rav1e.rb @@ -0,0 +1,28 @@ +class Rav1e < Formula + desc "The fastest and safest AV1 encoder" + homepage "https://github.com/xiph/rav1e" + url "https://github.com/xiph/rav1e/archive/0.1.0.tar.gz" + sha256 "00395087eaba4778d17878924e007716e2f399116b8011bf057fd54cc528a6cb" + + depends_on "nasm" => :build + depends_on "rust" => :build + + resource "bus_qcif_15fps.y4m" do + url "https://media.xiph.org/video/derf/y4m/bus_qcif_15fps.y4m" + sha256 "868fc3446d37d0c6959a48b68906486bd64788b2e795f0e29613cbb1fa73480e" + end + + def install + system "cargo", "install", "--locked", + "--root", prefix, + "--path", "." + end + + test do + resource("bus_qcif_15fps.y4m").stage do + system "#{bin}/rav1e", "--tile-rows=2", + "bus_qcif_15fps.y4m", + "--output=bus_qcif_15fps.ivf" + end + end +end