949c161485
If gobject-introspection is installed, these formulae will attempt to generate introspection data. For this to "just work", it needs to be available across all related formulae, which is a project for another day; until then it just causes build failures. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
31 lines
875 B
Ruby
31 lines
875 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.10.tar.xz'
|
|
sha256 'ea56e31bb9d6e19ed2e8911f4c7ac493cb804431caa21cdcadae625d375a0e89'
|
|
|
|
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' => :optional
|
|
|
|
fails_with_llvm "Undefined symbols when linking", :build => "2326" unless MacOS.lion?
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--disable-glibtest",
|
|
"--disable-introspection"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/gtk-demo"
|
|
end
|
|
end
|