2011-12-19 17:33:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GobjectIntrospection < Formula
|
|
|
|
homepage 'http://live.gnome.org/GObjectIntrospection'
|
2012-05-18 02:49:21 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.32/gobject-introspection-1.32.1.tar.xz'
|
|
|
|
sha256 '44f3fb933f76e4728818cc360cb5f9e2edcbdf9bc8a8f9aded99b3e3ef5cb858'
|
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 options
|
|
|
|
[["--universal", "Build universal binaries"]]
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.universal_binary if ARGV.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
|