hub formula
This commit is contained in:
parent
6f5b324fad
commit
87ef75bc24
1 changed files with 25 additions and 0 deletions
25
Formula/hub.rb
Normal file
25
Formula/hub.rb
Normal file
|
@ -0,0 +1,25 @@
|
|||
require 'formula'
|
||||
|
||||
class Hub <Formula
|
||||
head 'git://github.com/defunkt/hub.git', :tag => 'v0.1.2'
|
||||
homepage 'http://github.com/defunkt/hub'
|
||||
|
||||
def initialize(*args)
|
||||
super
|
||||
|
||||
# Force version instead of HEAD
|
||||
@version = '0.1.2'
|
||||
end
|
||||
|
||||
def install
|
||||
# standalone task runs tests which fail
|
||||
# system 'rake standalone'
|
||||
system %(ruby -Ilib -rhub -e "Hub::Standalone.save('hub')")
|
||||
FileUtils.mkdir_p "#{prefix}/bin"
|
||||
FileUtils.cp 'hub', "#{prefix}/bin/hub"
|
||||
|
||||
system 'rake man'
|
||||
FileUtils.mkdir_p "#{prefix}/share/man/man1"
|
||||
FileUtils.cp 'man/hub.1', "#{prefix}/share/man/man1"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue