7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
30 lines
932 B
Ruby
30 lines
932 B
Ruby
require 'formula'
|
|
|
|
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'
|
|
|
|
def patches
|
|
base = "http://svn.macports.org/repository/macports/trunk/dports/sysutils/proctools/files"
|
|
{ :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",
|
|
].map { |file_name| "#{base}/#{file_name}" }
|
|
}
|
|
end
|
|
|
|
def install
|
|
system "/usr/bin/bsdmake"
|
|
|
|
["pgrep/pgrep", "pkill/pkill", "pfind/pfind"].each do |prog|
|
|
bin.install prog
|
|
man1.install prog + ".1"
|
|
end
|
|
end
|
|
end
|