homebrew-core/Formula/dwatch.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

25 lines
665 B
Ruby

class Dwatch < Formula
desc "Watch programs and perform actions based on a configuration file"
homepage "http://siag.nu/dwatch/"
url "http://siag.nu/pub/dwatch/dwatch-0.1.1.tar.gz"
sha256 "ba093d11414e629b4d4c18c84cc90e4eb079a3ba4cfba8afe5026b96bf25d007"
def install
# Makefile uses cp, not install
bin.mkpath
man1.mkpath
system "make", "install",
"CC=#{ENV.cc}",
"PREFIX=#{prefix}",
"MANDIR=#{man}",
"ETCDIR=#{etc}"
etc.install "dwatch.conf"
end
test do
# '-h' is not actually an option, but it exits 0
system "#{bin}/dwatch", "-h"
end
end