ttfautohint: remove with-qt option.

Used by ~10% of installs (https://formulae.brew.sh/formula/ttfautohint)
and reported broken in #34257.

Fixes #34257.
This commit is contained in:
Mike McQuaid 2018-11-24 11:52:49 +00:00
parent c773b9ff8a
commit 0998b4eb8b

View file

@ -21,36 +21,22 @@ class Ttfautohint < Formula
depends_on "pkg-config" => :build
end
option "with-qt", "Build ttfautohintGUI also"
deprecated_option "with-qt5" => "with-qt"
depends_on "pkg-config" => :build
depends_on "freetype"
depends_on "harfbuzz"
depends_on "libpng"
depends_on "qt" => :optional
def install
args = %W[
--disable-dependency-tracking
--disable-silent-rules
--prefix=#{prefix}
--without-doc
]
args << "--without-qt" if build.without? "qt"
system "./bootstrap" if build.head?
system "./configure", *args
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--without-doc",
"--without-qt"
system "make", "install"
end
test do
if build.with? "qt"
system "#{bin}/ttfautohintGUI", "-V"
else
system "#{bin}/ttfautohint", "-V"
end
system "#{bin}/ttfautohint", "-V"
end
end