2012-04-30 23:57:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Dwatch < Formula
|
|
|
|
homepage 'http://siag.nu/dwatch/'
|
|
|
|
url 'http://siag.nu/pub/dwatch/dwatch-0.1.1.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'd1588364fcbad85b7ba81fa027199e983de55435'
|
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
|
|
|
|
|
|
|
|
def test
|
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
|