blob: 17644391e7eaaf811cb1b0328fcf3d4c6d6fffec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  | 
require 'formula'
class Pango < Formula
  homepage "http://www.pango.org/"
  url "http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/pango-1.36.5.tar.xz"
  sha256 "be0e94b2e5c7459f0b6db21efab6253556c8f443837200b8736d697071276ac8"
  bottle do
    sha1 "cae579ffdc52ad681a23d5af611818c9af873e67" => :mavericks
    sha1 "473cd6a06a42e4d3e6bc24779b2094e771b16560" => :mountain_lion
    sha1 "73880906087275dcd394f0567136898bbf2dca94" => :lion
  end
  depends_on 'pkg-config' => :build
  depends_on 'glib'
  depends_on 'cairo'
  depends_on 'harfbuzz'
  depends_on 'fontconfig'
  depends_on :x11 => :recommended
  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.without? "x11"
      args << '--without-xft'
    else
      args << '--with-xft'
    end
    system "./configure", *args
    system "make"
    system "make install"
  end
  test do
    system "#{bin}/pango-querymodules", "--version"
  end
end
  |