Add a --universal option to readline.

This commit is contained in:
Adam Vandenberg 2010-03-17 09:29:49 -07:00
parent 7dee04f880
commit 052b5f3f97

View file

@ -12,12 +12,19 @@ to keg-only.
EOS
end
def options
[
["--universal", "Build both i386 and x86_64."]
]
end
def patches
patches = (1..4).collect { |n| "ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-%03d"%n }
{ :p0 => patches }
end
def install
ENV.universal_binary if ARGV.include? "--universal"
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--infodir=#{info}",