PageRenderTime 50ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/uru.rb

https://bitbucket.org/JoshHagins/homebrew
Ruby | 32 lines | 26 code | 6 blank | 0 comment | 0 complexity | 940ea1a5b54f297c832b69ccafbd1297 MD5 | raw file
  1. require "formula"
  2. class Uru < Formula
  3. homepage "https://bitbucket.org/jonforums/uru"
  4. url "https://bitbucket.org/jonforums/uru/get/v0.7.6.tar.gz"
  5. sha1 "c1618f861c94318004cdede66946f31436b410e7"
  6. bottle do
  7. sha1 "9476d70ca74e2074129067a8b820065ec7e7a86b" => :yosemite
  8. sha1 "61e905c6a60df009190c87afb830536e53419cdd" => :mavericks
  9. sha1 "6353400d611ed746f6f232a86c8ba8a18e89a06a" => :mountain_lion
  10. end
  11. depends_on "go" => :build
  12. def install
  13. ENV["GOPATH"] = buildpath
  14. (buildpath/"src/bitbucket.org/jonforums/uru").install Dir["*"]
  15. system "go", "build", "-ldflags", "-s", "bitbucket.org/jonforums/uru"
  16. bin.install "uru" => "uru_rt"
  17. end
  18. def caveats; <<-EOS.undent
  19. Append to ~/.profile on Ubuntu, or to ~/.zshrc on Zsh
  20. $ echo 'eval "$(uru_rt admin install)"' >> ~/.bash_profile
  21. EOS
  22. end
  23. test do
  24. system "#{bin}/uru_rt"
  25. end
  26. end