harfbuzz: make glib, cairo and gobject-introspection required

Closes #25975.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Tom Schoonjans 2018-03-30 20:48:54 +02:00 committed by ilovezfs
parent e32aad2318
commit 89b7c0968a

View file

@ -3,7 +3,7 @@ class Harfbuzz < Formula
homepage "https://wiki.freedesktop.org/www/Software/HarfBuzz/"
url "https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.7.6.tar.bz2"
sha256 "da7bed39134826cd51e57c29f1dfbe342ccedb4f4773b1c951ff05ff383e2e9b"
revision 1
revision 2
bottle do
sha256 "92ee4f36d18a62540a4fdfc6b43c23a371e662730684050d70e18eb9dc186cea" => :high_sierra
@ -23,12 +23,12 @@ class Harfbuzz < Formula
option "with-cairo", "Build command-line utilities that depend on Cairo"
depends_on "pkg-config" => :build
depends_on "gobject-introspection" => :build
depends_on "freetype" => :recommended
depends_on "glib" => :recommended
depends_on "gobject-introspection" => :recommended
depends_on "graphite2" => :recommended
depends_on "icu4c" => :recommended
depends_on "cairo" => :optional
depends_on "cairo"
depends_on "glib"
resource "ttf" do
url "https://github.com/behdad/harfbuzz/raw/fc0daafab0336b847ac14682e581a8838f36a0bf/test/shaping/fonts/sha1sum/270b89df543a7e48e206a2d830c0e10e5265c630.ttf"
@ -41,32 +41,18 @@ class Harfbuzz < Formula
--prefix=#{prefix}
--with-coretext=yes
--enable-static
--with-cairo=yes
--with-glib=yes
--with-gobject=yes
--enable-introspection=yes
]
if build.with? "cairo"
args << "--with-cairo=yes"
else
args << "--with-cairo=no"
end
if build.with? "freetype"
args << "--with-freetype=yes"
else
args << "--with-freetype=no"
end
if build.with? "glib"
args << "--with-glib=yes"
else
args << "--with-glib=no"
end
if build.with? "gobject-introspection"
args << "--with-gobject=yes" << "--enable-introspection=yes"
else
args << "--with-gobject=no" << "--enable-introspection=no"
end
if build.with? "graphite2"
args << "--with-graphite2=yes"
else