2012-05-28 17:50:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gtkx3 < Formula
|
|
|
|
homepage 'http://gtk.org/'
|
2014-04-14 14:58:22 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.12/gtk+-3.12.1.tar.xz'
|
|
|
|
sha256 '719aae5fdb560f64cadb7e968c8c85c0823664de890c9f765ff4c0efeb0277cd'
|
2012-05-28 17:50:13 +00:00
|
|
|
|
2014-03-28 19:34:21 +00:00
|
|
|
bottle do
|
2014-04-14 15:38:27 +00:00
|
|
|
sha1 "89dc1b403bd64be6ab61321d3b13c090c6244dd7" => :mavericks
|
|
|
|
sha1 "81a756c19cd6461a3dc1c0a906b1e7a79f349172" => :mountain_lion
|
|
|
|
sha1 "1a0a9f4166ec0392d43f5cf991d6cd87b63dcec1" => :lion
|
2014-03-28 19:34:21 +00:00
|
|
|
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
|