2012-05-28 17:50:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gtkx3 < Formula
|
|
|
|
homepage 'http://gtk.org/'
|
2013-10-17 12:09:57 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.10/gtk+-3.10.2.tar.xz'
|
|
|
|
sha256 '93af12d28e5f6ccc373ea59f31147e2884c9b3c15dc4841ce3b5cee45b13814c'
|
2012-05-28 17:50:13 +00:00
|
|
|
|
|
|
|
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'
|
2013-05-29 16:15:52 +00:00
|
|
|
depends_on 'cairo' => 'with-glib'
|
2012-05-28 17:50:13 +00:00
|
|
|
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'
|
2013-10-18 23:31:34 +00:00
|
|
|
depends_on 'gobject-introspection'
|
2012-05-28 17:50:13 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-glibtest",
|
2013-10-18 23:31:34 +00:00
|
|
|
"--enable-introspection=yes",
|
2013-09-25 18:45:55 +00:00
|
|
|
"--enable-x11-backend"
|
2012-05-28 17:50:13 +00:00
|
|
|
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'
|
2012-05-28 17:50:13 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-07-22 07:18:02 +00:00
|
|
|
system "#{bin}/gtk3-demo"
|
2012-05-28 17:50:13 +00:00
|
|
|
end
|
|
|
|
end
|