2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-07 16:42:51 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Proctools < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://proctools.sourceforge.net/'
|
2012-07-10 16:56:33 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/proctools/proctools/0.4pre1/proctools-0.4pre1.tar.gz'
|
2010-04-07 05:58:35 +00:00
|
|
|
version '0.4pre1'
|
2012-07-10 16:56:33 +00:00
|
|
|
sha1 '2e60ac272532406e595698b1315ccfb481e76d42'
|
2009-09-07 16:42:51 +00:00
|
|
|
|
2012-07-10 16:56:33 +00:00
|
|
|
depends_on :bsdmake
|
2012-03-16 18:49:56 +00:00
|
|
|
|
2009-09-07 16:42:51 +00:00
|
|
|
def patches
|
2012-01-23 01:07:39 +00:00
|
|
|
base = "https://trac.macports.org/export/89276/trunk/dports/sysutils/proctools/files"
|
2009-09-07 16:42:51 +00:00
|
|
|
{ :p0 => ["patch-pfind-Makefile.diff",
|
|
|
|
"patch-pfind-pfind.c.diff",
|
|
|
|
"patch-pgrep-Makefile.diff",
|
|
|
|
"patch-pkill-Makefile.diff",
|
|
|
|
"patch-proctools-fmt.c.diff",
|
|
|
|
"patch-proctools-proctools.c.diff",
|
|
|
|
"patch-proctools-proctools.h.diff",
|
2010-04-08 15:37:58 +00:00
|
|
|
].map { |file_name| "#{base}/#{file_name}" }
|
2009-09-07 16:42:51 +00:00
|
|
|
}
|
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-09-07 16:42:51 +00:00
|
|
|
def install
|
2012-09-02 15:21:07 +00:00
|
|
|
system "bsdmake", "PREFIX=#{prefix}"
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-09-07 16:42:51 +00:00
|
|
|
["pgrep/pgrep", "pkill/pkill", "pfind/pfind"].each do |prog|
|
|
|
|
bin.install prog
|
|
|
|
man1.install prog + ".1"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|