aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAnatol Pomozov2012-03-23 13:50:49 -0700
committerAdam Vandenberg2012-03-25 16:59:49 -0700
commit4a617cf47c08c07628732366a3436b3774f0d5ca (patch)
tree4457fe34d4589309c8aba6ece0b1962ba2963bbe /Library
parent6e06ddf7d480c856a27dd2f23efae9f34b538aa3 (diff)
downloadhomebrew-4a617cf47c08c07628732366a3436b3774f0d5ca.tar.bz2
tup 0.6
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tup.rb30
1 files changed, 12 insertions, 18 deletions
diff --git a/Library/Formula/tup.rb b/Library/Formula/tup.rb
index 2b38e1d43..1d2337600 100644
--- a/Library/Formula/tup.rb
+++ b/Library/Formula/tup.rb
@@ -2,33 +2,27 @@ require 'formula'
class Tup < Formula
homepage 'http://gittup.org/tup/'
+ url 'https://github.com/gittup/tup/tarball/v0.6'
+ md5 '335ab8f5348955b4bfe2c8e7b22df4c7'
head 'https://github.com/gittup/tup.git'
- url 'https://github.com/gittup/tup.git', :tag => 'v0.5'
- version '0.5'
depends_on 'pkg-config' => :build
depends_on 'fuse4x'
def install
- if `kextfind -b org.fuse4x.kext.fuse4x`.chomp.empty?
- onoe <<-EOS.undent
- Tup requires the fuse4x kernel extension to be loadable in order to
- build. Please follow the directions givein by `brew info fuse4x-kext`
- and try again!
- EOS
- exit 1
- end
-
- # Tup hard-wires CC to clang on OS X.
- inreplace ['bootstrap.sh', 'macosx.tup'], /^([ \t]*CC[ \t]*=[ \t]*).*$/, "\\1#{ENV.cc}"
- inreplace 'Tupfile', '`git describe`', version
-
- system "./bootstrap.sh"
- bin.install 'tup'
+ ENV['TUP_LABEL'] = version
+ system "./build.sh"
+ bin.install 'build/tup'
man1.install 'tup.1'
end
def test
- system "tup -v"
+ system "#{bin}/tup -v"
+ end
+
+ def caveats; <<-EOS.undent
+ Make sure to follow the directions given by `brew info fuse4x-kext`
+ before using 'tup' build tool.
+ EOS
end
end