aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorhydrajump2014-05-02 02:05:04 +0200
committerAdam Vandenberg2014-06-21 10:03:16 -0700
commite32aa0a05d8865f375019fdd78abcdba45c84e92 (patch)
treef24aac2f781ceeef113163738e39e0eb2add03be /Library
parent531080a9bb65e4b96479510949982571a7db0af4 (diff)
downloadhomebrew-e32aa0a05d8865f375019fdd78abcdba45c84e92.tar.bz2
termshare 0.2.0
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/termshare.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/termshare.rb b/Library/Formula/termshare.rb
new file mode 100644
index 000000000..840f97924
--- /dev/null
+++ b/Library/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