aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDominyk Tiller2014-10-24 19:04:58 +0100
committerBrett Koonce2014-10-24 19:53:40 -0700
commit5d4728833e9019bff155d07686a3a09ce2078656 (patch)
treef33fab76fefda5d2d22d9c8d7e00b99db3472941 /Library/Formula
parentec74aa2b6447f96c7c7534ace06233f1830e82c4 (diff)
downloadhomebrew-5d4728833e9019bff155d07686a3a09ce2078656.tar.bz2
autojump: fix HEAD
Fixes #33553. Closes #33556. Signed-off-by: Brett Koonce <koonce@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/autojump.rb28
1 files changed, 15 insertions, 13 deletions
diff --git a/Library/Formula/autojump.rb b/Library/Formula/autojump.rb
index 1c07f5de3..c63c6ad73 100644
--- a/Library/Formula/autojump.rb
+++ b/Library/Formula/autojump.rb
@@ -1,23 +1,25 @@
-require 'formula'
+require "formula"
class Autojump < Formula
- homepage 'https://github.com/joelthelion/autojump#name'
- url 'https://github.com/joelthelion/autojump/archive/release-v21.7.1.tar.gz'
- sha1 'bc19d40b3ebe29dc44da950f2c6dbd7da26fb6a3'
+ homepage "https://github.com/joelthelion/autojump"
+ url "https://github.com/joelthelion/autojump/archive/release-v21.7.1.tar.gz"
+ sha1 "bc19d40b3ebe29dc44da950f2c6dbd7da26fb6a3"
- head 'https://github.com/joelthelion/autojump.git'
+ head "https://github.com/joelthelion/autojump.git"
def install
- inreplace 'bin/autojump.sh', ' /etc/profile.d/', " #{prefix}/etc/"
+ inreplace "bin/autojump.sh", " /etc/profile.d/", " #{prefix}/etc/" if build.stable?
+ inreplace "bin/autojump.sh", " /usr/local/share/", " #{share}" if build.head?
- libexec.install 'bin/autojump'
- libexec.install 'bin/autojump_argparse.py', 'bin/autojump_data.py', 'bin/autojump_utils.py' if build.head?
- man1.install 'docs/autojump.1'
- (prefix/'etc').install 'bin/autojump.sh', 'bin/autojump.bash', 'bin/autojump.zsh'
- zsh_completion.install 'bin/_j'
- (prefix/'etc').install 'bin/autojump.fish'
- bin.write_exec_script libexec+'autojump'
+ libexec.install "bin/autojump"
+ libexec.install "bin/autojump_argparse.py", "bin/autojump_data.py", "bin/autojump_utils.py" if build.head?
+ man1.install "docs/autojump.1"
+ (prefix/"etc").install "bin/autojump.sh", "bin/autojump.bash", "bin/autojump.zsh"
+ zsh_completion.install "bin/_j"
+ (prefix/"etc").install "bin/autojump.fish"
+
+ bin.write_exec_script libexec+"autojump"
end
def caveats;