From 0d0898ff33ce4e94624354fd192218b2e0543d04 Mon Sep 17 00:00:00 2001 From: hydrajump Date: Fri, 2 May 2014 02:05:04 +0200 Subject: [PATCH] termshare 0.2.0 --- Formula/termshare.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/termshare.rb diff --git a/Formula/termshare.rb b/Formula/termshare.rb new file mode 100644 index 0000000000..840f979244 --- /dev/null +++ b/Formula/termshare.rb @@ -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