homebrew-core/Formula/proctools.rb

33 lines
971 B
Ruby
Raw Normal View History

require 'formula'
2009-09-07 16:42:51 +00:00
2011-03-10 05:11:03 +00:00
class Proctools < Formula
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'
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
2009-09-07 16:42:51 +00:00
def patches
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
2009-09-07 16:42:51 +00:00
def install
system "bsdmake", "PREFIX=#{prefix}"
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