55 lines
1.5 KiB
Ruby
55 lines
1.5 KiB
Ruby
require 'formula'
|
|
|
|
class Gtkx3 < Formula
|
|
homepage 'http://gtk.org/'
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.14/gtk+-3.14.1.tar.xz'
|
|
sha256 '7e86eb7c8acc18524d7758ca2340b723ddeee1d0cd2cadd56de5a13322770a52'
|
|
|
|
bottle do
|
|
revision 1
|
|
sha1 "850028f6dda229c4bfa0e166164f1dbebf43fe6d" => :yosemite
|
|
sha1 "fb0669ef39db819266a0eeb45f268575f243f90e" => :mavericks
|
|
sha1 "901ac40ebcb7eafed08584ecedbbdab2d4462c32" => :mountain_lion
|
|
end
|
|
|
|
depends_on :x11 => ['2.5', :recommended] # 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
|
|
depends_on 'atk'
|
|
depends_on 'at-spi2-atk'
|
|
depends_on 'gobject-introspection'
|
|
depends_on 'gsettings-desktop-schemas' => :recommended
|
|
|
|
def install
|
|
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--disable-glibtest
|
|
--enable-introspection=yes
|
|
--disable-schemas-compile
|
|
]
|
|
|
|
if build.without? "x11"
|
|
args << "--enable-quartz-backend" << "--enable-quartz-relocation"
|
|
else
|
|
args << "--enable-x11-backend"
|
|
end
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
# Prevent a conflict between this and Gtk+2
|
|
mv bin/'gtk-update-icon-cache', bin/'gtk3-update-icon-cache'
|
|
end
|
|
|
|
def post_install
|
|
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
|
|
end
|
|
end
|