Skip to content

Commit

Permalink
Add Conflicts, Tests, Depends for LSUSB (#33)
Browse files Browse the repository at this point in the history
* Add Conflicts for LSUSB

* Add Tests and Depends On
  • Loading branch information
LanikSJ authored Nov 6, 2023
1 parent 9573666 commit 4cf1cb5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Formula/lsusb-plus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ class LsusbPlus < Formula
license "MIT"
head "https://github.com/LanikSJ/lsusb", using: :git

depends_on :macos

conflicts_with "lsusb", because: "both provide an `lsusb` binary"
conflicts_with "usbutils", because: "both provide an `lsusb` binary"

def install
bin.install "lsusb"
man8.install "man/lsusb.8"
end

test do
output = shell_output("#{bin}/lsusb")
assert_match(/^Bus [0-9]+ Device [0-9]+:/, output)
end
end

0 comments on commit 4cf1cb5

Please sign in to comment.