homebrew-core/Formula/readline.rb

35 lines
1.2 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Readline < Formula
2009-12-10 22:55:24 +00:00
homepage 'http://tiswww.case.edu/php/chet/readline/rltop.html'
url 'http://ftpmirror.gnu.org/readline/readline-6.2.tar.gz'
mirror 'http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz'
sha256 '79a696070a058c233c72dd6ac697021cc64abd5ed51e59db867d66d196a89381'
version '6.2.4'
keg_only <<-EOS
OS X provides the BSD libedit library, which shadows libreadline.
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 => [
"http://ftpmirror.gnu.org/readline/readline-6.2-patches/readline62-001",
"http://ftpmirror.gnu.org/readline/readline-6.2-patches/readline62-002",
"http://ftpmirror.gnu.org/readline/readline-6.2-patches/readline62-003",
"http://ftpmirror.gnu.org/readline/readline-6.2-patches/readline62-004"
2010-09-30 04:43:45 +00:00
]}
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