Files
tigerbrew/Library/Formula/yeti.rb
T
Jason Baker 90b6d21be7 Add Yeti formula
Signed-Off-By: Max Howell <max@methylblue.com>

The chmod is unrequired, Homebrew does that for you.

Also used full paths to ant as we prefer to be sure about which version of tools we are using.

Fix the yeti script, as write doesn't eval DATA.read by default, and I think
possibly it would be a bad idea, unless we only do it when DATA is passed (not DATA.read as we can't detect that).
2009-12-19 15:04:15 +00:00

24 lines
418 B
Ruby

require 'formula'
class Yeti <Formula
homepage 'http://mth.github.com/yeti/'
md5 'd11756e552d0a15a007ed3403d0d86e1'
head 'git://github.com/mth/yeti.git'
version 'HEAD'
JAR = 'yeti.jar'
def install
system '/usr/bin/ant'
system '/usr/bin/ant jar'
prefix.install JAR
(bin+'yeti').write(eval('"'+DATA.read+'"'))
end
end
__END__
#!/bin/sh
YETI=#{prefix}/#{JAR}
java -server -jar $YETI $@