homebrew-core/Formula/libffi.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

18 lines
519 B
Ruby

require 'formula'
class Libffi <Formula
@url='ftp://sourceware.org/pub/libffi/libffi-3.0.8.tar.gz'
@homepage='http://sourceware.org/libffi/'
@sha1='ce44d10c39d9a37479c8777e206cac0f36c48712'
def patches
host = "http://trac.macports.org"
base = "export/57218/trunk/dports/devel/libffi/files"
{ :p0 => "#{host}/#{base}/patch-includedir.diff" }
end
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end
end