diff options
| -rw-r--r-- | Library/Formula/moreutils.rb | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Library/Formula/moreutils.rb b/Library/Formula/moreutils.rb index 62ba11688..7fe39d73e 100644 --- a/Library/Formula/moreutils.rb +++ b/Library/Formula/moreutils.rb @@ -1,10 +1,8 @@ -require 'formula' - class Moreutils < Formula - homepage 'http://joeyh.name/code/moreutils/' - url 'http://mirrors.kernel.org/debian/pool/main/m/moreutils/moreutils_0.52.tar.gz' - mirror 'http://ftp.us.debian.org/debian/pool/main/m/moreutils/moreutils_0.52.tar.gz' - sha1 '32047f935178b490a12c370d8f695f1273dc5895' + homepage "http://joeyh.name/code/moreutils/" + url "http://mirrors.kernel.org/debian/pool/main/m/moreutils/moreutils_0.52.tar.gz" + mirror "http://ftp.us.debian.org/debian/pool/main/m/moreutils/moreutils_0.52.tar.gz" + sha1 "32047f935178b490a12c370d8f695f1273dc5895" bottle do revision 2 @@ -62,4 +60,11 @@ class Moreutils < Formula system "make", "install", "PREFIX=#{prefix}" bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV["PERL5LIB"]) end + + test do + pipe_output("#{bin}/isutf8", "hello") + assert $?.success? + pipe_output("#{bin}/isutf8", "\xca\xc0\xbd\xe7") + assert (!$?.success?) + end end |
