homebrew-core/Formula/proctools.rb

31 lines
928 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
url 'http://downloads.sourceforge.net/project/proctools/proctools/0.4pre1/proctools-0.4pre1.tar.gz'
homepage 'http://proctools.sourceforge.net/'
version '0.4pre1'
md5 '714e4350749c680a7806635632d524b1'
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
2010-04-08 16:27:14 +00:00
system "/usr/bin/bsdmake"
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