f3f5e95dd5
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
24 lines
557 B
Ruby
24 lines
557 B
Ruby
require 'formula'
|
|
|
|
class AppEngineJavaSdk <Formula
|
|
url 'http://googleappengine.googlecode.com/files/google_appengine_1.4.2.zip'
|
|
homepage 'http://code.google.com/appengine/docs/java/overview.html'
|
|
sha1 '132d50710b1337169981cd78914d36df29aea722'
|
|
|
|
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
|