homebrew-core/Formula/pango.rb

62 lines
1.4 KiB
Ruby

require 'formula'
class Pango < Formula
homepage "http://www.pango.org/"
url "http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/pango-1.36.8.tar.xz"
sha256 "18dbb51b8ae12bae0ab7a958e7cf3317c9acfc8a1e1103ec2f147164a0fc2d07"
head do
url 'git://git.gnome.org/pango'
depends_on 'automake' => :build
depends_on 'autoconf' => :build
depends_on 'libtool' => :build
depends_on 'gtk-doc' => :build
end
bottle do
sha1 "f3b30fdcf3f70a1c000d56d54580332623b7a80a" => :mavericks
sha1 "c2350116ce922feff1dc776178b96fdb17128782" => :mountain_lion
sha1 "31966ca275095ab6b35955469dfe64f3a0104277" => :lion
end
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'cairo'
depends_on 'harfbuzz'
depends_on 'fontconfig'
depends_on :x11 => :recommended
depends_on 'gobject-introspection'
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def install
args = %W[
--disable-dependency-tracking
--disable-silent-rules
--prefix=#{prefix}
--enable-man
--with-html-dir=#{share}/doc
--enable-introspection=yes
]
if build.without? "x11"
args << '--without-xft'
else
args << '--with-xft'
end
system "./autogen.sh" if build.head?
system "./configure", *args
system "make"
system "make install"
end
test do
system "#{bin}/pango-querymodules", "--version"
end
end