aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJoshua Peek2009-12-11 10:13:57 -0600
committerJoshua Peek2009-12-11 10:13:57 -0600
commit707fc0c2cc4f849c65b3a9353cb1892522cba099 (patch)
treece2c0420d6d65c6c1474ae42505b88eafbc64f51 /Library/Formula
parentb2fd885493e38318d28bd495c27edacdef0c2caf (diff)
downloadhomebrew-707fc0c2cc4f849c65b3a9353cb1892522cba099.tar.bz2
hub formula
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hub.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/hub.rb b/Library/Formula/hub.rb
new file mode 100644
index 000000000..028fa7952
--- /dev/null
+++ b/Library/Formula/hub.rb
@@ -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