Skip to content

Commit 9481424

Browse files
authored
Merge pull request #245478 from moonfruit/doge
doge 0.2.9 (new formula)
2 parents 59189ee + 6da4c1e commit 9481424

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

Formula/d/doge.rb

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
class Doge < Formula
2+
desc "Command-line DNS client"
3+
homepage "https://dog.ramfield.net/"
4+
url "https://github.com/Dj-Codeman/dog_community/archive/refs/tags/v0.2.9.tar.gz"
5+
sha256 "21d459f1f88d6a1e001a747b84782f180c01de8f3c39f3a1389c352b2f2edc88"
6+
license "EUPL-1.2"
7+
8+
bottle do
9+
sha256 cellar: :any_skip_relocation, arm64_tahoe: "71948198c956b00eb4a7876019460f9280593408830d4283419976b223699961"
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "c1d4cd89b97ec72efb1c213373314bcf50c2f550f616dedb72be413a6b591746"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "468d651e833eedaf42d4f9b707c9cd6a885f0a138cc22527d7fec660d344a18c"
12+
sha256 cellar: :any_skip_relocation, sonoma: "efce39ee93945f293a68d081a90865e4702ad02979d6c71a6dfa4e5baf0cabb2"
13+
sha256 cellar: :any_skip_relocation, x86_64_linux: "0e1a7aa1977d9189061c8d1b0a25f8117f3f1a5b4d920dd832fb49cc5461e62c"
14+
end
15+
16+
depends_on "pandoc" => :build
17+
depends_on "pkgconf" => :build
18+
depends_on "rust" => :build
19+
20+
on_linux do
21+
depends_on "openssl@3"
22+
end
23+
24+
def install
25+
system "cargo", "install", *std_cargo_args
26+
27+
bash_completion.install "completions/doge.bash" => "doge"
28+
zsh_completion.install "completions/doge.zsh" => "_doge"
29+
fish_completion.install "completions/doge.fish"
30+
31+
args = %w[
32+
--standalone
33+
--from=markdown
34+
--to=man
35+
]
36+
system "pandoc", *args, "man/doge.1.md", "-o", "doge.1"
37+
man1.install "doge.1"
38+
end
39+
40+
test do
41+
assert_match version.to_s, shell_output("#{bin}/doge --version")
42+
43+
output = shell_output("#{bin}/doge dns.google A --seconds --color=never")
44+
assert_match(/^A\s+dns\.google\.\s+\d+\s+8\.8\.4\.4/, output)
45+
assert_match(/^A\s+dns\.google\.\s+\d+\s+8\.8\.8\.8/, output)
46+
end
47+
end

0 commit comments

Comments
 (0)