New version of hub has an install rake task
This commit is contained in:
parent
b2df608d27
commit
3f691f9adb
1 changed files with 3 additions and 9 deletions
|
@ -1,23 +1,17 @@
|
|||
require 'formula'
|
||||
|
||||
class Hub <Formula
|
||||
head 'git://github.com/defunkt/hub.git', :tag => 'v0.1.2'
|
||||
head 'git://github.com/defunkt/hub.git', :tag => 'v0.1.3'
|
||||
homepage 'http://github.com/defunkt/hub'
|
||||
|
||||
def initialize(*args)
|
||||
super
|
||||
|
||||
# Force version instead of HEAD
|
||||
@version = '0.1.2'
|
||||
@version = '0.1.3'
|
||||
end
|
||||
|
||||
def install
|
||||
# standalone task runs tests which fail
|
||||
# system 'rake standalone'
|
||||
system %(ruby -Ilib -rhub -e "Hub::Standalone.save('hub')")
|
||||
system 'rake man'
|
||||
|
||||
bin.install 'hub'
|
||||
man1.install 'man/hub.1'
|
||||
system "rake install prefix=#{prefix}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue