2009-12-28 14:59:52 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Task < Formula
|
2010-05-25 18:53:31 +00:00
|
|
|
homepage 'http://www.taskwarrior.org/'
|
2012-03-18 10:54:15 +00:00
|
|
|
url 'http://www.taskwarrior.org/download/task-2.0.0.tar.gz'
|
|
|
|
sha1 'dc587363fbdc1dcac7f7e07b1bccfd1fb56b2435'
|
2010-05-25 18:53:31 +00:00
|
|
|
|
2012-03-18 10:54:15 +00:00
|
|
|
depends_on "cmake" => :build
|
2012-03-11 23:55:07 +00:00
|
|
|
|
2012-03-18 10:54:15 +00:00
|
|
|
skip_clean :all
|
2012-03-11 23:55:07 +00:00
|
|
|
|
2009-12-28 14:59:52 +00:00
|
|
|
def install
|
2012-03-18 10:54:15 +00:00
|
|
|
system "cmake #{std_cmake_parameters}"
|
2009-12-28 14:59:52 +00:00
|
|
|
system "make install"
|
2010-05-25 18:53:31 +00:00
|
|
|
(etc+'bash_completion.d').install 'scripts/bash/task_completion.sh'
|
2012-03-30 00:09:08 +00:00
|
|
|
(share+'zsh/functions').install 'scripts/zsh/_task'
|
2009-12-28 14:59:52 +00:00
|
|
|
end
|
|
|
|
end
|