3b4dac6ddd
Having gone through our patches it's clear that p1 is more standard. Also fixed a bug where returning DATA outside of an array would fail to patch.
18 lines
523 B
Ruby
18 lines
523 B
Ruby
require 'brewkit'
|
|
|
|
class Libffi <Formula
|
|
@url='ftp://sourceware.org/pub/libffi/libffi-3.0.8.tar.gz'
|
|
@homepage='http://sources.redhat.com/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
|