2011-09-14 21:34:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Tup < Formula
|
|
|
|
homepage 'http://gittup.org/tup/'
|
2014-01-15 01:42:58 +00:00
|
|
|
url 'https://github.com/gittup/tup/archive/v0.7.1.tar.gz'
|
|
|
|
sha1 'a0ce259ce74321d2c103e63dffbf9703b7392e16'
|
2011-09-14 21:34:41 +00:00
|
|
|
head 'https://github.com/gittup/tup.git'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-10-30 20:39:07 +00:00
|
|
|
depends_on 'osxfuse'
|
2011-09-14 21:34:41 +00:00
|
|
|
|
|
|
|
def install
|
2012-03-23 20:50:49 +00:00
|
|
|
ENV['TUP_LABEL'] = version
|
|
|
|
system "./build.sh"
|
|
|
|
bin.install 'build/tup'
|
2011-09-14 21:34:41 +00:00
|
|
|
man1.install 'tup.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/tup", "-v"
|
2012-03-23 20:50:49 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2013-10-30 20:39:07 +00:00
|
|
|
Make sure to follow the directions given by `brew info osxfuse`
|
2012-03-23 20:50:49 +00:00
|
|
|
before using 'tup' build tool.
|
|
|
|
EOS
|
2011-09-14 21:34:41 +00:00
|
|
|
end
|
|
|
|
end
|