homebrew-core/Formula/todolist.rb
ilovezfs 56ec1baefc todolist 0.6
Closes #13939.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2017-05-25 22:57:45 -07:00

30 lines
1.1 KiB
Ruby

class Todolist < Formula
desc "Very fast, simple task manager for the command-line, based upon GTD."
homepage "http://todolist.site"
url "https://github.com/gammons/todolist/archive/0.6.tar.gz"
sha256 "f2f1d1d1673209e91f8893162edf030696ddaaa812572247e9d522504829a571"
bottle do
cellar :any_skip_relocation
sha256 "1fc96ecf1a3268e781b58f2462deb08a6d5d9fc87305cdd02f5ecbe867f778fc" => :sierra
sha256 "0b90c2a287d260672545d80b74935db06492882222586d78dce6cbcbbd0e3263" => :el_capitan
sha256 "48269538bfe340d38fd1215314b155941c24a80add35c0cd4d38bb44e3f92eca" => :yosemite
end
depends_on "go" => :build
depends_on "govendor" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/gammons/").mkpath
ln_s buildpath, buildpath/"src/github.com/gammons/todolist"
system "go", "build", "-o", bin/"todolist", "./src/github.com/gammons/todolist"
end
test do
system bin/"todolist", "init"
assert File.exist?(".todos.json")
add_task = shell_output("#{bin}/todolist add learn the Tango")
assert_match /Todo.* added/, add_task
end
end