aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAnatol Pomozov2011-09-14 14:34:41 -0700
committerCharlie Sharpsteen2011-09-21 22:17:43 -0700
commitb529ff068973aa3446680bc020f4056c0af8fb2c (patch)
tree8c070e5a75c735fc5e34f4f1019233d678e35733 /Library/Formula
parent7831ef9c61e374528b95904a517bda4bbaf4f746 (diff)
downloadhomebrew-b529ff068973aa3446680bc020f4056c0af8fb2c.tar.bz2
New Formula: Tup
Tup is a build tool that fills a role similar to make---except much more efficient for large source trees. Closes #7636. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/tup.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/tup.rb b/Library/Formula/tup.rb
new file mode 100644
index 000000000..f26cd8120
--- /dev/null
+++ b/Library/Formula/tup.rb
@@ -0,0 +1,34 @@
+require 'formula'
+
+class Tup < Formula
+ homepage 'http://gittup.org/tup/'
+ head 'https://github.com/gittup/tup.git'
+ url 'https://github.com/gittup/tup.git', :tag => 'v0.4.1'
+ version '0.4.1'
+
+ 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. Pleas 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'
+ man1.install 'tup.1'
+ end
+
+ def test
+ system "tup -v"
+ end
+end