Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / t / taskopen.rb
blob98b73caf56f308a9efe1739ce62a0b9847fa5e71
1 class Taskopen < Formula
2   desc "Tool for taking notes and open urls with taskwarrior"
3   homepage "https://github.com/jschlatow/taskopen"
4   url "https://github.com/jschlatow/taskopen/archive/refs/tags/v2.0.2.tar.gz"
5   sha256 "249cce42ac427376a8909e81e49f2d2ba0e79d29b9f83224560cb45df8b7d31c"
6   license "GPL-2.0-only"
7   head "https://github.com/jschlatow/taskopen.git", branch: "master"
9   bottle do
10     sha256 cellar: :any_skip_relocation, arm64_sequoia: "d5f5c99069492f89ba1914486b47319087cadb8cfdf6f01ee6916e54253ca18c"
11     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "f9d13f19de0ae93c8fb39013f97cf6f15746119abfa12dad2b3bf32c0d71960d"
12     sha256 cellar: :any_skip_relocation, arm64_ventura: "2655a0cca3da272aafa320a8ba8e194db08bb9b43fa8beb8c8c5fde23cafca73"
13     sha256 cellar: :any_skip_relocation, sonoma:        "9fdaabc629647d5636b4546ef9f9ba9eb0c2a7302757b35fbc17ab515e8a508a"
14     sha256 cellar: :any_skip_relocation, ventura:       "1d74f583708153e1e0ba9887a202c9213c8c67920ada59ac846aa32ed284544f"
15     sha256 cellar: :any_skip_relocation, x86_64_linux:  "ae7f9a63cc6b29145c0539b67631464262aaf2088de11d9fe071060bdd500da2"
16   end
18   depends_on "nim" => :build
19   depends_on "task"
21   def install
22     system "make", "install", "PREFIX=#{prefix}", "VERSION=#{version}"
23   end
25   test do
26     touch testpath/".taskrc"
27     touch testpath/".taskopenrc"
29     system "task", "add", "BrewTest"
30     system "task", "1", "annotate", "Notes"
32     assert_match <<~EOS, shell_output("#{bin}/taskopen diagnostics")
33       Taskopen:       #{version}
34         Taskwarrior:    #{Formula["task"].version}
35         Configuration:  #{testpath}/.taskopenrc
36     EOS
37   end
38 end