homebrew-core/Formula/pango.rb
2015-06-05 14:47:57 +01:00

67 lines
1.6 KiB
Ruby

require 'formula'
class Pango < Formula
desc "Framework for layout and rendering of i18n text"
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 'https://git.gnome.org/browse/pango'
depends_on 'automake' => :build
depends_on 'autoconf' => :build
depends_on 'libtool' => :build
depends_on 'gtk-doc' => :build
end
bottle do
revision 1
sha1 "b30d81e5b4b90792e14aa02b273fcf93e9675fc7" => :yosemite
sha1 "eb30e96c1d896cd8fc7e1053513b3e298645c9af" => :mavericks
sha1 "ea288645c2ca58b4addf29c0140fb3ecec6ea3ab" => :mountain_lion
end
option :universal
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
ENV.universal_binary if build.universal?
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