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-09-10 07:03:42 +00:00
|
|
|
url "https://github.com/variadico/noti/archive/v2.3.0.tar.gz"
|
|
|
|
sha256 "2e1f2310743826f687a2fbd34654795da3c1a9e91ee34e3931f5321397122daa"
|
2016-01-25 13:50:32 +00:00
|
|
|
|
2016-01-25 14:24:13 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-10 07:10:08 +00:00
|
|
|
sha256 "a1a6a536e0bed405afa38ed991a384022dc78145b0592207afc9b81d98f851e9" => :el_capitan
|
|
|
|
sha256 "39e250fd963f55f25a6433226ac956e6d59dd070b4ac112f94e38b3937a877ec" => :yosemite
|
|
|
|
sha256 "cae07c7c8a9e506974879cd37c1e146924bfdf527bb29ed51205f28fd33a22f9" => :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
|