homebrew-core/Formula/libffi.rb
Jack Nagel 0397c2cdd4 libffi 3.0.10
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-08 12:11:30 -06:00

22 lines
865 B
Ruby

require 'formula'
class Libffi < Formula
url 'http://mirrors.kernel.org/sources.redhat.com/libffi/libffi-3.0.10.tar.gz'
mirror 'ftp://sourceware.org/pub/libffi/libffi-3.0.10.tar.gz'
homepage 'http://sourceware.org/libffi/'
sha1 '97abf70e6a6d315d9259d58ac463663051d471e1'
keg_only :provided_by_osx, "Some formulae require a newer version of libffi."
def patches
# both of these are fixed upstream
{ :p0 => ["https://svn.macports.org/repository/macports/!svn/bc/88691/trunk/dports/devel/libffi/files/patch-configure.diff",
"https://svn.macports.org/repository/macports/!svn/bc/88691/trunk/dports/devel/libffi/files/patch-configure-darwin11.diff"] }
end
def install
ENV.universal_binary
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end
end