homebrew-core/Formula/termshare.rb
BrewTestBot becf794f46 termshare: add 0.2.0 bottle.
Closes Homebrew/homebrew#28899.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-06-21 10:03:24 -07:00

36 lines
975 B
Ruby

require "formula"
class Termshare < Formula
homepage "https://termsha.re"
url "https://github.com/progrium/termshare/archive/v0.2.0.tar.gz"
sha1 "8da6f60cbcab9eee68fe9483f23338a0ca1ec196"
head "https://github.com/progrium/termshare.git"
bottle do
sha1 "1189a998e33951ea6c5a4577b92d5b9090c1d2fe" => :mavericks
sha1 "765981eef07f07a947cb31a4eaa17962ae945b21" => :mountain_lion
sha1 "a7f5387d0e3595912dc45bd6f74811b2c4431d45" => :lion
end
depends_on "go" => :build
depends_on :hg => :build
def install
ENV["GOPATH"] = buildpath
# Install Go dependencies
system "go", "get", "code.google.com/p/go.net/websocket"
system "go", "get", "github.com/heroku/hk/term"
system "go", "get", "github.com/kr/pty"
system "go", "get", "github.com/nu7hatch/gouuid"
# Build and install termshare
system "go", "build", "-o", "termshare"
bin.install "termshare"
end
test do
system "#{bin}/termshare", "-v"
end
end