e466dae5c2
Determining build-time deps as part of the download strategy is probably a Homebrew 2 topic, so avoid the "you need to install xz" warning by declaring xz as a dep where used. The "don't use xz if there are alternatives" policy is still in effect, though. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
22 lines
623 B
Ruby
22 lines
623 B
Ruby
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 'xz' => :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
|