diff options
| author | Martin Mauch | 2014-02-22 19:13:26 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-04 22:14:51 -0800 |
| commit | 735cd28276933d35b8f8663c08cc945d07b45817 (patch) | |
| tree | 962a50ae953d42cb8365a789072b23789fbc54b3 /Library/Formula/aha.rb | |
| parent | 41ad48a83c0fb49ccd2d4af50ef0c61ffd2a901f (diff) | |
| download | homebrew-735cd28276933d35b8f8663c08cc945d07b45817.tar.bz2 | |
aha 0.4.7
Closes #26921.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/aha.rb')
| -rw-r--r-- | Library/Formula/aha.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/aha.rb b/Library/Formula/aha.rb new file mode 100644 index 000000000..cf392495f --- /dev/null +++ b/Library/Formula/aha.rb @@ -0,0 +1,20 @@ +require "formula" + +class Aha < Formula + homepage "https://github.com/theZiz/aha" + url "https://github.com/theZiz/aha/archive/0.4.7.tar.gz" + sha1 "bbf861ea1a98aa72346c2822f1ec40941b84dd53" + + def install + system "make" + bin.install "aha" + end + + test do + IO.popen("#{bin}/aha", "w+") do |pipe| + pipe.write("[35mrain[34mpill[00m") + pipe.close_write + assert_match /color:purple;">rain.*color:blue;">pill/, pipe.read + end + end +end |
