aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/terminal-notifier.rb
blob: 55e9ae429c903c76577f5b22eb670c94654d3311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'formula'

class TerminalNotifier < Formula
  homepage 'https://github.com/alloy/terminal-notifier'
  url 'https://github.com/alloy/terminal-notifier/archive/1.6.0.tar.gz'
  sha1 '15517dfa070c7ad228424c0dcbb71774b699e99e'

  head 'https://github.com/alloy/terminal-notifier.git'

  bottle do
    cellar :any
    sha1 "a47abd03d3c9574af6f28e343f065b0393e37ed9" => :mavericks
    sha1 "063dfbda7818f78024f4d179a8037aa0bf99bc01" => :mountain_lion
  end

  depends_on :macos => :mountain_lion
  depends_on :xcode => :build

  def install
    xcodebuild "-project", "Terminal Notifier.xcodeproj",
               "-target", "terminal-notifier",
               "SYMROOT=build",
               "-verbose"
    prefix.install Dir['build/Release/*']
    inner_binary = "#{prefix}/terminal-notifier.app/Contents/MacOS/terminal-notifier"
    bin.write_exec_script inner_binary
    chmod 0755, bin/'terminal-notifier'
  end
end