homebrew-core/Formula/readline.rb

30 lines
911 B
Ruby
Raw Normal View History

require 'formula'
class Readline <Formula
2009-12-10 22:55:24 +00:00
url 'ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz'
md5 'b7f65a48add447693be6e86f04a63019'
homepage 'http://tiswww.case.edu/php/chet/readline/rltop.html'
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
2010-05-19 15:02:20 +00:00
patches = (1..5).collect { |n| "ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-%03d"%n }
{ :p0 => patches }
end
def install
# Always build universal, per http://github.com/mxcl/homebrew/issues/issue/899
ENV.universal_binary
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
2009-12-10 22:55:24 +00:00
"--infodir=#{info}",
"--enable-multibyte"
system "make install"
end
end