diff --git a/Formula/gtk+.rb b/Formula/gtk+.rb index 723cb69685..c4101c6912 100644 --- a/Formula/gtk+.rb +++ b/Formula/gtk+.rb @@ -3,6 +3,7 @@ class Gtkx < Formula homepage "http://gtk.org/" url "https://download.gnome.org/sources/gtk+/2.24/gtk+-2.24.28.tar.xz" sha256 "b2c6441e98bc5232e5f9bba6965075dcf580a8726398f7374d39f90b88ed4656" + revision 1 bottle do sha256 "bbc0dc6e82ebed36acfecbd5216a7e05709ce54353fae2e88ae6dc89d02b4c49" => :yosemite @@ -15,8 +16,8 @@ class Gtkx < Formula depends_on "jasper" => :optional depends_on "atk" depends_on "pango" - depends_on :x11 => ["2.3.6", :recommended] depends_on "gobject-introspection" + option "with-quartz-relocation" fails_with :llvm do build 2326 @@ -29,10 +30,10 @@ class Gtkx < Formula "--prefix=#{prefix}", "--disable-glibtest", "--enable-introspection=yes", + "--with-gdktarget=quartz", "--disable-visibility"] - args << "--with-gdktarget=quartz" if build.without?("x11") - args << "--enable-quartz-relocation" if build.without?("x11") + args << "--enable-quartz-relocation" if build.with?("quartz-relocation") system "./configure", *args system "make", "install" @@ -54,7 +55,6 @@ class Gtkx < Formula gdk_pixbuf = Formula["gdk-pixbuf"] gettext = Formula["gettext"] glib = Formula["glib"] - harfbuzz = Formula["harfbuzz"] libpng = Formula["libpng"] pango = Formula["pango"] pixman = Formula["pixman"] @@ -68,7 +68,6 @@ class Gtkx < Formula -I#{gettext.opt_include} -I#{glib.opt_include}/glib-2.0 -I#{glib.opt_lib}/glib-2.0/include - -I#{harfbuzz.opt_include}/harfbuzz -I#{include}/gtk-2.0 -I#{libpng.opt_include}/libpng16 -I#{lib}/gtk-2.0/include @@ -77,8 +76,6 @@ class Gtkx < Formula -D_REENTRANT -L#{atk.opt_lib} -L#{cairo.opt_lib} - -L#{fontconfig.opt_lib} - -L#{freetype.opt_lib} -L#{gdk_pixbuf.opt_lib} -L#{gettext.opt_lib} -L#{glib.opt_lib} @@ -86,18 +83,15 @@ class Gtkx < Formula -L#{pango.opt_lib} -latk-1.0 -lcairo - -lfontconfig - -lfreetype - -lgdk-x11-2.0 + -lgdk-quartz-2.0 -lgdk_pixbuf-2.0 -lgio-2.0 -lglib-2.0 -lgobject-2.0 - -lgtk-x11-2.0 + -lgtk-quartz-2.0 -lintl -lpango-1.0 -lpangocairo-1.0 - -lpangoft2-1.0 ] system ENV.cc, "test.c", "-o", "test", *flags system "./test"