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).
This commit is contained in:
parent
53fcec6428
commit
8ffbfc764c
1 changed files with 23 additions and 0 deletions
23
Formula/yeti.rb
Normal file
23
Formula/yeti.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
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 $@
|
Loading…
Reference in a new issue