Skip to content

Commit

Permalink
doge: 0.2.7 (new)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonfruit committed Aug 6, 2024
1 parent 885a261 commit d3fbc56
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Formula/doge.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
class Doge < Formula

Check failure on line 1 in Formula/doge.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

`brew linkage --test moonfruit/tap/doge` failed on Linux!

Unwanted system libraries: /lib/x86_64-linux-gnu/libcrypto.so.3 /lib/x86_64-linux-gnu/libssl.so.3
desc "Reviving A command-line DNS client"
homepage "https://dns.lookup.dog/"
url "https://github.com/Dj-Codeman/doge/archive/refs/tags/v0.2.7.tar.gz"
sha256 "7049e2ccd6907f4f4222b8ea84160d65b57aadbbee9498da353a00c576bc647e"
license "EUPL-1.2"

depends_on "pandoc" => :build
depends_on "rust" => :build

def install
system "cargo", "install", *std_cargo_args

bash_completion.install "completions/doge.bash" => "doge"
zsh_completion.install "completions/doge.zsh" => "_doge"
fish_completion.install "completions/doge.fish"

args = %w[
--standalone
--from=markdown
--to=man
]
system "pandoc", *args, "man/doge.1.md", "-o", "doge.1"
man1.install "doge.1"
end

test do
output = shell_output("#{bin}/doge dns.google A --seconds --color=never")
assert_match(/^A\s+dns\.google\.\s+\d+\s+8\.8\.4\.4/, output)
assert_match(/^A\s+dns\.google\.\s+\d+\s+8\.8\.8\.8/, output)
end
end

0 comments on commit d3fbc56

Please sign in to comment.