2011-12-19 17:48:28 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pygobject < Formula
|
|
|
|
homepage 'http://live.gnome.org/PyGObject'
|
2012-09-05 20:56:30 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/pygobject-2.28.6.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '4eda7d2b97f495a2ad7d4cdc234d08ca5408d9d5'
|
2011-12-19 17:48:28 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2012-09-09 07:20:51 +00:00
|
|
|
depends_on 'glib'
|
2011-12-19 17:48:28 +00:00
|
|
|
|
2012-08-12 17:59:09 +00:00
|
|
|
option :universal
|
|
|
|
|
2012-05-30 20:27:03 +00:00
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=668522
|
|
|
|
def patches
|
|
|
|
"http://git.gnome.org/browse/pygobject/patch/gio/gio-types.defs?id=42d01f060c5d764baa881d13c103d68897163a49"
|
|
|
|
end
|
|
|
|
|
2011-12-19 17:48:28 +00:00
|
|
|
def install
|
2012-08-12 17:59:09 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2011-12-19 17:48:28 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-introspection"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|