homebrew-core/Formula/pango.rb
Jack Nagel a78d9506d7 Depend on our cairo in GTK+ toolchain
Eventually we should try to just get this from XQuartz, but for now
let's depend on cairo for consistency.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-03 08:34:01 -05:00

47 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.30/pango-1.30.1.tar.xz'
sha256 '3a8c061e143c272ddcd5467b3567e970cfbb64d1d1600a8f8e62435556220cbe'
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'glib'
depends_on :x11
depends_on 'fontconfig' if MacOS.leopard?
# The Cairo library shipped with Lion contains a flaw that causes Graphviz
# to segfault. See the following ticket for information:
# https://trac.macports.org/ticket/30370
# We depend on our cairo on all platforms for consistency
depends_on 'cairo'
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
def install
system "./configure", "--disable-dependency-tracking",
"--disable-debug",
"--prefix=#{prefix}",
"--enable-man",
"--with-x",
"--with-html-dir=#{share}/doc",
"--disable-introspection"
system "make"
system "make install"
end
def test
mktemp do
system "#{bin}/pango-view", "-t", "test-image",
"--waterfall", "--rotate=10",
"--annotate=1", "--header",
"-q", "-o", "output.png"
system "/usr/bin/qlmanage", "-p", "output.png"
end
end
end