homebrew-core/Formula/bash-completion.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

26 lines
818 B
Ruby

require 'formula'
class BashCompletion <Formula
@url='http://bash-completion.alioth.debian.org/files/bash-completion-1.1.tar.bz2'
@homepage='http://bash-completion.alioth.debian.org/'
@md5='1b5ed247ed904d0a2ec6a6d2c5876c52'
@head='git://git.debian.org/git/bash-completion/bash-completion.git'
def install
inreplace "./bash_completion", '/etc/bash_completion',
"#{etc}/bash_completion"
system "./configure", "--prefix=#{prefix}"
system "make install"
end
def caveats
puts <<-EOS
==============================================================
Add the following lines to your ~/.bash_profile file:
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
==============================================================
EOS
end
end