homebrew-core/Formula/screenresolution.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

19 lines
597 B
Ruby

class Screenresolution < Formula
desc "Get, set, and list display resolution"
homepage "https://github.com/jhford/screenresolution"
url "https://github.com/jhford/screenresolution/archive/v1.6.tar.gz"
sha256 "d3761663eaf585b014391a30a77c9494a6404e78e8a4863383e12c59b0f539eb"
head "https://github.com/jhford/screenresolution.git"
# Uses CGDisplayModeRef type, introduced in 10.6
depends_on :macos => :snow_leopard
def install
system "make", "CC=#{ENV.cc}"
system "make", "PREFIX=#{prefix}", "install"
end
test do
system "#{bin}/screenresolution", "get"
end
end