From badeeeb5aced1cf9ef0cc9332453ac56a0db9df8 Mon Sep 17 00:00:00 2001 From: Remco Date: Sat, 9 Jul 2016 00:28:59 +0200 Subject: [PATCH] minio-mc 20160603184837 (new formula) --- Formula/minio-mc.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/minio-mc.rb diff --git a/Formula/minio-mc.rb b/Formula/minio-mc.rb new file mode 100644 index 0000000000..d2be2b9de6 --- /dev/null +++ b/Formula/minio-mc.rb @@ -0,0 +1,28 @@ +class MinioMc < Formula + desc "ls, cp, mkdir, diff and rsync for filesystems and object storage" + homepage "https://github.com/minio/mc" + url "https://github.com/minio/mc/archive/RELEASE.2016-07-13T21-46-05Z.tar.gz" + version "20160713214605" + sha256 "611444a66ea3d2cc8fbb821147bcd3995c1956ef2aa9d62cd35f6d07f3f972cf" + head "https://github.com/minio/mc.git" + + depends_on "go" => :build + + conflicts_with "midnight-commander", :because => "Both install a `mc` binary" + + def install + ENV["GOPATH"] = buildpath + + clipath = buildpath/"src/github.com/minio/mc" + clipath.install Dir["*"] + + cd clipath do + system "go", "build", "-o", bin/"mc" + end + end + + test do + system bin/"mc", "mb", testpath/"test" + assert File.exist?(testpath/"test") + end +end