aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-02-11 13:59:45 -0600
committerJack Nagel2012-02-11 14:02:28 -0600
commit0e9554bf71b268f5ce7cde9cb6087986cf2d1eec (patch)
tree0c7b4c5c57d32118613fd3519ec548728dfa653b /Library/Formula
parent4bc41c10e00ea929630743a5594d641597fddd01 (diff)
downloadhomebrew-0e9554bf71b268f5ce7cde9cb6087986cf2d1eec.tar.bz2
git-now: install zsh completion by default
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/git-now.rb17
1 files changed, 5 insertions, 12 deletions
diff --git a/Library/Formula/git-now.rb b/Library/Formula/git-now.rb
index e12ac5f70..76a072944 100644
--- a/Library/Formula/git-now.rb
+++ b/Library/Formula/git-now.rb
@@ -1,35 +1,28 @@
require 'formula'
class GitNow < Formula
+ homepage 'https://github.com/iwata/git-now'
url 'https://github.com/iwata/git-now.git', :tag => 'v0.1.0.9'
version '0.1.0.9'
+
head 'https://github.com/iwata/git-now.git', :branch => 'develop'
- homepage 'https://github.com/iwata/git-now'
depends_on 'gnu-getopt'
- def options
- [['--zsh-completion', "Install zsh completions."]]
- end
-
def patches
DATA
end
def install
system "make", "prefix=#{prefix}", "install"
- if ARGV.include? '--zsh-completion'
- zsh_functions_d = share + 'zsh/functions'
- zsh_functions_d.install "etc/_git-now"
- end
+ (share+'zsh/functions').install 'etc/_git-now'
end
- def caveats; <<-EOS
- If `--zsh-completion` is specified, zsh completions are installed to:
+ def caveats; <<-EOS.undent
+ Zsh completion has been installed to:
#{share}/zsh/functions
EOS
end
-
end
# This patch makes sure GNUtools are used on OSX.