homebrew-core/Formula/pict.rb
2018-11-30 00:04:54 +01:00

30 lines
1.1 KiB
Ruby

class Pict < Formula
desc "Pairwise Independent Combinatorial Tool"
homepage "https://github.com/Microsoft/pict/"
url "https://github.com/Microsoft/pict/archive/v3.7.1.tar.gz"
sha256 "4fc7939c708f9c8d6346430b3b90f122f2cc5e341f172f94eb711b1c48f2518a"
bottle do
cellar :any_skip_relocation
sha256 "ee531627e5fa6a0e8ba68aeb1e7bc5c420fb307bedccbc5b8aa248b73291a665" => :mojave
sha256 "f6ebf8ee9bb2ff705de0f9975cc96a4284a127b093ece87b44643d83f5b636de" => :high_sierra
sha256 "6ba3b37a9a8a0ce77430baddda0f57eebd71ad4adcf412c8f2f6b935073d7548" => :sierra
end
resource "testfile" do
url "https://gist.githubusercontent.com/glsorre/9f67891c69c21cbf477c6cedff8ee910/raw/84ec65cf37e0a8df5428c6c607dbf397c2297e06/pict.txt"
sha256 "ac5e3561f9c481d2dca9d88df75b58a80331b757a9d2632baaf3ec5c2e49ccec"
end
def install
system "make"
bin.install "pict"
end
test do
resource("testfile").stage testpath
output = shell_output("#{bin}/pict pict.txt").split("\n")
assert_equal output[0], "LANGUAGES\tCURRIENCIES"
assert_equal output[4], "en_US\tGBP"
end
end