aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShaun Jackman2014-12-10 16:35:08 -0800
committerMike McQuaid2014-12-18 08:41:03 +0000
commitaabb0df0b9ac32bbf10de81dde31ff7dd820b170 (patch)
tree790d15c3a6b4ef0f16b11d0e2aca90cc62ec7979
parentf4fe50a0958b7b47b32041e11d4943d6ae7d3972 (diff)
downloadhomebrew-aabb0df0b9ac32bbf10de81dde31ff7dd820b170.tar.bz2
distribution 1.2.1 (new formula)
Short, simple, direct scripts for creating character-based graphs in a command terminal. Closes #34870. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/distribution.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/distribution.rb b/Library/Formula/distribution.rb
new file mode 100644
index 000000000..2dc6018cf
--- /dev/null
+++ b/Library/Formula/distribution.rb
@@ -0,0 +1,18 @@
+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