From db92fc302a81334602bcb36b5e41417bd700abfc Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Mon, 1 Jul 2024 10:17:47 -0400 Subject: [PATCH 1/2] uvg266 0.8.1 autobump: add uvg266 Signed-off-by: Rui Chen uvg266: remove build patch and update build/test Signed-off-by: Rui Chen --- .github/autobump.txt | 1 + Formula/u/uvg266.rb | 33 ++++++++++----------------------- 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/.github/autobump.txt b/.github/autobump.txt index 46cc528f3189a..4433e0e7fc8fb 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -2523,6 +2523,7 @@ uutils-diffutils uutils-findutils uuu uv +uvg266 uvicorn uwsgi v2ray diff --git a/Formula/u/uvg266.rb b/Formula/u/uvg266.rb index 9d26ac0bbe16d..d9a4daf21591c 100644 --- a/Formula/u/uvg266.rb +++ b/Formula/u/uvg266.rb @@ -1,20 +1,11 @@ class Uvg266 < Formula desc "Open-source VVC/H.266 encoder" homepage "https://github.com/ultravideo/uvg266" + url "https://github.com/ultravideo/uvg266/archive/refs/tags/v0.8.1.tar.gz" + sha256 "9a2c68f94a1105058d1e654191036423d0a0fcf33b7e790dd63801997540b6ec" license "BSD-3-Clause" head "https://github.com/ultravideo/uvg266.git", branch: "master" - stable do - url "https://github.com/ultravideo/uvg266/archive/refs/tags/v0.8.0.tar.gz" - sha256 "27e4306577fe646951bd3c12685c1527b41385bfcb95262233669fc7f44f21bd" - - # Fix attempts to build AVX2 code on arm64 - remove on next release - patch do - url "https://github.com/ultravideo/uvg266/commit/e5e32d67f43ba73db4a1a17aa975a070f15496be.patch?full_index=1" - sha256 "2b2e0938eeab7ea9900ec2f40e09debdcd908e13fffb44f66556baa904edaeff" - end - end - bottle do sha256 cellar: :any, arm64_sonoma: "b3f0dcbb7047b2982860c57b4b9d94da3b69ee513c6587be4dd95fbc223ab94f" sha256 cellar: :any, arm64_ventura: "fe2dc71d9b62684ff83a8de3fbd7ba21e491670d24a825a4eb19f05ac4df3d21" @@ -27,24 +18,20 @@ class Uvg266 < Formula depends_on "cmake" => :build - resource "homebrew-videosample" do - url "https://samples.mplayerhq.hu/V-codecs/lm20.avi" - sha256 "a0ab512c66d276fd3932aacdd6073f9734c7e246c8747c48bf5d9dd34ac8b392" - end - def install - args = std_cmake_args + %W[-DCMAKE_INSTALL_RPATH=#{rpath}] - - system "cmake", "-S", ".", "-B", "build", *args + system "cmake", "-S", ".", "-B", "build", "-DCMAKE_INSTALL_RPATH=#{rpath}", *std_cmake_args system "cmake", "--build", "build" system "cmake", "--install", "build" end test do - # download small sample and try to encode it - resource("homebrew-videosample").stage do - system bin/"uvg266", "-i", "lm20.avi", "--input-res", "16x16", "-o", "lm20.vvc" - assert_predicate Pathname.pwd/"lm20.vvc", :exist? + resource "homebrew-videosample" do + url "https://samples.mplayerhq.hu/V-codecs/lm20.avi" + sha256 "a0ab512c66d276fd3932aacdd6073f9734c7e246c8747c48bf5d9dd34ac8b392" end + testpath.install resource("homebrew-videosample") + + system bin/"uvg266", "-i", "lm20.avi", "--input-res", "16x16", "-o", "lm20.vvc" + assert_predicate testpath/"lm20.vvc", :exist? end end From 3646a53fcb27617475ac1d0eb841accd5581eea8 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:22:24 +0000 Subject: [PATCH 2/2] uvg266: update 0.8.1 bottle. --- Formula/u/uvg266.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Formula/u/uvg266.rb b/Formula/u/uvg266.rb index d9a4daf21591c..91b063c132d7f 100644 --- a/Formula/u/uvg266.rb +++ b/Formula/u/uvg266.rb @@ -7,13 +7,13 @@ class Uvg266 < Formula head "https://github.com/ultravideo/uvg266.git", branch: "master" bottle do - sha256 cellar: :any, arm64_sonoma: "b3f0dcbb7047b2982860c57b4b9d94da3b69ee513c6587be4dd95fbc223ab94f" - sha256 cellar: :any, arm64_ventura: "fe2dc71d9b62684ff83a8de3fbd7ba21e491670d24a825a4eb19f05ac4df3d21" - sha256 cellar: :any, arm64_monterey: "96832bedf204b7315199fe2c73d915d8899b118c0fdeb7e7366444238dcad9c5" - sha256 cellar: :any, sonoma: "84b745699bddeeda3528c792573cbad0bee61197b6d54520bf64eaecc53fc1da" - sha256 cellar: :any, ventura: "a4903dd76bb6286cc20becf914f043649e8b7c3b3fd2029c966b1a7f4553a3e0" - sha256 cellar: :any, monterey: "84e5397eca32b986e135eebf2bd67bf6b80cda9388d6396437d8d12b575aad21" - sha256 cellar: :any_skip_relocation, x86_64_linux: "e64fb73e4bdaece14458cdfd4c8c123c298a8ce3fcfb483f2c3dc2ba22902bb8" + sha256 cellar: :any, arm64_sonoma: "2e1d62a8487ecb14e1b585c0a7e4b6d3a59ee1a9c2a1ead291697968c1b6eb55" + sha256 cellar: :any, arm64_ventura: "aeee7925bcfdc18d227a1d911489a03abd2f5ca434336c9da4b308516641d1dc" + sha256 cellar: :any, arm64_monterey: "b958ad1e7e6fa2607fc592db623418c2a7125d6bd7d75b247fe8c6d1fbb5b4ab" + sha256 cellar: :any, sonoma: "1ff7b317c2ef872de0f794eb448e26cf4b1569352b2dac1e041357756d94b3da" + sha256 cellar: :any, ventura: "9219b51849b23154d86aec45505cc450e83833a14b8c5ecf32cec6fc889a4096" + sha256 cellar: :any, monterey: "5b0ac26a3a6a6162769cd3d08d7eeb2fc43ad4bfdab0905e6e0044ef8fa73c95" + sha256 cellar: :any_skip_relocation, x86_64_linux: "b2b2fc85f72c8d371bd32609a2723478c4c5f7575e3337827b5991c5b91f498d" end depends_on "cmake" => :build