aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorGeoff Cant2009-09-07 18:42:51 +0200
committerMax Howell2009-09-18 14:16:30 +0100
commitccd5f849acec0277a35baa4752e9113f41d813b7 (patch)
tree3b6d4f876942416c700f7ff8be5d30acdbbfcfe9 /Library
parent25ae1595a856e6295d3485bc910dcbfa42bac2f8 (diff)
downloadhomebrew-ccd5f849acec0277a35baa4752e9113f41d813b7.tar.bz2
Add a formula for pgrep/pfind/pkill.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/proctools.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/proctools.rb b/Library/Formula/proctools.rb
new file mode 100644
index 000000000..ebe6a23a4
--- /dev/null
+++ b/Library/Formula/proctools.rb
@@ -0,0 +1,29 @@
+require 'brewkit'
+
+class Proctools <Formula
+ @version='0.4pre1'
+ @url='http://downloads.sourceforge.net/project/proctools/proctools/0.4pre1/proctools-0.4pre1.tar.gz'
+ @homepage='http://sourceforge.net/projects/proctools'
+ @md5='714e4350749c680a7806635632d524b1'
+
+ def patches
+ { :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| "http://svn.macports.org/repository/macports/trunk/dports/sysutils/proctools/files/#{file_name}" }
+ }
+ end
+
+ def install
+ system "bsdmake"
+
+ ["pgrep/pgrep", "pkill/pkill", "pfind/pfind"].each do |prog|
+ bin.install prog
+ man1.install prog + ".1"
+ end
+ end
+end