48 lines
1.1 KiB
Ruby
48 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
class Pango < Formula
|
|
homepage 'http://www.pango.org/'
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/pango-1.36.1.tar.xz'
|
|
sha256 '42e4b51cdc99e6878a9ea2a5ef2b31b79c1033f8518726df738a3c54c90e59f8'
|
|
|
|
option 'without-x', 'Build without X11 support'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'xz' => :build
|
|
depends_on 'glib'
|
|
depends_on 'cairo'
|
|
depends_on 'harfbuzz'
|
|
depends_on 'fontconfig'
|
|
depends_on :x11 unless build.without? 'x'
|
|
depends_on 'gobject-introspection'
|
|
|
|
fails_with :llvm do
|
|
build 2326
|
|
cause "Undefined symbols when linking"
|
|
end
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--disable-silent-rules
|
|
--prefix=#{prefix}
|
|
--enable-man
|
|
--with-html-dir=#{share}/doc
|
|
--enable-introspection=yes
|
|
]
|
|
|
|
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
|