Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

New Formula: dwatch #11975

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Library/Formula/dwatch.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,19 @@
require 'formula'

class Dwatch < Formula
homepage 'http://siag.nu/dwatch/'
url 'http://siag.nu/pub/dwatch/dwatch-0.1.1.tar.gz'
md5 '25c06240cb5ab8126badc8a78dcd2b79'

def install
bin.mkpath # Makefile uses cp, not install
man1.mkpath # ditto

system "make install CC=#{ENV.cc} PREFIX=#{prefix} MANDIR=#{man} ETCDIR=#{etc}"
etc.install "dwatch.conf"
end

def test
system "dwatch -h" # not that it HAS -h. bitches, but exits 0
end
end