homebrew-core/Formula/distribution.rb
Shaun Jackman a120374ee2 distribution 1.2.1 (new formula)
Short, simple, direct scripts for creating character-based graphs in a
command terminal.

Closes Homebrew/homebrew#34870.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-18 08:41:03 +00:00

18 lines
557 B
Ruby

require "formula"
class Distribution < Formula
homepage "https://github.com/philovivero/distribution"
url "https://github.com/philovivero/distribution/archive/v1.2.1.tar.gz"
sha1 "4a67c601a0250ab33a227abc648866ddcfbae8b9"
head "https://github.com/philovivero/distribution.git"
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