Skip to content

Loading…

New Formula: GWT (Google Web Toolkit) #15454

Closed
wants to merge 1 commit into from

2 participants

@roguePanda

Add GWT (Google Web Toolkit) formula. I used GWT for the formula because it's the more commonly used name (the SDK download is gwt-{version}.zip).

@adamv adamv added a commit that closed this pull request
@roguePanda roguePanda GWT 2.5.0
Closes #15454.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2361328
@adamv adamv closed this in 2361328
@asharpe asharpe pushed a commit that referenced this pull request
@roguePanda roguePanda GWT 2.5.0
Closes #15454.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
355c50c
@norioxkimura norioxkimura added a commit to norioxkimura/homebrew that referenced this pull request
@roguePanda roguePanda GWT 2.5.0
Closes #15454.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
eeaa32d
@cooljeanius cooljeanius referenced this pull request
Commit has since been removed from the repository and is no longer available.
@rajeeja rajeeja pushed a commit that referenced this pull request
@roguePanda roguePanda GWT 2.5.0
Closes #15454.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
1118036
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 14, 2012
  1. @roguePanda
This page is out of date. Refresh to see the latest.
Showing with 44 additions and 0 deletions.
  1. +44 −0 Library/Formula/gwt.rb
View
44 Library/Formula/gwt.rb
@@ -0,0 +1,44 @@
+require 'formula'
+
+# Installs Google Web Toolkit.
+
+class Gwt < Formula
+ homepage 'https://developers.google.com/web-toolkit/'
+ url 'http://google-web-toolkit.googlecode.com/files/gwt-2.5.0.rc2.zip'
+ version '2.5.0-rc2'
+ sha1 '9a9d0f16c9fda7ffebc04016aa3c735e1057b0e8'
+
+ def install
+ # The SDK zip contains everything pre-built.
+
+ 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
Something went wrong with that request. Please try again.