2014-11-05 05:34:14 +00:00
|
|
|
class Snow < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Whitespace steganography: coded messages using whitespace"
|
2014-11-05 05:34:14 +00:00
|
|
|
homepage "http://www.darkside.com.au/snow/"
|
|
|
|
url "http://www.darkside.com.au/snow/snow-20130616.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "c0b71aa74ed628d121f81b1cd4ae07c2842c41cfbdf639b50291fc527c213865"
|
2014-11-05 05:34:14 +00:00
|
|
|
|
2014-11-05 05:40:56 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "57229cfcf76e0643a19f3b2e8eeabe5796319d01" => :yosemite
|
|
|
|
sha1 "326c1e051f957c183f6aaef4e97782c1795945e2" => :mavericks
|
|
|
|
sha1 "f8e1b3e318c15a62190a7bf59c0309f2bc7e8de2" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-11-05 05:34:14 +00:00
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "snow"
|
|
|
|
man1.install "snow.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
touch "in.txt"
|
|
|
|
touch "out.txt"
|
|
|
|
system "#{bin}/snow", "-C", "-m", "'Secrets Abound Here'", "-p",
|
|
|
|
"'hello world'", "in.txt", "out.txt"
|
|
|
|
# The below should get the response 'Secrets Abound Here' when testing.
|
|
|
|
system "#{bin}/snow", "-C", "-p", "'hello world'", "out.txt"
|
|
|
|
end
|
|
|
|
end
|