homebrew-core/Formula/timewarrior.rb
2016-09-09 01:33:04 -04:00

28 lines
1,002 B
Ruby

class Timewarrior < Formula
desc "Command-line time tracking application"
homepage "https://taskwarrior.org/docs/timewarrior/"
url "https://taskwarrior.org/download/timew-1.0.0.tar.gz"
sha256 "ac027910e1e8365bdd218a8b42389b26d017d38d3c96516c408db6d5a44e0bb5"
head "https://git.tasktools.org/scm/tm/timew.git"
bottle do
cellar :any_skip_relocation
sha256 "a109c481c8bc856e7b57c6d27561d1df3ab2d9435b4841119a5daae293ee25ac" => :el_capitan
sha256 "d8fee526dd540031a9923ecc20174ac0c4d46113ab11548d74110ce4c11e27da" => :yosemite
sha256 "eddc5acf58ca77536d58803b1cea70a5527dee135b8a89394cb50a78c9d3ed89" => :mavericks
end
depends_on "cmake" => :build
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
end
test do
(testpath/".timewarrior/data").mkpath
(testpath/".timewarrior/extensions").mkpath
touch testpath/".timewarrior/timewarrior.cfg"
assert_match "Tracking foo", shell_output("#{bin}/timew start foo")
end
end