2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-18 21:43:20 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class AppEngineJavaSdk < Formula
|
2010-05-05 18:48:56 +00:00
|
|
|
homepage 'http://code.google.com/appengine/docs/java/overview.html'
|
2012-03-03 12:54:15 +00:00
|
|
|
url 'http://googleappengine.googlecode.com/files/appengine-java-sdk-1.6.3.1.zip'
|
|
|
|
sha1 '88371b07c405826117fee6ae014c353cb09e24e0'
|
2010-05-05 18:48:56 +00:00
|
|
|
|
|
|
|
def shim_script target
|
|
|
|
<<-EOS.undent
|
2010-04-07 05:58:35 +00:00
|
|
|
#!/bin/bash
|
2012-02-11 23:41:37 +00:00
|
|
|
"#{libexec}/bin/#{target}" "$@"
|
2010-05-05 18:48:56 +00:00
|
|
|
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
|