termshare 0.2.0

This commit is contained in:
hydrajump 2014-05-02 02:05:04 +02:00 committed by Adam Vandenberg
parent 311e19979e
commit 0d0898ff33

30
Formula/termshare.rb Normal file
View file

@ -0,0 +1,30 @@
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"
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