2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-03 06:10:36 +00:00
|
|
|
|
|
|
|
class BashCompletion <Formula
|
2009-10-10 22:26:46 +00:00
|
|
|
@url='http://bash-completion.alioth.debian.org/files/bash-completion-1.1.tar.bz2'
|
2009-09-03 06:10:36 +00:00
|
|
|
@homepage='http://bash-completion.alioth.debian.org/'
|
2009-10-10 22:26:46 +00:00
|
|
|
@md5='1b5ed247ed904d0a2ec6a6d2c5876c52'
|
2009-09-03 06:10:36 +00:00
|
|
|
@head='git://git.debian.org/git/bash-completion/bash-completion.git'
|
|
|
|
|
|
|
|
def install
|
2009-10-10 22:26:46 +00:00
|
|
|
inreplace "./bash_completion", '/etc/bash_completion',
|
|
|
|
"#{etc}/bash_completion"
|
2009-09-03 06:10:36 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
puts <<-EOS
|
|
|
|
==============================================================
|
2009-09-21 00:38:56 +00:00
|
|
|
Add the following lines to your ~/.bash_profile file:
|
2009-09-03 06:10:36 +00:00
|
|
|
if [ -f `brew --prefix`/etc/bash_completion ]; then
|
|
|
|
. `brew --prefix`/etc/bash_completion
|
|
|
|
fi
|
|
|
|
==============================================================
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|