2012-02-29 18:57:22 +00:00
|
|
|
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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '8b022e45de7691ef330f13b0981f0cff30b4047d'
|
2012-02-29 18:57:22 +00:00
|
|
|
|
|
|
|
# Use a sort command that works with Leopard and up
|
2014-03-14 15:03:26 +00:00
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/90549/trunk/dports/shells/pdksh/files/patch-siglist.sh.diff"
|
|
|
|
sha1 "009830f37b7be86d1a1a2f187c82c25da6d9b418"
|
2012-02-29 18:57:22 +00:00
|
|
|
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
|