aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/task.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/task.rb')
-rw-r--r--Library/Formula/task.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/task.rb b/Library/Formula/task.rb
index 67e8495be..fabfc3042 100644
--- a/Library/Formula/task.rb
+++ b/Library/Formula/task.rb
@@ -1,9 +1,19 @@
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.2.0.tar.gz'
sha1 '70656deb48a460f95370c885e388b475475f64eb'
+ head 'git://tasktools.org/task.git', :branch => :"2.3.0",
+ :using => TaskwarriorDownloadStrategy
depends_on "cmake" => :build
@@ -13,4 +23,8 @@ class Task < Formula
bash_completion.install 'scripts/bash/task.sh'
zsh_completion.install 'scripts/zsh/_task'
end
+
+ test do
+ system "#{bin}/task", "--version"
+ end
end