diff options
| author | Adam Vandenberg | 2009-08-03 12:01:41 -0700 |
|---|---|---|
| committer | Max Howell | 2009-08-10 18:12:16 +0100 |
| commit | af21407fec7f7dd37b43a0734c9ab5e55872c1e5 (patch) | |
| tree | 5329dae8402043621e791661c0fcbf89f3a35caa | |
| parent | 8ede1c5c26fdadc12871de57be5d298f152a86c6 (diff) | |
| download | homebrew-af21407fec7f7dd37b43a0734c9ab5e55872c1e5.tar.bz2 | |
Revert readline to version 5.2, but add patches
This is because Python 2.6 needs this. As soon as something needs readline 6,
we need to support both, which of course we can :)
| -rw-r--r-- | Library/Formula/readline.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Library/Formula/readline.rb b/Library/Formula/readline.rb index 8ad485e3c..598f7d174 100644 --- a/Library/Formula/readline.rb +++ b/Library/Formula/readline.rb @@ -1,17 +1,18 @@ require 'brewkit' class Readline <Formula - @url='ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz' + @url='ftp://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz' @homepage='http://tiswww.case.edu/php/chet/readline/rltop.html' + @md5='e39331f32ad14009b9ff49cc10c5e751' - # Brew doesn't do anything with these patches, yet. - @patches=['ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/readline60-001', - 'ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/readline60-002', - 'ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/readline60-003', - 'ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/readline60-004'] + def patches + (1..14).collect {|n| "ftp://ftp.gnu.org/gnu/readline/readline-5.2-patches/readline52-%03d"%n} + end def install - system "./configure --prefix='#{prefix}'" + system "./configure", "--prefix=#{prefix}", + "--mandir=#{man}", + "--infodir=#{info}" system "make install" end end |
