homebrew-core/Formula/dwatch.rb

26 lines
665 B
Ruby
Raw Normal View History

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