aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gobject-introspection.rb
blob: eb29a5a941e0ed635601bea20914e65a57cfd14e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class GobjectIntrospection < Formula
  url 'http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.31/gobject-introspection-1.31.10.tar.xz'
  homepage 'http://live.gnome.org/GObjectIntrospection'
  md5 'f71e80054048546d282af5f205a08a14'

  depends_on 'pkg-config' => :build
  depends_on 'glib'
  depends_on 'libffi'

  def options
    [["--universal", "Build universal binaries"]]
  end

  def install
    ENV.universal_binary if ARGV.build_universal?
    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make install"
  end
end