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

class Pygobject < Formula
  url 'http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/pygobject-2.28.6.tar.bz2'
  homepage 'http://live.gnome.org/PyGObject'
  md5 'a43d783228dd32899e6908352b8308f3'

  depends_on 'pkg-config' => :build
  depends_on 'gobject-introspection'
  depends_on 'gtk+'

  def options
    [["--universal", "Builds a universal binary"]]
  end

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