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

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

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

  option :universal

  # https://bugzilla.gnome.org/show_bug.cgi?id=668522
  patch do
    url "http://git.gnome.org/browse/pygobject/patch/gio/gio-types.defs?id=42d01f060c5d764baa881d13c103d68897163a49"
    sha1 "6976bbad5212ae775e6715405e0e70e592356db2"
  end

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