/
groovy@2.4.3.rb
39 lines (31 loc) · 1.11 KB
/
groovy@2.4.3.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class GroovyAT243 < Formula
desc "Java-based scripting language"
homepage "http://www.groovy-lang.org"
url "https://dl.bintray.com/groovy/maven/groovy-binary-2.4.3.zip"
sha256 "b0c11d2ca5003956f1393138282a6e802af8c0033c5afdc8dc3af1e512e1dbe1"
option "with-invokedynamic", "Install the InvokeDynamic version of Groovy (only works with Java 1.7+)"
deprecated_option "invokedynamic" => "with-invokedynamic"
conflicts_with "groovysdk", :because => "both install the same binaries"
def install
# Don't need Windows files.
rm_f Dir["bin/*.bat"]
if build.with? "invokedynamic"
Dir.glob("indy/*.jar") do |src_path|
dst_file = File.basename(src_path, "-indy.jar") + ".jar"
dst_path = File.join("lib", dst_file)
mv src_path, dst_path
end
end
libexec.install %w[bin conf lib embeddable]
bin.install_symlink Dir["#{libexec}/bin/*"]
end
def caveats
<<-EOS.undent
You should set GROOVY_HOME:
export GROOVY_HOME=#{opt_libexec}
EOS
end
test do
system "#{bin}/grape", "install", "org.activiti", "activiti-engine", "5.16.4"
end
end