homebrew-core/Formula/pango.rb
Elliot Saba d36119b146 pango 1.32.3
Closes Homebrew/homebrew#16261.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-11-27 12:34:25 -08:00

59 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.32/pango-1.32.3.tar.xz'
sha256 '19a1a4fa021fcf96261de3cb809295ac06546f2a061c3c623141f2f4989b6a36'
option 'without-x', 'Build without X11 support'
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'glib'
depends_on :x11 unless build.include? 'without-x'
if MacOS.version == :leopard
depends_on 'fontconfig'
else
depends_on :fontconfig
end
# 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
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--enable-man
--with-html-dir=#{share}/doc
--disable-introspection
]
if build.include? 'without-x'
args << '--without-x'
else
args << '--with-x'
end
system "./configure", *args
system "make"
system "make install"
end
def test
mktemp do
system "#{bin}/pango-view", "-t", "test-image",
"--waterfall", "--rotate=10",
"--annotate=1", "--header"
end
end
end