homebrew-core/Formula/gtk+3.rb

48 lines
1.7 KiB
Ruby
Raw Normal View History

require 'formula'
class Gtkx3 < Formula
homepage 'http://gtk.org/'
2014-05-19 21:10:05 +00:00
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.12/gtk+-3.12.2.tar.xz'
sha256 '61d74eea74231b1ea4b53084a9d6fc9917ab0e1d71b69d92cbf60a4b4fb385d0'
2014-03-28 19:34:21 +00:00
bottle do
2014-05-19 21:35:16 +00:00
sha1 "fccd14776278ef85a2e50303d761648f01c7932a" => :mavericks
sha1 "227f2d2b607285abd9251519529f895c99776cbb" => :mountain_lion
sha1 "a024c7978ddc23887ad740d1302cc94ce1d95f03" => :lion
2014-03-28 19:34:21 +00:00
end
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'
depends_on 'cairo'
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'
depends_on 'gobject-introspection'
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"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-glibtest",
"--enable-introspection=yes",
"--enable-x11-backend",
"--disable-schemas-compile"
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
end