Permalink
Browse files

Add gtk+3.

Importing this from pull request #12552 for testing.
  • Loading branch information...
1 parent d64434f commit b70e49275525d0581076988ee7b85d27888ee2f6 @Midar Midar committed with May 28, 2012
Showing with 30 additions and 0 deletions.
  1. +30 −0 Library/Formula/gtk+3.rb
@@ -0,0 +1,30 @@
+require 'formula'
+
+class Gtkx3 < Formula
+ homepage 'http://gtk.org/'
+ url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.4/gtk+-3.4.3.tar.xz'
+ sha256 '846010442a96590469cde16ed6a1fdfe09397e435165459f04d31cfa5713799f'
+
+ 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' => :optional
+
+ def install
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--disable-glibtest",
+ "--disable-visibility"
+ system "make install"
+ end
+
+ def test
+ system "#{bin}/gtk-demo"
+ end
+end

0 comments on commit b70e492

Please sign in to comment.