2012-04-30 23:57:35 +00:00
|
|
|
class Dwatch < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Watch programs and perform actions based on a configuration file"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://siag.nu/dwatch/"
|
|
|
|
url "http://siag.nu/pub/dwatch/dwatch-0.1.1.tar.gz"
|
|
|
|
sha256 "ba093d11414e629b4d4c18c84cc90e4eb079a3ba4cfba8afe5026b96bf25d007"
|
2012-04-30 23:57:35 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-06 05:30:07 +00:00
|
|
|
# Makefile uses cp, not install
|
|
|
|
bin.mkpath
|
|
|
|
man1.mkpath
|
|
|
|
|
|
|
|
system "make", "install",
|
|
|
|
"CC=#{ENV.cc}",
|
|
|
|
"PREFIX=#{prefix}",
|
|
|
|
"MANDIR=#{man}",
|
|
|
|
"ETCDIR=#{etc}"
|
2012-04-30 23:57:35 +00:00
|
|
|
|
|
|
|
etc.install "dwatch.conf"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-05-06 05:30:07 +00:00
|
|
|
# '-h' is not actually an option, but it exits 0
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/dwatch", "-h"
|
2012-04-30 23:57:35 +00:00
|
|
|
end
|
|
|
|
end
|