homebrew-core/Formula/paq8px.rb
Caleb Xu 7be31654c6 paq8px: pass strict audit/style test.
Closes Homebrew/homebrew#36481.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-03 08:35:07 +00:00

21 lines
567 B
Ruby

class Paq8px < Formula
homepage "http://dhost.info/paq8/"
url "http://dhost.info/paq8/paq8px_v69.zip"
sha1 "77667a3c61b858d71897f47fc4c4d8eabf3d715c"
def install
system ENV.cxx, "paq8px_v69.cpp", "-DUNIX", "-DNOASM", "-o", "paq8px"
bin.install "paq8px"
end
test do
touch "test.txt"
system "echo", "Foobarbaz", ">", "test.txt"
system "yes | #{bin}/paq8px test.txt"
system "yes | #{bin}/paq8px test.txt.paq8px"
rm "test.txt"
system "yes | #{bin}/paq8px test.txt.paq8px"
rm "test.txt"
rm "test.txt.paq8px"
end
end