Files
tigerbrew/Library/Formula/pango.rb
T
Elliot Saba 0a23073844 pango 1.32.6
- Updating test
 - Add dep on harfbuzz

Closes #16900.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-02-02 12:31:54 -06:00

57 lines
1.3 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.6.tar.xz'
sha256 '8e9a3eadebf30a31640f2b3ae0fb455cf92d10d1cad246d0ffe72ec595905174'
option 'without-x', 'Build without X11 support'
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'glib'
depends_on 'harfbuzz'
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
system "#{bin}/pango-querymodules", "--version"
end
end