homebrew-core/Formula/readline.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

28 lines
894 B
Ruby

require 'formula'
class Readline <Formula
url 'ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz'
md5 'b7f65a48add447693be6e86f04a63019'
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
def patches
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}",
"--infodir=#{info}",
"--enable-multibyte"
system "make install"
end
end