2017-03-19 18:34:19 +00:00
|
|
|
require "language/go"
|
|
|
|
|
|
|
|
class Goofys < Formula
|
|
|
|
desc "Filey-System interface to Amazon S3"
|
|
|
|
homepage "https://github.com/kahing/goofys"
|
|
|
|
url "https://github.com/kahing/goofys.git",
|
2017-05-02 13:56:05 +00:00
|
|
|
:tag => "v0.0.10",
|
|
|
|
:revision => "6b1426ffa4010f35997d943de13c7dd2d03cf217"
|
2017-03-19 18:34:19 +00:00
|
|
|
|
|
|
|
head "https://github.com/kahing/goofys.git"
|
|
|
|
|
2017-04-19 13:11:58 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-05-02 14:01:52 +00:00
|
|
|
sha256 "ddafa269456b20fa12bab697cb54dab3590e8c37668e96d26dacffbd0f5d98c3" => :sierra
|
|
|
|
sha256 "5be7566385a86b295d121e721e3f2e6e9629d44e4a404f3a968dbe46553ee59f" => :el_capitan
|
|
|
|
sha256 "6680d49d0784ecba64ab26daf251651cc8548611bdbeedd6bd5b80e9cf82cd56" => :yosemite
|
2017-04-19 13:11:58 +00:00
|
|
|
end
|
|
|
|
|
2017-03-19 18:34:19 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
depends_on :osxfuse
|
|
|
|
|
|
|
|
go_resource "github.com/Sirupsen/logrus" do
|
|
|
|
url "https://github.com/Sirupsen/logrus.git",
|
2017-05-02 13:56:05 +00:00
|
|
|
:revision => "10f801ebc38b33738c9d17d50860f484a0988ff5"
|
2017-03-19 18:34:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/codegangsta/cli" do
|
|
|
|
url "https://github.com/codegangsta/cli.git",
|
2017-05-02 13:56:05 +00:00
|
|
|
:revision => "ab403a54a148f2d857920810291539e1f817ee7b"
|
2017-03-19 18:34:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/jacobsa/fuse" do
|
|
|
|
url "https://github.com/jacobsa/fuse.git",
|
2017-05-02 13:56:05 +00:00
|
|
|
:revision => "dc1be2d5b8abc34991a649f7499f9f673e36bb46"
|
2017-03-19 18:34:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/kardianos/osext" do
|
|
|
|
url "https://github.com/kardianos/osext.git",
|
2017-05-02 13:56:05 +00:00
|
|
|
:revision => "9d302b58e975387d0b4d9be876622c86cefe64be"
|
2017-03-19 18:34:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/sevlyar/go-daemon" do
|
|
|
|
url "https://github.com/sevlyar/go-daemon.git",
|
|
|
|
:revision => "8577c7ddef908e104dae56c9e46f0956cb33c844"
|
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/shirou/gopsutil" do
|
|
|
|
url "https://github.com/shirou/gopsutil.git",
|
2017-05-02 13:56:05 +00:00
|
|
|
:revision => "119305b4ceb81cc9314ee187970584a0923b0679"
|
2017-03-19 18:34:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "golang.org/x/net" do
|
|
|
|
url "https://github.com/golang/net.git",
|
2017-05-02 13:56:05 +00:00
|
|
|
:revision => "0819898fb4973868bba6de59b6aaad75beea9a6a"
|
2017-03-19 18:34:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
contents = Dir["*"]
|
|
|
|
gopath = buildpath/"gopath"
|
|
|
|
(gopath/"src/github.com/kahing/goofys").install contents
|
|
|
|
|
|
|
|
ENV["GOPATH"] = gopath
|
|
|
|
|
|
|
|
Language::Go.stage_deps resources, gopath/"src"
|
|
|
|
|
|
|
|
cd gopath/"src/github.com/kahing/goofys" do
|
|
|
|
system "go", "build", "-o", "goofys"
|
|
|
|
bin.install "goofys"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/goofys", "--version"
|
|
|
|
end
|
|
|
|
end
|