2010-01-28 19:46:00 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pidof < Formula
|
2010-01-28 19:46:00 +00:00
|
|
|
homepage 'http://www.nightproductions.net/cli.htm'
|
2012-07-13 07:37:39 +00:00
|
|
|
url 'http://www.nightproductions.net/downloads/pidof_source.tar.gz'
|
|
|
|
sha1 '150ff344d7065ecf9bc5cb3c2cc83eeda8d31348'
|
2010-01-28 19:46:00 +00:00
|
|
|
version '0.1.4'
|
|
|
|
|
2012-08-11 14:29:04 +00:00
|
|
|
bottle do
|
2013-03-03 23:33:50 +00:00
|
|
|
cellar :any
|
|
|
|
revision 1
|
|
|
|
sha1 'da148135814b86ac578de9d0b19f1f2deda0a312' => :mountain_lion
|
|
|
|
sha1 'e818806883c83e6315d68fc93a37071c90c9f2ea' => :lion
|
|
|
|
sha1 '6b950109d55d192d6e95dd23912ecb13ffa2e94f' => :snow_leopard
|
2012-08-11 14:29:04 +00:00
|
|
|
end
|
|
|
|
|
2010-01-28 19:46:00 +00:00
|
|
|
def install
|
2012-07-13 07:37:39 +00:00
|
|
|
system "make", "all", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
|
2010-01-28 19:46:00 +00:00
|
|
|
man1.install gzip("pidof.1")
|
|
|
|
bin.install "pidof"
|
|
|
|
end
|
|
|
|
end
|