homebrew-core/Formula/task.rb

28 lines
682 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.0.0.tar.gz'
sha1 'dc587363fbdc1dcac7f7e07b1bccfd1fb56b2435'
depends_on "cmake" => :build
skip_clean :all
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"
(etc+'bash_completion.d').install 'scripts/bash/task_completion.sh'
(share+'zsh/site-functions').install 'scripts/zsh/_task'
end
def caveats; <<-EOS.undent
Bash completion has been installed to:
#{etc}/bash_completion.d
zsh completion has been installed to:
#{HOMEBREW_PREFIX}/share/zsh/site-functions
EOS
2009-12-28 14:59:52 +00:00
end
end