aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBen Lovett2012-02-29 10:57:22 -0800
committerAdam Vandenberg2012-03-15 18:01:36 -0700
commitf74146f186917133c19b304cfa5499b4c95d908a (patch)
tree09e76fa81f51cd0d6cfa0914a34f0c85f76ef7b2 /Library
parentcedc51b9daa21c4d0cd023780ee7b4458630f043 (diff)
downloadhomebrew-f74146f186917133c19b304cfa5499b4c95d908a.tar.bz2
pdksh 5.2.14
Closes #10593. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pdksh.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/pdksh.rb b/Library/Formula/pdksh.rb
new file mode 100644
index 000000000..d9e01c4b6
--- /dev/null
+++ b/Library/Formula/pdksh.rb
@@ -0,0 +1,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'
+ md5 '871106b3bd937e1afba9f2ef7c43aef3'
+
+ # 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