2014-02-12 23:09:07 +00:00
|
|
|
class Paq8px < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Data compression archivers"
|
2014-02-12 23:09:07 +00:00
|
|
|
homepage "http://dhost.info/paq8/"
|
|
|
|
url "http://dhost.info/paq8/paq8px_v69.zip"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "d39440e57a37a2be1d1bbd2ba9a5b747334238cd8d3538e709233010a5129f77"
|
2014-02-12 23:09:07 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system ENV.cxx, "paq8px_v69.cpp", "-DUNIX", "-DNOASM", "-o", "paq8px"
|
|
|
|
bin.install "paq8px"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-02-03 00:35:27 +00:00
|
|
|
touch "test.txt"
|
|
|
|
system "echo", "Foobarbaz", ">", "test.txt"
|
2014-02-12 23:09:07 +00:00
|
|
|
system "yes | #{bin}/paq8px test.txt"
|
|
|
|
system "yes | #{bin}/paq8px test.txt.paq8px"
|
2015-02-03 00:35:27 +00:00
|
|
|
rm "test.txt"
|
2014-02-12 23:09:07 +00:00
|
|
|
system "yes | #{bin}/paq8px test.txt.paq8px"
|
2015-02-03 00:35:27 +00:00
|
|
|
rm "test.txt"
|
|
|
|
rm "test.txt.paq8px"
|
2014-02-12 23:09:07 +00:00
|
|
|
end
|
|
|
|
end
|