diff options
| author | Romain Lespinasse | 2014-08-24 21:08:42 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-25 09:23:57 +0100 |
| commit | 817e24035767f70f63f518de754ed2c0e70f26d8 (patch) | |
| tree | af5b4287380d68a84aecde4e164ee0adde536636 | |
| parent | 88f1c5be10e4cdc5952968ef67360289be711f7d (diff) | |
| download | homebrew-817e24035767f70f63f518de754ed2c0e70f26d8.tar.bz2 | |
golo 1.0.0 (new formula)
[release notes](http://golo-lang.org/news/2014/07/09/golo-1.0.0/)
Closes #30789.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/golo.rb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Library/Formula/golo.rb b/Library/Formula/golo.rb new file mode 100644 index 000000000..dfc418666 --- /dev/null +++ b/Library/Formula/golo.rb @@ -0,0 +1,37 @@ +require "formula" + +class Golo < Formula + homepage "http://golo-lang.org" + url "http://search.maven.org/remotecontent?filepath=org/golo-lang/golo/1.0.0/golo-1.0.0-distribution.tar.gz" + sha1 "ee7492bf2e3aa63140ad4f4abece100bb6dbf4ad" + + head do + url "https://github.com/golo-lang/golo-lang.git" + depends_on "maven" + 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 |
