2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-18 21:43:20 +00:00
|
|
|
|
|
|
|
class AppEngineJavaSdk <Formula
|
2010-05-05 18:48:56 +00:00
|
|
|
url 'http://googleappengine.googlecode.com/files/appengine-java-sdk-1.3.3.1.zip'
|
|
|
|
homepage 'http://code.google.com/appengine/docs/java/overview.html'
|
|
|
|
sha1 '679779193bd6760d356ff6790f31b77af7109e69'
|
|
|
|
|
|
|
|
def shim_script target
|
|
|
|
<<-EOS.undent
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
cd #{libexec}/bin
|
|
|
|
./#{target} $*
|
|
|
|
EOS
|
|
|
|
end
|
2009-09-18 21:43:20 +00:00
|
|
|
|
|
|
|
def install
|
2010-05-05 18:48:56 +00:00
|
|
|
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
|
2009-09-18 21:43:20 +00:00
|
|
|
end
|
|
|
|
end
|