blob: 602ba13e40ccc1e24abaf9793600352d7aa79ee0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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'
depends_on 'bsdmake' => :build if MacOS.xcode_version.to_f >= 4.3
def patches
base = "https://trac.macports.org/export/89276/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 "bsdmake"
["pgrep/pgrep", "pkill/pkill", "pfind/pfind"].each do |prog|
bin.install prog
man1.install prog + ".1"
end
end
end
|