2016-01-25 13:50:32 +00:00
|
|
|
class Noti < Formula
|
2016-05-27 06:28:05 +00:00
|
|
|
desc "Trigger notifications when a process completes"
|
2016-01-25 13:50:32 +00:00
|
|
|
homepage "https://github.com/variadico/noti"
|
2016-08-29 11:53:29 +00:00
|
|
|
url "https://github.com/variadico/noti/archive/v2.2.2.tar.gz"
|
|
|
|
sha256 "67a04fcebb017f49769ea5fd9215031f8902f1a8db30a7e1fff9a001e2e33e4d"
|
2016-01-25 13:50:32 +00:00
|
|
|
|
2016-01-25 14:24:13 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-08-28 12:21:06 +00:00
|
|
|
sha256 "76be50b1c6f66922c3db4df4359142b9b3cdd522f8c8821e612be6a9a3a60778" => :el_capitan
|
|
|
|
sha256 "275610aa85be815de959dafceab7d8245d2dd22690a8205b147b4ed91676d120" => :yosemite
|
|
|
|
sha256 "0da6663a58c1235bfeb1b338b050bde51edb011cb517a32b384e33815901caa8" => :mavericks
|
2016-01-25 14:24:13 +00:00
|
|
|
end
|
|
|
|
|
2016-01-25 13:50:32 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2016-05-27 06:28:05 +00:00
|
|
|
|
|
|
|
notipath = buildpath/"src/github.com/variadico/noti"
|
|
|
|
notipath.install Dir["*"]
|
|
|
|
|
|
|
|
cd "src/github.com/variadico/noti/cmd/noti" do
|
|
|
|
system "go", "build"
|
|
|
|
bin.install "noti"
|
2016-08-28 10:00:44 +00:00
|
|
|
prefix.install_metafiles
|
2016-01-25 13:50:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/noti", "-t", "Noti", "-m", "'Noti recipe installation test has finished.'"
|
|
|
|
end
|
|
|
|
end
|