require 'formula' class Gtkx < Formula homepage 'http://gtk.org/' url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.23.tar.xz' sha256 'a0a406e27e9b5e7d6b2c4334212706ed5cdcd41e713e66c9ae950655dd61517c' bottle do sha1 "20ae36dde326eb65e35374b1fbb53cbda30b2d5c" => :mavericks sha1 "de69fc7a763c5f6d6323eb892e7f9561c705e2dd" => :mountain_lion sha1 "90a014b0ef048e5e8d31c2c24464d2862037b640" => :lion end depends_on 'pkg-config' => :build depends_on 'glib' depends_on 'jpeg' depends_on 'libtiff' depends_on 'gdk-pixbuf' depends_on 'pango' depends_on 'jasper' => :optional depends_on 'atk' depends_on 'cairo' depends_on :x11 => '2.3.6' fails_with :llvm do build 2326 cause "Undefined symbols when linking" end def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--disable-glibtest", "--disable-introspection", "--disable-visibility" system "make install" end end