From dd3a08c6682c550c8944df7d8a14053085ae7e13 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 20 Nov 2013 14:24:06 -0600 Subject: fontconfig: regenerate font cache post-install Fixes #24526. --- Library/Formula/fontconfig.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/fontconfig.rb b/Library/Formula/fontconfig.rb index 26800e30f..3693e0014 100644 --- a/Library/Formula/fontconfig.rb +++ b/Library/Formula/fontconfig.rb @@ -22,8 +22,13 @@ class Fontconfig < Formula ENV.universal_binary if build.universal? system "./configure", "--disable-dependency-tracking", "--disable-silent-rules", - "--with-add-fonts=/Library/Fonts,~/Library/Fonts", - "--prefix=#{prefix}" + "--with-add-fonts=/System/Library/Fonts,/Library/Fonts,~/Library/Fonts", + "--prefix=#{prefix}", + "--localstatedir=#{var}" system "make install" end + + def post_install + system "#{bin}/fc-cache", "-frv" + end end -- cgit v1.2.3