homebrew-core/Formula/readline.rb

31 lines
942 B
Ruby
Raw Normal View History

require 'formula'
class Readline <Formula
2010-08-29 15:28:30 +00:00
url 'ftp://ftp.cwru.edu/pub/bash/readline-6.1.tar.gz'
md5 'fc2f7e714fe792db1ce6ddc4c9fb4ef3'
2009-12-10 22:55:24 +00:00
homepage 'http://tiswww.case.edu/php/chet/readline/rltop.html'
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-21 18:38:24 +00:00
def patches
2010-09-30 04:43:45 +00:00
{:p0 => [
"ftp://ftp.gnu.org/gnu/readline/readline-6.1-patches/readline61-001",
"ftp://ftp.gnu.org/gnu/readline/readline-6.1-patches/readline61-002",
]}
end
def install
# Always build universal, per https://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