blob: ee26b0101c75528260a978c332a71e7d40047b86 (
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
|
require 'formula'
class Pdksh < Formula
homepage 'http://www.cs.mun.ca/~michael/pdksh/'
url 'http://www.cs.mun.ca/~michael/pdksh/files/pdksh-5.2.14.tar.gz'
sha1 '8b022e45de7691ef330f13b0981f0cff30b4047d'
# Use a sort command that works with Leopard and up
def patches
{ :p0 =>
"https://trac.macports.org/export/90549/trunk/dports/shells/pdksh/files/patch-siglist.sh.diff"
}
end
def install
# --mandir does not work for this
inreplace "Makefile.in",
"$(prefix)/man/man$(manext)",
"$(prefix)/share/man/man1"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make install"
end
end
|