aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/psutils.rb
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-03-22 14:21:14 +0100
committerMike McQuaid2015-03-23 08:37:48 +0000
commit3476f06b67e2b0873fa23f306a33368c8687a6be (patch)
treee0d7a368ccf65f028feae47d09e83302005bb44d /Library/Formula/psutils.rb
parent473b13e3e88c34e17e4a8954aff3017360b5e4d9 (diff)
downloadhomebrew-3476f06b67e2b0873fa23f306a33368c8687a6be.tar.bz2
psutils: modernize, use sha256
Diffstat (limited to 'Library/Formula/psutils.rb')
-rw-r--r--Library/Formula/psutils.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/Library/Formula/psutils.rb b/Library/Formula/psutils.rb
index da661b843..423c4807d 100644
--- a/Library/Formula/psutils.rb
+++ b/Library/Formula/psutils.rb
@@ -1,13 +1,12 @@
-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'
+ homepage "http://knackered.org/angus/psutils/"
+ url "ftp://ftp.knackered.org/pub/psutils/psutils-p17.tar.gz"
+ version "p17"
+ sha256 "3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4"
def install
- man1.mkpath # This is required, because the makefile expects that its man folder exists
+ # This is required, because the makefile expects that its man folder exists
+ man1.mkpath
system "make", "-f", "Makefile.unix",
"PERL=/usr/bin/perl",
"BINDIR=#{bin}",
@@ -17,8 +16,9 @@ class Psutils < Formula
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 "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