aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJohn Harrison2011-12-19 11:33:19 -0600
committerJack Nagel2012-01-30 20:03:18 -0600
commit5f39c74f74438579862827c79bab5e00f0cbda38 (patch)
tree28c0628ed4b075d298303ac2a771e2cd5035c7cb /Library/Formula
parent073fa5cedebb1828ae72460c1395356a7c9986a3 (diff)
downloadhomebrew-5f39c74f74438579862827c79bab5e00f0cbda38.tar.bz2
New formula: gobject-introspection
Closes #9183. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gobject-introspection.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/gobject-introspection.rb b/Library/Formula/gobject-introspection.rb
new file mode 100644
index 000000000..eb29a5a94
--- /dev/null
+++ b/Library/Formula/gobject-introspection.rb
@@ -0,0 +1,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