blob: 4d31f2ff1944436d5f52f246dad571f323f6d40d (
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
52
53
54
55
56
57
58
59
60
61
  | 
require 'formula'
class Pango < Formula
  homepage "http://www.pango.org/"
  url "http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/pango-1.36.6.tar.xz"
  sha256 "4c53c752823723875078b91340f32136aadb99e91c0f6483f024f978a02c8624"
  head do
    url 'git://git.gnome.org/pango'
    depends_on 'automake' => :build
    depends_on 'autoconf' => :build
    depends_on 'libtool' => :build
    depends_on 'gtk-doc' => :build
  end
  bottle do
    sha1 "1f65fb8dfd16ff03f5c53025799cd7d824438e20" => :mavericks
    sha1 "e4258678bf9873af0f36468ac3e43bd3d163fe95" => :mountain_lion
    sha1 "dfd82ea21bf3355bafaa6b3aaa5a7a97115087df" => :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 "./autogen.sh" if build.head?
    system "./configure", *args
    system "make"
    system "make install"
  end
  test do
    system "#{bin}/pango-querymodules", "--version"
  end
end
  |