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-08-21 23:04:17 +00:00
|
|
|
url 'http://googleappengine.googlecode.com/files/appengine-java-sdk-1.7.1.zip'
|
|
|
|
sha1 'c4edbf1424dba30648ff815442c5e2bf6f1637b5'
|
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
|