mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 03:19:46 -05:00
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
21 lines
545 B
Ruby
21 lines
545 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'
|
|
|
|
keg_only :provided_by_osx
|
|
|
|
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
|