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-09-22 11:31:48 +00:00
|
|
|
url 'http://googleappengine.googlecode.com/files/appengine-java-sdk-1.7.2.zip'
|
|
|
|
sha1 '5adcecb9c76937de5afeb3cf1fe17a6cce24f130'
|
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
|