homebrew-core/Formula/gtk+3.rb
Lee Hanxue 7373d9b9c6 gtk 3.10.1
Closes Homebrew/homebrew#23208.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-11 19:43:56 +01:00

36 lines
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.1.tar.xz'
sha1 '6840ce0c7180344b063147332d4bf515a79ccebf'
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' => 'with-glib'
depends_on 'jasper' => :optional
depends_on 'atk'
depends_on 'at-spi2-atk'
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-glibtest",
"--disable-introspection",
"--enable-x11-backend"
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