diff options
| author | Jannis Leidel | 2010-09-27 14:32:36 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-27 12:49:39 -0700 |
| commit | 62709cf94b4a63489a73df41ada049681ff12ff4 (patch) | |
| tree | 5f1b9b930fca22e0d390a6b9d0c1563f066855da | |
| parent | c2c76fb5f6d1487e5ae3bb68cb335e55e78f2f46 (diff) | |
| download | homebrew-62709cf94b4a63489a73df41ada049681ff12ff4.tar.bz2 | |
Added autojump formula.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/autojump.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/autojump.rb b/Library/Formula/autojump.rb new file mode 100644 index 000000000..a4235b0fd --- /dev/null +++ b/Library/Formula/autojump.rb @@ -0,0 +1,26 @@ +require 'formula' + +class Autojump <Formula + url 'http://github.com/downloads/joelthelion/autojump/autojump_v12.tar.gz' + homepage 'http://github.com/joelthelion/autojump/wiki' + md5 'b12ec5909afef86016d0e9ce7c834071' + version '12' + + def caveats; <<-EOS +Add the following lines to your ~/.bash_profile file: +if [ -f `brew --prefix`/etc/autojump ]; then + . `brew --prefix`/etc/autojump +fi + EOS + end + + def install + bin.install "autojump" + man1.install "autojump.1" + (prefix+'etc').install ["autojump.bash", "autojump.zsh"] + inreplace "autojump.sh" do |s| + s.gsub! '/etc/profile.d/', (prefix+'etc/') + end + (prefix+'etc').install "autojump.sh" => "autojump" + end +end |
