homebrew-core/Formula/app-engine-java-sdk.rb
Leroy Campbell 371fefa4b7 Updated appengine-java-sdk to v1.4.0
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-12-08 18:48:42 +00:00

24 lines
559 B
Ruby

require 'formula'
class AppEngineJavaSdk <Formula
url 'http://googleappengine.googlecode.com/files/appengine-java-sdk-1.4.0.zip'
homepage 'http://code.google.com/appengine/docs/java/overview.html'
sha1 '92c9af1a4df16a1de1f3606484b38a7d09060b4b'
def shim_script target
<<-EOS.undent
#!/bin/bash
#{libexec}/bin/#{target} $*
EOS
end
def install
rm Dir['bin/*.cmd']
libexec.install Dir['*']
Dir["#{libexec}/bin/*"].each do |b|
n = Pathname.new(b).basename
(bin+n).write shim_script(n)
end
end
end