diff --git a/Formula/snag.rb b/Formula/snag.rb index e32ab914c2..d4cc41e1d5 100644 --- a/Formula/snag.rb +++ b/Formula/snag.rb @@ -3,8 +3,8 @@ require "language/go" class Snag < Formula desc "Automatic build tool for all your needs" homepage "https://github.com/Tonkpils/snag" - url "https://github.com/Tonkpils/snag/archive/v1.1.0.tar.gz" - sha256 "30197526352284067ebc7f8c066da37e1e92f535dcf7a185584bdc4d8ef37233" + url "https://github.com/Tonkpils/snag/archive/v1.2.0.tar.gz" + sha256 "37bf661436edf4526adf5428ac5ff948871c613ff4f9b61fbbdfe1fb95f58b37" head "https://github.com/Tonkpils/snag.git" bottle do @@ -16,46 +16,18 @@ class Snag < Formula depends_on "go" => :build - go_resource "gopkg.in/yaml.v2" do - url "https://github.com/go-yaml/yaml.git", - :revision => "7ad95dd0798a40da1ccdff6dff35fd177b5edf40" - end - - go_resource "github.com/shiena/ansicolor" do - url "https://github.com/shiena/ansicolor.git", - :revision => "a5e2b567a4dd6cc74545b8a4f27c9d63b9e7735b" - end - - go_resource "github.com/mattn/go-isatty" do - url "https://github.com/mattn/go-isatty.git", - :revision => "7fcbc72f853b92b5720db4a6b8482be612daef24" - end - - go_resource "gopkg.in/fsnotify.v1" do - url "https://github.com/go-fsnotify/fsnotify.git", - :revision => "96c060f6a6b7e0d6f75fddd10efeaca3e5d1bcb0" - end - - go_resource "github.com/fatih/color" do - url "https://github.com/fatih/color.git", - :revision => "2f376994f3b3cae1602f63eb5bdfb58101a94a08" - end - def install ENV["GOPATH"] = buildpath - snagpath = buildpath/"src/github.com/Tonkpils/snag" - snagpath.install Dir["{*,.git}"] - Language::Go.stage_deps resources, buildpath/"src" + (buildpath/"src/github.com/Tonkpils/").mkpath + ln_s buildpath, buildpath/"src/github.com/Tonkpils/snag" - cd snagpath do - system "go", "build", "-o", bin/"snag" - end + system "go", "build", "-o", bin/"snag", "./src/github.com/Tonkpils/snag" end test do (testpath/".snag.yml").write <<-EOS.undent - script: + build: - touch #{testpath}/snagged verbose: true EOS