2013-03-15 22:43:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class TerminalNotifier < Formula
|
|
|
|
homepage 'https://github.com/alloy/terminal-notifier'
|
2013-08-30 08:40:24 +00:00
|
|
|
url 'https://github.com/alloy/terminal-notifier/archive/v1.5.1.tar.gz'
|
|
|
|
sha1 'bc9805808f7b67f2871820f6a9ef45b0ec016ab9'
|
2013-06-04 06:49:23 +00:00
|
|
|
|
|
|
|
head 'https://github.com/alloy/terminal-notifier.git'
|
|
|
|
|
2013-06-14 19:09:06 +00:00
|
|
|
depends_on :macos => :mountain_lion
|
2013-06-04 06:49:23 +00:00
|
|
|
depends_on :xcode
|
|
|
|
|
2013-03-15 22:43:09 +00:00
|
|
|
def install
|
2014-02-28 03:47:38 +00:00
|
|
|
xcodebuild "-project", "Terminal Notifier.xcodeproj",
|
|
|
|
"-target", "terminal-notifier",
|
|
|
|
"SYMROOT=build",
|
|
|
|
"-verbose"
|
2013-06-04 06:49:23 +00:00
|
|
|
prefix.install Dir['build/Release/*']
|
2013-03-15 22:43:09 +00:00
|
|
|
inner_binary = "#{prefix}/terminal-notifier.app/Contents/MacOS/terminal-notifier"
|
|
|
|
bin.write_exec_script inner_binary
|
2013-08-15 05:04:33 +00:00
|
|
|
chmod 0755, bin/'terminal-notifier'
|
2013-03-15 22:43:09 +00:00
|
|
|
end
|
|
|
|
end
|