mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 04:59:47 -05:00
hub: add test and use new rake function.
This commit is contained in:
1 parent
2e3f8a0ddc
commit
2ef43eddf8
1 file changed
+4
-10
+4
-10
@@ -4,23 +4,17 @@ class Hub < Formula
|
||||
homepage 'http://defunkt.io/hub/'
|
||||
url 'https://github.com/defunkt/hub/tarball/v1.10.4'
|
||||
sha1 'b43f69f20563cb779d77a6beaf773bad8c49ad4c'
|
||||
|
||||
head 'https://github.com/defunkt/hub.git'
|
||||
|
||||
def install
|
||||
system "rake", "install", "prefix=#{prefix}"
|
||||
rake "install", "prefix=#{prefix}"
|
||||
bash_completion.install 'etc/hub.bash_completion.sh'
|
||||
zsh_completion.install 'etc/hub.zsh_completion' => '_hub'
|
||||
end
|
||||
|
||||
def rake_bin
|
||||
require 'rbconfig'
|
||||
ruby_rake = File.join RbConfig::CONFIG['bindir'], 'rake'
|
||||
|
||||
if File.exist? ruby_rake
|
||||
ruby_rake
|
||||
else
|
||||
'/usr/bin/rake'
|
||||
test do
|
||||
HOMEBREW_REPOSITORY.cd do
|
||||
`#{bin}/hub ls-files -- bin`.chomp == 'bin/brew'
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user