homebrew-core/Formula/distribution.rb
Baptiste Fontaine c606e6855d distribution 1.2.2
Closes Homebrew/homebrew#47765.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-06 13:37:16 +01:00

19 lines
643 B
Ruby

class Distribution < Formula
desc "Create ASCII graphical histograms in the terminal"
homepage "https://github.com/philovivero/distribution"
url "https://github.com/philovivero/distribution/archive/v1.2.2.tar.gz"
sha256 "b6bfca0b2a802c179f0a9b3dc12290ac0331f10f7472230e1e664aeff16ebd63"
head "https://github.com/philovivero/distribution.git"
bottle :unneeded
def install
bin.install "distribution.py" => "distribution"
doc.install "LICENSE.md", "README.md", "distributionrc", "screenshot.png"
end
test do
(testpath/"test").write "a\nb\na\n"
`#{bin}/distribution <test 2>/dev/null`.include? "a|2"
end
end