homebrew-core/Formula/fontconfig.rb

37 lines
1 KiB
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
2013-12-05 16:16:20 +00:00
revision 1
sha1 '75aac7c039827ca3581116466cc7328c44eab4d6' => :mavericks
sha1 'ee6d064b5381c7d1884695bce1a0e39f2dfc15a5' => :mountain_lion
sha1 '7fc50a2d18fd503769aa70fd3811a12f5e8b03bf' => :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}",
2013-11-29 20:48:30 +00:00
"--localstatedir=#{var}",
"--sysconfdir=#{etc}"
system "make install"
end
def post_install
system "#{bin}/fc-cache", "-frv"
end
end