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-29 12:32:44 +00:00
|
|
|
sha256 "8baff42259e8a84030728190b1336cb3ba2e386543c99ddb309e096f558326bb" => :el_capitan
|
|
|
|
sha256 "fdd0be4fe61be9327edcb4d2a855cf4ddf1285e0d0dc1cce1a970af38491e412" => :yosemite
|
|
|
|
sha256 "287cb9696086509cabe97ac7d8942b02a7a1278daede859cc167a0c8fe581690" => :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
|