Keg-only fontconfig for Leopard.

Leopard provides fontconfig 2.4.x, but advertises it in the .pc file
as 2.6.0. This causes problems, so we provide a keg-only formula for this.
This commit is contained in:
Adam Vandenberg 2010-04-24 10:33:55 -07:00 committed by Adam Vandenberg
parent 689958a681
commit e07c6dba29

17
Formula/fontconfig.rb Normal file
View file

@ -0,0 +1,17 @@
require 'formula'
class Fontconfig <Formula
url 'http://fontconfig.org/release/fontconfig-2.8.0.tar.gz'
homepage 'http://fontconfig.org/'
md5 '77e15a92006ddc2adbb06f840d591c0e'
# Leopard comes with 2.4.x, which is too old for many packages.
def keg_only?
:provided_by_osx
end
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end