New version of hub has an install rake task

This commit is contained in:
Joshua Peek 2009-12-11 10:50:15 -06:00
parent b2df608d27
commit 3f691f9adb

View file

@ -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