3e4239f85b
libass 0.13.0 (https://github.com/libass/libass/releases/tag/0.13.0) introduced CoreText support and turned it on by default on OS X. This is a breaking change (that renders users' customizations around fontconfig useless) and this commit adds an option to disable CoreText binding and fall back to the more traditional fontconfig. Closes Homebrew/homebrew#44632. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
class Libass < Formula
|
|
desc "Subtitle renderer for the ASS/SSA subtitle format"
|
|
homepage "https://github.com/libass/libass"
|
|
url "https://github.com/libass/libass/releases/download/0.13.0/libass-0.13.0.tar.gz"
|
|
sha256 "67692ef2a56e0423d22b142edb072c04949fe88c37be1d19cf22669c44f935f3"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "cf1af3bd7ddb8138afe2d404897d48a4c78d5b2518ffef7d8785fcaa09144113" => :el_capitan
|
|
sha256 "cf0373b3f9d85cd4db27f37ea1cdc34a18033b5f5ce966d391165a1dcffc9e48" => :yosemite
|
|
sha256 "7303bf3c119bc80d850f8e16ac1212e70224c83df3f8a3c0bf2adb0d378a6e80" => :mavericks
|
|
end
|
|
|
|
option "with-fontconfig", "Disable CoreText backend in favor of the more traditional fontconfig"
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "yasm" => :build
|
|
|
|
depends_on "freetype"
|
|
depends_on "fribidi"
|
|
depends_on "harfbuzz" => :recommended
|
|
depends_on "fontconfig" => :optional
|
|
|
|
def install
|
|
args = %W[--disable-dependency-tracking --prefix=#{prefix}]
|
|
args << "--disable-coretext" if build.with? "fontconfig"
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
end
|