harfbuzz: demote required dependencies to recommended
Closes #6450. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
50240d2f96
commit
d0368925e2
1 changed files with 27 additions and 13 deletions
|
@ -24,9 +24,9 @@ class Harfbuzz < Formula
|
||||||
option "with-cairo", "Build command-line utilities that depend on Cairo"
|
option "with-cairo", "Build command-line utilities that depend on Cairo"
|
||||||
|
|
||||||
depends_on "pkg-config" => :build
|
depends_on "pkg-config" => :build
|
||||||
depends_on "glib"
|
depends_on "freetype" => :recommended
|
||||||
depends_on "freetype"
|
depends_on "glib" => :recommended
|
||||||
depends_on "gobject-introspection"
|
depends_on "gobject-introspection" => :recommended
|
||||||
depends_on "icu4c" => :recommended
|
depends_on "icu4c" => :recommended
|
||||||
depends_on "cairo" => :optional
|
depends_on "cairo" => :optional
|
||||||
depends_on "graphite2" => :optional
|
depends_on "graphite2" => :optional
|
||||||
|
@ -42,18 +42,32 @@ class Harfbuzz < Formula
|
||||||
args = %W[
|
args = %W[
|
||||||
--disable-dependency-tracking
|
--disable-dependency-tracking
|
||||||
--prefix=#{prefix}
|
--prefix=#{prefix}
|
||||||
--enable-introspection=yes
|
|
||||||
--with-freetype=yes
|
|
||||||
--with-glib=yes
|
|
||||||
--with-gobject=yes
|
|
||||||
--with-coretext=yes
|
--with-coretext=yes
|
||||||
--enable-static
|
--enable-static
|
||||||
]
|
]
|
||||||
|
|
||||||
if build.with? "icu4c"
|
if build.with? "cairo"
|
||||||
args << "--with-icu=yes"
|
args << "--with-cairo=yes"
|
||||||
else
|
else
|
||||||
args << "--with-icu=no"
|
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
|
end
|
||||||
|
|
||||||
if build.with? "graphite2"
|
if build.with? "graphite2"
|
||||||
|
@ -62,10 +76,10 @@ class Harfbuzz < Formula
|
||||||
args << "--with-graphite2=no"
|
args << "--with-graphite2=no"
|
||||||
end
|
end
|
||||||
|
|
||||||
if build.with? "cairo"
|
if build.with? "icu4c"
|
||||||
args << "--with-cairo=yes"
|
args << "--with-icu=yes"
|
||||||
else
|
else
|
||||||
args << "--with-cairo=no"
|
args << "--with-icu=no"
|
||||||
end
|
end
|
||||||
|
|
||||||
system "./autogen.sh" if build.head?
|
system "./autogen.sh" if build.head?
|
||||||
|
|
Loading…
Reference in a new issue