Skip to content

Commit

Permalink
cyme 1.7.0 (new formula)
Browse files Browse the repository at this point in the history
  • Loading branch information
FnControlOption committed Jun 27, 2024
1 parent 9c5c95a commit 77084c3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ cyclonedx-gomod
cyclonedx-python
cycode
cyctl
cyme
cypher-shell
cyrus-sasl
cython
Expand Down
27 changes: 27 additions & 0 deletions Formula/c/cyme.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
class Cyme < Formula
desc "List system USB buses and devices"
homepage "https://github.com/tuna-f1sh/cyme"
url "https://github.com/tuna-f1sh/cyme/archive/refs/tags/v1.7.0.tar.gz"
sha256 "63ca7c5f473cbefb1fd07ba9b4f9693268d80560a778a001d82fab68bbd1552a"
license "GPL-3.0-or-later"
head "https://github.com/tuna-f1sh/cyme.git", branch: "main"

depends_on "rust" => :build
depends_on "libusb"

def install
system "cargo", "install", *std_cargo_args
man1.install "doc/cyme.1"
bash_completion.install "doc/cyme.bash"
zsh_completion.install "doc/_cyme"
fish_completion.install "doc/cyme.fish"
end

test do
# Test fails on headless CI
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]

output = JSON.parse(shell_output("#{bin}/cyme --tree --json"))
assert_predicate output["buses"], :present?
end
end

0 comments on commit 77084c3

Please sign in to comment.