diff options
| author | Tim Galeckas | 2014-05-08 14:17:26 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-11 15:30:21 -0700 |
| commit | 0651d5e337ae0038d5ec51588b28013c85e09cc9 (patch) | |
| tree | 3de8f448ac31a612253b858f9185c6023aabfabc /Library/Formula | |
| parent | 965102811b210267650cd1b567281fe4996971b2 (diff) | |
| download | homebrew-0651d5e337ae0038d5ec51588b28013c85e09cc9.tar.bz2 | |
betty 0.1.4
Closes #29067.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/betty.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/betty.rb b/Library/Formula/betty.rb new file mode 100644 index 000000000..cf097b42d --- /dev/null +++ b/Library/Formula/betty.rb @@ -0,0 +1,35 @@ +require "formula" + +class Ruby19Dependency < Requirement + fatal true + default_formula "ruby" + + satisfy do + `ruby --version` =~ /ruby (\d\.\d).\d/ + $1.to_f >= 1.9 + end + + def message + "Betty requires Ruby 1.9 or better." + end +end + +class Betty < Formula + homepage "https://github.com/pickhardt/betty" + url "https://github.com/pickhardt/betty/archive/v0.1.4.tar.gz" + sha1 "f31c4ab02036e82b07116b821193e32287029908" + + depends_on Ruby19Dependency + + def install + libexec.install "lib", "main.rb" => "betty" + bin.write_exec_script libexec/"betty" + end + + test do + system bin/"betty", "speech on" + system bin/"betty", "what is your name" + system bin/"betty", "version" + system bin/"betty", "speech off" + end +end |
