homebrew-core/Formula/gtk+3.rb

36 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
class Gtkx3 < Formula
homepage 'http://gtk.org/'
2013-05-16 02:07:39 +00:00
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.8/gtk+-3.8.2.tar.xz'
sha256 '1ca80c9c15a1df95d74cefb8c2afe4682ba272a4b489106f04877be2a7aff297'
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
2013-02-02 06:16:48 +00:00
depends_on 'atk'
2013-02-02 06:49:55 +00:00
depends_on 'at-spi2-atk'
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-glibtest",
"--disable-introspection"
system "make install"
2013-01-14 20:52:01 +00:00
# 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