homebrew-core/Formula/fontconfig.rb

35 lines
1,006 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Fontconfig < Formula
homepage 'http://fontconfig.org/'
2013-11-06 04:43:53 +00:00
url 'http://fontconfig.org/release/fontconfig-2.11.0.tar.bz2'
sha1 '969818b0326ac08241b11cbeaa4f203699f9b550'
2013-10-28 11:00:44 +00:00
bottle do
# Included with X11 so no bottle needed before Mountain Lion.
2013-11-06 04:43:53 +00:00
sha1 'fe9ea7cf87a3f442571a93fda6ed539f74b5ecea' => :mavericks
sha1 '5ed39070bb5b0d7316d14567e0b952725fec4e58' => :mountain_lion
2013-10-28 11:00:44 +00:00
end
keg_only :provided_pre_mountain_lion
2012-10-20 15:54:37 +00:00
option :universal
2012-08-04 09:09:35 +00:00
depends_on :freetype
2011-03-16 05:01:31 +00:00
depends_on 'pkg-config' => :build
2010-10-16 16:00:07 +00:00
def install
2012-10-20 15:54:37 +00:00
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking",
2013-11-06 04:43:53 +00:00
"--disable-silent-rules",
"--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