psutils p17

Closes Homebrew/homebrew#16829.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Michael Curtis 2013-01-02 09:35:50 +11:00 committed by Adam Vandenberg
parent 21a170631e
commit 691c045771

25
Formula/psutils.rb Normal file
View file

@ -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