homebrew-core/Formula/golo.rb
Romain Lespinasse 68b2a22f58 golo 2.0.0
Update golo to version 2.0.0

release notes : http://golo-lang.org/news/2015/01/20/golo-2.0.0/

Closes Homebrew/homebrew#36075.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-20 21:49:49 +01:00

37 lines
1.1 KiB
Ruby

require "formula"
class Golo < Formula
homepage "http://golo-lang.org"
url "http://search.maven.org/remotecontent?filepath=org/golo-lang/golo/2.0.0/golo-2.0.0-distribution.tar.gz"
sha1 "8d9f8433518885b5d8aa0015b19c230fd425d3da"
head do
url "https://github.com/golo-lang/golo-lang.git"
depends_on "maven" => :build
end
depends_on :java => "1.7"
def install
if build.head?
rake "special:bootstrap"
libexec.install %w(target/appassembler/bin target/appassembler/lib)
else
libexec.install %w(bin doc lib)
end
libexec.install %w(share samples)
rm_f Dir["#{libexec}/bin/*.bat"]
bin.install_symlink Dir["#{libexec}/bin/*"]
bash_completion.install "#{libexec}/share/shell-completion/golo-bash-completion"
zsh_completion.install "#{libexec}/share/shell-completion/golo-zsh-completion" => "_golo"
cp "#{bash_completion}/golo-bash-completion", zsh_completion
end
def caveats
if ENV["SHELL"].include? "zsh"; <<-EOS.undent
For ZSH users, please add "golo" in yours plugins in ".zshrc"
EOS
end
end
end