2e6f19756d
This links the zsh autocomplete for 'task' into share/zsh/functions, where it is more likely to be automatically picked up by zsh users. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
18 lines
468 B
Ruby
18 lines
468 B
Ruby
require 'formula'
|
|
|
|
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
|
|
|
|
def install
|
|
system "cmake #{std_cmake_parameters}"
|
|
system "make install"
|
|
(etc+'bash_completion.d').install 'scripts/bash/task_completion.sh'
|
|
(share+'zsh/functions').install 'scripts/zsh/_task'
|
|
end
|
|
end
|