aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBen Navetta2012-10-14 16:33:26 -0400
committerAdam Vandenberg2013-01-17 12:05:16 -0800
commit2361328f28c786fd91d7433386547422856cc6a3 (patch)
tree1acdfb1ce3f17168c738d83355f86ecd804c2824 /Library
parent6319cb1c28fe84f8aecd74e8bddff016829b0330 (diff)
downloadhomebrew-2361328f28c786fd91d7433386547422856cc6a3.tar.bz2
GWT 2.5.0
Closes #15454. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gwt.rb39
1 files changed, 39 insertions, 0 deletions
diff --git a/Library/Formula/gwt.rb b/Library/Formula/gwt.rb
new file mode 100644
index 000000000..de925f619
--- /dev/null
+++ b/Library/Formula/gwt.rb
@@ -0,0 +1,39 @@
+require 'formula'
+
+class Gwt < Formula
+ homepage 'https://developers.google.com/web-toolkit/'
+ url 'http://google-web-toolkit.googlecode.com/files/gwt-2.5.0.zip'
+ sha1 '59f04f2002a26451d83f8c82044c14d076059ee3'
+
+ def install
+ rm Dir['*.cmd'] # remove Windows cmd files
+ share.install Dir['*']
+
+ # Don't use the GWT scripts because they expect the GWT jars to
+ # be in the same place as the script.
+ (bin/'webAppCreator').write <<-EOS.undent
+ #!/bin/sh
+ HOMEDIR=#{share}
+ java -cp "$HOMEDIR/gwt-user.jar:$HOMEDIR/gwt-dev.jar" com.google.gwt.user.tools.WebAppCreator "$@";
+ EOS
+
+ (bin/'benchmarkViewer').write <<-EOS.undent
+ #!/bin/sh
+ APPDIR=#{share}
+ java -Dcom.google.gwt.junit.reportPath="$1" -cp "$APPDIR/gwt-dev.jar" com.google.gwt.dev.RunWebApp -port auto $APPDIR/gwt-benchmark-viewer.war;
+ EOS
+
+ (bin/'i18nCreator').write <<-EOS.undent
+ #!/bin/sh
+ HOMEDIR=#{share}
+ java -cp "$HOMEDIR/gwt-user.jar:$HOMEDIR/gwt-dev.jar" com.google.gwt.i18n.tools.I18NCreator "$@";
+ EOS
+
+ end
+
+ def caveats
+ <<-EOS.undent
+ The GWT jars are available at #{share}
+ EOS
+ end
+end