05ff20cbcf
This is required to get Gtk+ to build correctly.
55 lines
1.3 KiB
Ruby
55 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'
|
|
|
|
unless build.include? 'without-x'
|
|
depends_on :x11
|
|
# Needs fontconfig 2.10.91, which is newer than what XQuartz provides
|
|
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-xft'
|
|
else
|
|
args << '--with-xft'
|
|
end
|
|
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/pango-querymodules", "--version"
|
|
end
|
|
end
|