aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/psutils.rb
diff options
context:
space:
mode:
authorMichael Curtis2013-01-02 09:35:50 +1100
committerAdam Vandenberg2013-01-14 07:11:20 -0800
commit329e7769e9de7d15a65c762b70ce2bb9c02ee075 (patch)
treed4d60166d922025a4d7db52ec2dc6774fe43cc63 /Library/Formula/psutils.rb
parentdd9423aa3c88e40f57feb56698f8225c12e15262 (diff)
downloadhomebrew-329e7769e9de7d15a65c762b70ce2bb9c02ee075.tar.bz2
psutils p17
Closes #16829. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/psutils.rb')
-rw-r--r--Library/Formula/psutils.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/psutils.rb b/Library/Formula/psutils.rb
new file mode 100644
index 000000000..da661b843
--- /dev/null
+++ b/Library/Formula/psutils.rb
@@ -0,0 +1,25 @@
+require 'formula'
+
+class Psutils < Formula
+ homepage 'http://knackered.org/angus/psutils/'
+ url 'ftp://ftp.knackered.org/pub/psutils/psutils-p17.tar.gz'
+ version 'p17'
+ sha1 '6f1ecb5846cffb644826a02bd9153fe5d6387a9b'
+
+ def install
+ man1.mkpath # This is required, because the makefile expects that its man folder exists
+ system "make", "-f", "Makefile.unix",
+ "PERL=/usr/bin/perl",
+ "BINDIR=#{bin}",
+ "INCLUDEDIR=#{share}/psutils",
+ "MANDIR=#{man1}",
+ "install"
+ end
+
+ test do
+ system "sh -c '#{bin}/showchar Palatino B > test.ps'"
+ system "#{bin}/psmerge", "-omulti.ps", "test.ps", "test.ps", "test.ps", "test.ps"
+ system "#{bin}/psnup", "-n", "2", "multi.ps", "nup.ps"
+ system "#{bin}/psselect", "-p1", "multi.ps", "test2.ps"
+ end
+end