2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-01 18:44:16 +00:00
|
|
|
|
|
|
|
class Readline <Formula
|
2009-09-10 21:56:07 +00:00
|
|
|
@url='ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz'
|
2009-08-01 18:44:16 +00:00
|
|
|
@homepage='http://tiswww.case.edu/php/chet/readline/rltop.html'
|
2009-09-10 21:56:07 +00:00
|
|
|
@md5='b7f65a48add447693be6e86f04a63019'
|
2009-08-01 18:44:16 +00:00
|
|
|
|
2009-09-21 19:22:09 +00:00
|
|
|
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
|
2009-09-22 13:48:59 +00:00
|
|
|
end
|
2009-09-21 18:38:24 +00:00
|
|
|
|
|
|
|
def patches
|
2009-09-25 12:43:45 +00:00
|
|
|
patches = (1..4).collect { |n| "ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-%03d"%n }
|
|
|
|
{ :p0 => patches }
|
2009-09-21 19:22:09 +00:00
|
|
|
end
|
|
|
|
|
2009-08-01 18:44:16 +00:00
|
|
|
def install
|
2009-08-03 19:01:41 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--infodir=#{info}"
|
2009-08-01 18:44:16 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|