aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/screenresolution.rb
blob: e57eaff488f3ad1b9d3797ecda3b4c2d5014954a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Screenresolution < Formula
  homepage 'https://github.com/jhford/screenresolution'
  url 'https://github.com/jhford/screenresolution/archive/v1.6.tar.gz'
  sha1 '5a4c397711c0cadb3cf58e8eb13dff50b993b388'
  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