aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2014-12-18 11:19:54 +0100
committerMike McQuaid2014-12-18 13:08:01 +0000
commite01445270f3d2046d02a0b83203875e163b3aeb4 (patch)
tree82e3eb85e6e39b402cdab53227057fa90964137e /Library/Formula
parent897d5129c521c58ab28caf6a1692cd8991d2941d (diff)
downloadhomebrew-e01445270f3d2046d02a0b83203875e163b3aeb4.tar.bz2
autojump 22.2.2
Closes #35083. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/autojump.rb38
1 files changed, 19 insertions, 19 deletions
diff --git a/Library/Formula/autojump.rb b/Library/Formula/autojump.rb
index c63c6ad73..ed3d47f06 100644
--- a/Library/Formula/autojump.rb
+++ b/Library/Formula/autojump.rb
@@ -1,19 +1,15 @@
-require "formula"
-
class Autojump < Formula
homepage "https://github.com/joelthelion/autojump"
- url "https://github.com/joelthelion/autojump/archive/release-v21.7.1.tar.gz"
- sha1 "bc19d40b3ebe29dc44da950f2c6dbd7da26fb6a3"
+ url "https://github.com/joelthelion/autojump/archive/release-v22.2.2.tar.gz"
+ sha1 "d23d482077049fb07dcdc1e7764694f95937db24"
head "https://github.com/joelthelion/autojump.git"
def install
- inreplace "bin/autojump.sh", " /etc/profile.d/", " #{prefix}/etc/" if build.stable?
- inreplace "bin/autojump.sh", " /usr/local/share/", " #{share}" if build.head?
-
+ inreplace "bin/autojump.sh", " /usr/local/share/autojump/", " #{prefix}/etc/"
libexec.install "bin/autojump"
- libexec.install "bin/autojump_argparse.py", "bin/autojump_data.py", "bin/autojump_utils.py" if build.head?
+ libexec.install "bin/autojump_argparse.py", "bin/autojump_data.py", "bin/autojump_utils.py"
man1.install "docs/autojump.1"
(prefix/"etc").install "bin/autojump.sh", "bin/autojump.bash", "bin/autojump.zsh"
zsh_completion.install "bin/_j"
@@ -22,21 +18,25 @@ class Autojump < Formula
bin.write_exec_script libexec+"autojump"
end
- def caveats;
- msg = <<-EOS.undent
+ def caveats; <<-EOS.undent
Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember
to source the file to update your current session):
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
- EOS
- if build.head?
- msg += <<-EOS.undent
-
- Add the following line to your ~/.config/fish/config.fish:
- . /usr/local/Cellar/autojump/HEAD/etc/autojump.fish
- EOS
- end
+ Add the following line to your ~/.config/fish/config.fish:
+ . /usr/local/Cellar/autojump/HEAD/etc/autojump.fish
+ EOS
+ end
- msg
+ test do
+ path = testpath/"foo"
+ path.mkdir
+ output = %x{
+ source #{HOMEBREW_PREFIX}/etc/autojump.sh
+ j -a foo
+ j foo >/dev/null
+ pwd
+ }.strip
+ assert_equal path.to_s, output
end
end