homebrew-core/Formula/gtk+3.rb
Jack Nagel c736a9bc42 cairo: don't allow opting-out of glib dep
Lots of stuff in Homebrew needs this, probably more than we are aware
of, and the vast majority of people installing cairo will have glib
anyway.
2013-12-09 15:10:40 -06:00

38 lines
1.1 KiB
Ruby

require 'formula'
class Gtkx3 < Formula
homepage 'http://gtk.org/'
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.10/gtk+-3.10.6.tar.xz'
sha256 '3c24c57fc5cb7a5ea39d3a3ff7b12be63d7f21a52fd6f20f7b983e19b7b0268a'
depends_on :x11 => '2.5' # needs XInput2, introduced in libXi 1.3
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'glib'
depends_on 'jpeg'
depends_on 'libtiff'
depends_on 'gdk-pixbuf'
depends_on 'pango'
depends_on 'cairo'
depends_on 'jasper' => :optional
depends_on 'atk'
depends_on 'at-spi2-atk'
depends_on 'gobject-introspection'
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-glibtest",
"--enable-introspection=yes",
"--enable-x11-backend",
"--disable-schemas-compile"
system "make install"
# Prevent a conflict between this and Gtk+2
mv bin/'gtk-update-icon-cache', bin/'gtk3-update-icon-cache'
end
def test
system "#{bin}/gtk3-demo"
end
end