2012-05-28 17:50:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gtkx3 < Formula
|
|
|
|
homepage 'http://gtk.org/'
|
2014-03-30 23:00:01 +00:00
|
|
|
url 'http://download.gnome.org/sources/gtk+/3.12/gtk+-3.12.0.tar.xz'
|
2014-03-28 19:34:21 +00:00
|
|
|
sha256 'eb69741cd4029b5a1ac9cf04d9de55dcf9e30777a63891750f5d20cc554b6e4b'
|
2012-05-28 17:50:13 +00:00
|
|
|
|
2014-03-28 19:34:21 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "9e2614c2560243bb2739c260b0c883a019321c14" => :mavericks
|
|
|
|
sha1 "2dd7df2a669a1fb41512008160a4f2a383b35028" => :mountain_lion
|
|
|
|
sha1 "6c9814dd0d3eef328823f782da098dc345135491" => :lion
|
|
|
|
end
|
|
|
|
|
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 'glib'
|
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'libtiff'
|
|
|
|
depends_on 'gdk-pixbuf'
|
|
|
|
depends_on 'pango'
|
2013-12-09 21:10:40 +00:00
|
|
|
depends_on 'cairo'
|
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
|
2014-03-28 19:34:21 +00:00
|
|
|
# gtk-update-icon-cache is used during installation, and
|
|
|
|
# we don't want to add a dependency on gtk+2 just for this.
|
|
|
|
inreplace %w[ gtk/makefile.msc.in
|
|
|
|
demos/gtk-demo/Makefile.in
|
|
|
|
demos/widget-factory/Makefile.in ],
|
|
|
|
/gtk-update-icon-cache --(force|ignore-theme-index)/,
|
|
|
|
"#{buildpath}/gtk/\\0"
|
|
|
|
|
2012-05-28 17:50:13 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-glibtest",
|
2013-10-18 23:31:34 +00:00
|
|
|
"--enable-introspection=yes",
|
2013-11-12 07:33:38 +00:00
|
|
|
"--enable-x11-backend",
|
|
|
|
"--disable-schemas-compile"
|
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
|
|
|
|
end
|