2010-04-20 21:40:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gtkx < Formula
|
2012-02-08 11:53:46 +00:00
|
|
|
homepage 'http://gtk.org/'
|
2012-07-22 07:17:44 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.11.tar.xz'
|
|
|
|
sha256 '328b4ea19a61040145e777e2ac49820968a382ac8581a380c9429897881812a9'
|
2010-04-20 21:40:44 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-02-18 00:56:36 +00:00
|
|
|
depends_on 'xz' => :build
|
2010-04-20 21:40:44 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'jpeg'
|
2010-05-19 17:20:47 +00:00
|
|
|
depends_on 'libtiff'
|
2011-03-25 20:04:35 +00:00
|
|
|
depends_on 'gdk-pixbuf'
|
2010-05-19 17:20:47 +00:00
|
|
|
depends_on 'pango'
|
2010-04-20 21:40:44 +00:00
|
|
|
depends_on 'jasper' => :optional
|
|
|
|
depends_on 'atk' => :optional
|
2012-07-03 13:34:01 +00:00
|
|
|
depends_on 'cairo'
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2010-04-20 21:40:44 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2326
|
|
|
|
cause "Undefined symbols when linking"
|
|
|
|
end
|
2011-04-03 18:53:05 +00:00
|
|
|
|
2010-04-20 21:40:44 +00:00
|
|
|
def install
|
2012-02-08 23:58:48 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2010-04-20 21:40:44 +00:00
|
|
|
"--prefix=#{prefix}",
|
2012-02-08 23:58:48 +00:00
|
|
|
"--disable-glibtest",
|
2012-02-17 23:26:06 +00:00
|
|
|
"--disable-introspection",
|
|
|
|
"--disable-visibility"
|
2010-04-20 21:40:44 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2010-11-14 18:46:16 +00:00
|
|
|
|
|
|
|
def test
|
2011-09-01 20:00:28 +00:00
|
|
|
system "#{bin}/gtk-demo"
|
2010-11-14 18:46:16 +00:00
|
|
|
end
|
2010-04-20 21:40:44 +00:00
|
|
|
end
|