blob: c2f741ccdf7066d35693c47431df5db848080554 (
plain)
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
|
require "formula"
class Uru < Formula
homepage "https://bitbucket.org/jonforums/uru"
url "https://bitbucket.org/jonforums/uru/get/v0.7.4.tar.gz"
sha1 "24b91db240e324d2738ad1f19079aed41b9cfdbf"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/bitbucket.org/jonforums/uru").install Dir["*"]
system "go", "build", "-ldflags", "-s", "bitbucket.org/jonforums/uru"
bin.install "uru" => "uru_rt"
end
def caveats; <<-EOS.undent
Append to ~/.profile on Ubuntu, or to ~/.zshrc on Zsh
$ echo 'eval "$(uru_rt admin install)"' >> ~/.bash_profile
EOS
end
test do
system "#{bin}/uru_rt"
end
end
|