require 'formula' class Pango < Formula homepage "http://www.pango.org/" url "http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/pango-1.36.7.tar.xz" sha256 "1f7b527423a1b3044fd9ae7fbe054107b06723ff1c73e0b5f7bf9b84358d404a" 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 "17d2ffdad13a6aa6ea32f63c084c9ad9baba90db" => :mavericks sha1 "39f58dc602fba069f87be8c1019eb262984768df" => :mountain_lion sha1 "1c6579407e153c1089807c47e7e0476d64785305" => :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