From 53d4418c3023c9e969659ade4fa0fa0da3cbf219 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Mon, 12 Jan 2015 21:34:02 +0800 Subject: screenbrightness: add test and modernize Closes #35781. Signed-off-by: Mike McQuaid --- Library/Formula/screenbrightness.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3