require 'formula' class Pango < Formula homepage "http://www.pango.org/" url "http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/pango-1.36.6.tar.xz" sha256 "4c53c752823723875078b91340f32136aadb99e91c0f6483f024f978a02c8624" 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 "1f65fb8dfd16ff03f5c53025799cd7d824438e20" => :mavericks sha1 "e4258678bf9873af0f36468ac3e43bd3d163fe95" => :mountain_lion sha1 "dfd82ea21bf3355bafaa6b3aaa5a7a97115087df" => :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