aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/readline.rb
blob: 809ef480924362b16520ec082cf1fa4e25526c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'brewkit'

class Readline <Formula
  @url='ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz'
  @homepage='http://tiswww.case.edu/php/chet/readline/rltop.html'
  @md5='b7f65a48add447693be6e86f04a63019'

  def keg_only? ; <<-EOS
OS X provides the BSD Readline library. In order to prevent conflicts when
programs look for libreadline we are defaulting this GNU Readline installation
to keg-only.
    EOS

  def patches
    (1..4).collect {|n| "ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-%03d"%n}
  end

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--mandir=#{man}",
                          "--infodir=#{info}"
    system "make install"
  end
end