diff options
| author | Xu Cheng | 2015-01-12 21:34:02 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-12 14:25:40 +0000 |
| commit | 53d4418c3023c9e969659ade4fa0fa0da3cbf219 (patch) | |
| tree | 540ecd18ce7d3b48110fc13fac63ff9bc029d175 /Library | |
| parent | 479004fc53fd1633716eb0aca06d8f36a6672eca (diff) | |
| download | homebrew-53d4418c3023c9e969659ade4fa0fa0da3cbf219.tar.bz2 | |
screenbrightness: add test and modernize
Closes #35781.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/screenbrightness.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Library/Formula/screenbrightness.rb b/Library/Formula/screenbrightness.rb index 9eac058a1..8224b888d 100644 --- a/Library/Formula/screenbrightness.rb +++ b/Library/Formula/screenbrightness.rb @@ -1,12 +1,14 @@ -require 'formula' - class Screenbrightness < Formula - homepage 'https://github.com/jmstacey/screenbrightness' - url 'https://github.com/jmstacey/screenbrightness/archive/1.1.tar.gz' - sha1 'f9750733ac298837f519fcfedcbfec74f781bc68' + homepage "https://github.com/jmstacey/screenbrightness" + url "https://github.com/jmstacey/screenbrightness/archive/1.1.tar.gz" + sha1 "f9750733ac298837f519fcfedcbfec74f781bc68" def install system "make" system "make", "prefix=#{prefix}", "install" end + + test do + system "#{bin}/screenbrightness", "-l" + end end |
