2014-03-15 20:07:41 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Ngrok < Formula
|
|
|
|
homepage "https://ngrok.com"
|
|
|
|
head "https://github.com/inconshreveable/ngrok.git", :branch => "master"
|
2014-08-05 05:07:57 +00:00
|
|
|
url "https://github.com/inconshreveable/ngrok/archive/1.7.tar.gz"
|
|
|
|
sha1 "4a6baf98a23193c21d7732c6573f53dbbede5033"
|
2014-03-15 20:07:41 +00:00
|
|
|
|
2014-03-16 08:33:51 +00:00
|
|
|
bottle do
|
2014-08-05 05:17:19 +00:00
|
|
|
sha1 "71920267073415ccc1ea1305bac6ce51e00d4833" => :mavericks
|
|
|
|
sha1 "e0a622225d38ee57652b84eaffbca95ab43c3ce2" => :mountain_lion
|
|
|
|
sha1 "60b7a16a28265e6e9a9adbac44b3c5069a802d34" => :lion
|
2014-03-16 08:33:51 +00:00
|
|
|
end
|
|
|
|
|
2014-03-15 20:07:41 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
depends_on :hg => :build
|
|
|
|
|
|
|
|
def install
|
2014-08-05 05:07:57 +00:00
|
|
|
ENV.j1
|
2014-03-15 20:07:41 +00:00
|
|
|
system "make", "release-client"
|
|
|
|
bin.install "bin/ngrok"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/ngrok", "version"
|
|
|
|
end
|
|
|
|
end
|