Skip to content

Commit

Permalink
Add a --universal option to readline.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Mar 17, 2010
1 parent 2c5459e commit 5cfb353
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Library/Formula/readline.rb
Expand Up @@ -12,12 +12,19 @@ def keg_only? ; <<-EOS
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}",
Expand Down

0 comments on commit 5cfb353

Please sign in to comment.