aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/groovysdk.rb
blob: d86f5ddf39809166524b89aab67eaf09c881e262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require "formula"

class Groovysdk < Formula
  homepage "http://groovy.codehaus.org/"
  url "http://dl.bintray.com/groovy/maven/groovy-sdk-2.4.0.zip"
  sha1 "b6f4bdb48c306e8d47a552f835fd56fb6010e941"

  def install
    ENV["GROOVY_HOME"] = libexec

    # We don't need Windows' files.
    rm_f Dir["bin/*.bat"]

    prefix.install_metafiles
    bin.install Dir["bin/*"]
    libexec.install %w(conf lib embeddable src doc)
    bin.env_script_all_files(libexec+"bin", :GROOVY_HOME => ENV["GROOVY_HOME"])
  end

  test do
    system "#{bin}/grape", "install", "org.activiti", "activiti-engine", "5.16.4"
  end
end