homebrew-core/Formula/gtk+.rb

33 lines
886 B
Ruby
Raw Normal View History

2010-04-20 21:40:44 +00:00
require 'formula'
class Gtkx <Formula
url 'ftp://ftp.gnome.org/pub/gnome/sources/gtk+/2.20/gtk+-2.20.1.tar.bz2'
homepage 'http://www.gtk.org/'
sha256 '0e081731d21e34ff45c82199490c2889504fa8b3c7e117c043e82ababaec0f65'
depends_on 'pkg-config' => :build
2010-04-20 21:40:44 +00:00
depends_on 'glib'
depends_on 'jpeg'
depends_on 'libtiff'
# Used by pango, but keg-only, so needs to be added to
# the flags for gtk+ explicitly.
depends_on 'cairo' if MACOS_VERSION < 10.6
depends_on 'pango'
2010-04-20 21:40:44 +00:00
depends_on 'jasper' => :optional
depends_on 'atk' => :optional
def install
2010-10-06 18:42:09 +00:00
fails_with_llvm "Undefined symbols when linking", :build => "2326"
2010-04-20 21:40:44 +00:00
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-glibtest"
system "make install"
end
def test
system "gtk-demo"
end
2010-04-20 21:40:44 +00:00
end