2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-01 18:44:16 +00:00
|
|
|
|
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'
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/readline/readline-6.2.tar.gz'
|
2011-04-10 23:39:36 +00:00
|
|
|
sha256 '79a696070a058c233c72dd6ac697021cc64abd5ed51e59db867d66d196a89381'
|
2011-04-11 16:07:07 +00:00
|
|
|
version '6.2.1'
|
2009-08-01 18:44:16 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
keg_only <<-EOS
|
2011-03-17 04:36:36 +00:00
|
|
|
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.
|
2010-04-07 05:58:35 +00:00
|
|
|
EOS
|
2009-09-21 18:38:24 +00:00
|
|
|
|
|
|
|
def patches
|
2010-09-30 04:43:45 +00:00
|
|
|
{:p0 => [
|
2011-09-12 16:31:30 +00:00
|
|
|
"http://ftpmirror.gnu.org/readline/readline-6.2-patches/readline62-001",
|
2010-09-30 04:43:45 +00:00
|
|
|
]}
|
2009-09-21 19:22:09 +00:00
|
|
|
end
|
|
|
|
|
2009-08-01 18:44:16 +00:00
|
|
|
def install
|
2010-11-10 18:16:28 +00:00
|
|
|
# Always build universal, per https://github.com/mxcl/homebrew/issues/issue/899
|
2010-04-06 16:28:57 +00:00
|
|
|
ENV.universal_binary
|
2011-04-14 21:43:11 +00:00
|
|
|
# Fix darwin detection for Lion, see https://github.com/mxcl/homebrew/issues/4782
|
|
|
|
inreplace 'support/shobj-conf', 'darwin[89]*|darwin10*)', 'darwin[89]*|darwin1[01]*)'
|
2009-08-03 19:01:41 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}",
|
2009-12-10 22:55:24 +00:00
|
|
|
"--infodir=#{info}",
|
|
|
|
"--enable-multibyte"
|
2009-08-01 18:44:16 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|