323e65f1a9
Closes #12649. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
39 lines
1.3 KiB
Ruby
39 lines
1.3 KiB
Ruby
class Gcsfuse < Formula
|
|
desc "User-space file system for interacting with Google Cloud"
|
|
homepage "https://github.com/googlecloudplatform/gcsfuse"
|
|
url "https://github.com/GoogleCloudPlatform/gcsfuse/archive/v0.21.0.tar.gz"
|
|
sha256 "e379abf9e6ce1f9f522c03a86407803e2799b8d8abdbdb6396ba2c447655c0d7"
|
|
head "https://github.com/GoogleCloudPlatform/gcsfuse.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "d30b6dc67105bccc275b1e76f366f14ecdffa9925ad8e0666e8ec12e1aa5c567" => :sierra
|
|
sha256 "60c67924171752200d7a82119069e0ee7b33f770fb5d020cb3629b0524e3c479" => :el_capitan
|
|
sha256 "d1b059510b0a0be2ef91e72c21fa65b7ffcde25def7d1bc7693c53bae58c1fe2" => :yosemite
|
|
end
|
|
|
|
depends_on :osxfuse
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
# Build the build_gcsfuse tool. Ensure that it doesn't pick up any
|
|
# libraries from the user's GOPATH; it should have no dependencies.
|
|
ENV.delete("GOPATH")
|
|
system "go", "build", "./tools/build_gcsfuse"
|
|
|
|
# Use that tool to build gcsfuse itself.
|
|
if build.head?
|
|
gcsfuse_version = `git rev-parse --short HEAD`.strip
|
|
else
|
|
gcsfuse_version = version
|
|
end
|
|
|
|
system "./build_gcsfuse", buildpath, prefix, gcsfuse_version
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/gcsfuse", "--help"
|
|
system "#{sbin}/mount_gcsfuse", "--help"
|
|
end
|
|
end
|