aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/par.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/par.rb')
-rw-r--r--Library/Formula/par.rb17
1 files changed, 10 insertions, 7 deletions
diff --git a/Library/Formula/par.rb b/Library/Formula/par.rb
index 3243edec9..f8bfb2f59 100644
--- a/Library/Formula/par.rb
+++ b/Library/Formula/par.rb
@@ -1,11 +1,9 @@
# encoding: UTF-8
-require 'formula'
-
class Par < Formula
- homepage 'http://www.nicemice.net/par/'
- url 'http://www.nicemice.net/par/Par152.tar.gz'
- version '1.52'
- sha1 '4b83d2ec593bb45ee46d4b7c2bfc590e1f4a41a8'
+ homepage "http://www.nicemice.net/par/"
+ url "http://www.nicemice.net/par/Par152.tar.gz"
+ version "1.52"
+ sha1 "4b83d2ec593bb45ee46d4b7c2bfc590e1f4a41a8"
# A patch by Jérôme Pouiller that adds support for multibyte
# charsets (like UTF-8), plus Debian packaging.
@@ -15,8 +13,13 @@ class Par < Formula
end
def install
- system "make -f protoMakefile"
+ system "make", "-f", "protoMakefile"
bin.install "par"
man1.install gzip("par.1")
end
+
+ test do
+ expected = "homebrew\nhomebrew\n"
+ assert_equal expected, pipe_output("#{bin}/par 10gqr", "homebrew homebrew")
+ end
end