aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Ortiz2015-04-18 23:31:19 -0500
committerMike McQuaid2015-04-20 10:04:41 +0100
commit83540f434c491af04c7ccd7345cb74c8c64ef618 (patch)
tree9c7f200029386824ecb1b29348df8802a5e74cc8
parent84feef506323bd100db2b4944636f6d5a94789b4 (diff)
downloadhomebrew-83540f434c491af04c7ccd7345cb74c8c64ef618.tar.bz2
gdrive 1.6.1
Add gdrive 1.6.1 Closes #38806. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/gdrive.rb52
1 files changed, 52 insertions, 0 deletions
diff --git a/Library/Formula/gdrive.rb b/Library/Formula/gdrive.rb
new file mode 100644
index 000000000..e39c32e79
--- /dev/null
+++ b/Library/Formula/gdrive.rb
@@ -0,0 +1,52 @@
+require "language/go"
+
+class Gdrive < Formula
+ homepage "https://github.com/prasmussen/gdrive"
+ url "https://github.com/prasmussen/gdrive/archive/1.6.1.tar.gz"
+ sha256 "50d5851c6f6cfa52713c001dae03a2c189ee3d9a255e8bf58ce8d4dadab5b9fc"
+
+ head "https://github.com/prasmussen/gdrive.git"
+
+ depends_on :hg => :build
+ depends_on "go" => :build
+
+ go_resource "code.google.com/p/goauth2" do
+ url "https://code.google.com/p/goauth2/", :revision => "afe77d958c70", :using => :hg
+ end
+
+ go_resource "github.com/prasmussen/gdrive" do
+ url "https://github.com/prasmussen/gdrive.git", :revision => "24950968ecea619378a36edff78e46fee0eb3a43"
+ end
+
+ go_resource "github.com/prasmussen/google-api-go-client" do
+ url "https://github.com/prasmussen/google-api-go-client.git", :revision => "01eb774ccc14e64c3c950e85afd84a8b48b2ac1e"
+ end
+
+ go_resource "github.com/voxelbrain/goptions" do
+ url "https://github.com/voxelbrain/goptions.git", :revision => "68583de33d9209ba795a0a334dad27418e4c18f5"
+ end
+
+ go_resource "google.golang.org/api" do
+ url "https://github.com/prasmussen/google-api-go-client.git", :revision => "01eb774ccc14e64c3c950e85afd84a8b48b2ac1e"
+ end
+
+ go_resource "golang.org/x/net" do
+ url "https://github.com/golang/net.git", :revision => "84ba27dd5b2d8135e9da1395277f2c9333a2ffda"
+ end
+
+ def install
+ mkdir_p "#{buildpath}/src/github.com/prasmussen/"
+ ln_s buildpath, "#{buildpath}/src/github.com/prasmussen/gdrive"
+
+ ENV["GOPATH"] = buildpath
+ ENV.append_path "PATH", "#{ENV["GOPATH"]}/bin"
+
+ Language::Go.stage_deps resources, buildpath/"src"
+ system "go", "build", "drive.go"
+ bin.install "drive"
+ end
+
+ test do
+ system "#{bin}/drive", "--help"
+ end
+end