handbrake 1.2.0

Closes .

Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
Chongyu Zhu 2018-12-23 09:08:02 +08:00
parent f7fde25990
commit c031b8a694
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -1,8 +1,8 @@
class Handbrake < Formula class Handbrake < Formula
desc "Open-source video transcoder available for Linux, Mac, and Windows" desc "Open-source video transcoder available for Linux, Mac, and Windows"
homepage "https://handbrake.fr/" homepage "https://handbrake.fr/"
url "https://download.handbrake.fr/releases/1.1.2/HandBrake-1.1.2-source.tar.bz2" url "https://download.handbrake.fr/releases/1.2.0/HandBrake-1.2.0-source.tar.bz2"
sha256 "ba9a4a90a7657720f04e4ba0a2880ed055be3bd855e99c0c13af944c3904de2e" sha256 "113b398a50147d48c8777e6ff2c4de6825af5f1079b3822e41bf0eacec9c940d"
head "https://github.com/HandBrake/HandBrake.git" head "https://github.com/HandBrake/HandBrake.git"
bottle do bottle do
@ -22,19 +22,6 @@ class Handbrake < Formula
depends_on "yasm" => :build depends_on "yasm" => :build
def install def install
# Upstream issue 8 Jun 2018 "libvpx fails to build"
# See https://github.com/HandBrake/HandBrake/issues/1401
if MacOS.version <= :el_capitan
inreplace "contrib/libvpx/module.defs", /--disable-unit-tests/,
"\\0 --disable-avx512"
end
if MacOS.version >= :mojave
# Upstream issue 8 Sep 2018 "HandBrake 1.1.2: libvpx failed to be configured on macOS 10.14 Mojave"
# See https://github.com/HandBrake/HandBrake/issues/1578
inreplace "contrib/libvpx/module.defs", "--target=x86_64-darwin11-gcc", "--target=x86_64-darwin14-gcc"
end
system "./configure", "--prefix=#{prefix}", system "./configure", "--prefix=#{prefix}",
"--disable-xcode", "--disable-xcode",
"--disable-gtk" "--disable-gtk"