95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
25 lines
665 B
Ruby
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
|