homebrew-core/Formula/task.rb

23 lines
582 B
Ruby
Raw Normal View History

2009-12-28 14:59:52 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Task < Formula
homepage 'http://www.taskwarrior.org/'
url 'http://www.taskwarrior.org/download/task-2.3.0.tar.gz'
sha1 'b5390a1c1232bcb727f5a595ac1141184810d09d'
head 'git://tasktools.org/task.git', :branch => '2.4.0', :shallow => false
depends_on "cmake" => :build
depends_on "gnutls" => :optional
2009-12-28 14:59:52 +00:00
def install
system "cmake", ".", *std_cmake_args
2009-12-28 14:59:52 +00:00
system "make install"
2013-05-03 18:03:31 +00:00
bash_completion.install 'scripts/bash/task.sh'
zsh_completion.install 'scripts/zsh/_task'
end
test do
system "#{bin}/task", "--version"
end
2009-12-28 14:59:52 +00:00
end