aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/task.rb
blob: 9d32c88a4e41b51480d9eaf5398bc5780ef53679 (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
class Task < Formula
  homepage "http://www.taskwarrior.org/"
  url "http://taskwarrior.org/download/task-2.4.1.tar.gz"
  sha1 "4882628ac339e31fcb0fef2f4a1c585e86eb95c7"
  head "https://git.tasktools.org/scm/tm/task.git", :branch => "2.4.2", :shallow => false

  bottle do
    sha1 "1e92d7536061d35644a90a8e7ed8a2a711a38eee" => :yosemite
    sha1 "1281ae5d1ca0a6fb79ca844b8ff88ef3cb8a2519" => :mavericks
    sha1 "d8500859d28a14a5b22fa1f7b71ab6061df9a087" => :mountain_lion
  end

  depends_on "cmake" => :build
  depends_on "gnutls" => :optional

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"
    bash_completion.install "scripts/bash/task.sh"
    zsh_completion.install "scripts/zsh/_task"
  end

  test do
    system "#{bin}/task", "--version"
  end
end