homebrew-core/Formula/task.rb
Akshay Joshi 31ae519437 task 2.3.0
Closes Homebrew/homebrew#26046.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-21 08:42:13 -08:00

31 lines
855 B
Ruby

require 'formula'
class TaskwarriorDownloadStrategy < GitDownloadStrategy
# CMakeLists.txt requires presence of .git to generate commit.h
# (version information), otherwise make fails.
def support_depth?
false
end
end
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",
:using => TaskwarriorDownloadStrategy
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