2011-12-19 17:33:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GobjectIntrospection < Formula
|
|
|
|
homepage 'http://live.gnome.org/GObjectIntrospection'
|
2012-10-23 21:13:52 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.34/gobject-introspection-1.34.1.tar.xz'
|
|
|
|
sha256 'bf40470c863dbb292ec52d1e84495e9334ea954e3a0ee59d6ff5f8161ea53abd'
|
2011-12-19 17:33:19 +00:00
|
|
|
|
2012-08-10 04:53:39 +00:00
|
|
|
option :universal
|
|
|
|
|
2011-12-19 17:33:19 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-02-18 00:56:36 +00:00
|
|
|
depends_on 'xz' => :build
|
2011-12-19 17:33:19 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'libffi'
|
|
|
|
|
|
|
|
def install
|
2012-08-10 04:53:39 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-07-07 17:03:33 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
# Tests require (at least) cairo, disable them.
|
|
|
|
"--disable-tests"
|
2011-12-19 17:33:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|