32 lines
975 B
Ruby
32 lines
975 B
Ruby
class Gwt < Formula
|
|
desc "Google web toolkit"
|
|
homepage "http://www.gwtproject.org/"
|
|
url "https://github.com/gwtproject/gwt/releases/download/2.10.0/gwt-2.10.0.zip"
|
|
sha256 "3be5fe11c27e8fd5a513eff8b14c2f26999faf4b991a8ad428f1916a36884427"
|
|
license "Apache-2.0"
|
|
|
|
livecheck do
|
|
url "https://github.com/gwtproject/gwt.git"
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "0ac6c7ae2e25587312f417cb5b0acfd8837a676ab63f70d77def1549cb280187"
|
|
end
|
|
|
|
depends_on "openjdk"
|
|
|
|
def install
|
|
rm Dir["*.cmd"] # remove Windows cmd files
|
|
libexec.install Dir["*"]
|
|
|
|
(bin/"i18nCreator").write_env_script libexec/"i18nCreator", Language::Java.overridable_java_home_env
|
|
(bin/"webAppCreator").write_env_script libexec/"webAppCreator", Language::Java.overridable_java_home_env
|
|
end
|
|
|
|
test do
|
|
system bin/"webAppCreator", "sh.brew.test"
|
|
assert_predicate testpath/"src/sh/brew/test.gwt.xml", :exist?
|
|
end
|
|
end
|