homebrew-core/Formula/gtk+.rb
2013-05-15 22:19:57 -05:00

37 lines
943 B
Ruby

require 'formula'
class Gtkx < Formula
homepage 'http://gtk.org/'
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.18.tar.xz'
sha256 '6c963101272ff53bb5b01d21bfb86cebba5f0a68f31c5e10523c63f07e762385'
depends_on 'pkg-config' => :build
depends_on 'xz' => :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
def test
system "#{bin}/gtk-demo"
end
end